Salesforce-Platform-Development-Lifecycle-and-Deployment-Architect Practice Test
Salesforce Spring 25 Release 226 Questions
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?
A. Create two second generation managed packages with the same namespace and set
the methods that should be shared with the @namespaceAccessible annotation.
C. Create a managed package with both products and create a code review process with
an approver from each team.
D. 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.
A. Create two second generation managed packages with the same namespace and set
the methods that should be shared with the @namespaceAccessible annotation.
Explanation: The architect should recommend creating two second generation managed
packages with the same namespace and setting the methods that should be shared with
the @namespaceAccessible annotation. This will allow the Sales team to access the
specific functions of the Service product without exposing them to other teams or
customers. Creating two managed packages with different namespaces will not allow the
Sales team to access the Service functions, unless they are declared as global, which will
expose them to everyone. Creating a managed package with both products will not allow
the separation of the products and the control of the functions. Creating an authentication
function in the Service package will add unnecessary complexity and overhead to the
solution.