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
- A. Create two second generation managed packages with the same namespace and set the methods that should be shared with the @namespaceAccessible annotation.
- B. Create two managed packages with Sales and Service namespaces. Set the methods to be shared with the @salesAccessible annotation.
- C. Create two managed packages. Create an authentication function in the Service package that will return a token if a Sales user is authorized to call the exposed function. Validate the token in the Service functions.
- D. Create a managed package with both products and create a code review process with an approver from each team.
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.