Salesforce Certified Development Lifecycle and Deployment Architect — Question 6

Sales and Service products will be created by two teams that will use second-generation managed package(s). The Sales team will use a specific function of the Service product, but the architect wants to ensure that this team will only use the functions exposed by the Service team. No other team will use these same functions.
What should an architect recommend?

Answer options

Correct answer: A

Explanation

The correct answer is A because it allows both teams to create second-generation managed packages under the same namespace while controlling access to specific methods using the @namespaceAccessible annotation. Options B and C introduce unnecessary complexity and do not adhere to the requirement of restricting access to only the Sales team. Option D does not separate the packages, which contradicts the requirement for distinct team functionalities.