Salesforce Certified Platform Developer II — Question 60
In which of the following scenarios would it be acceptable to use programmatic sharing instead of declarative sharing? (Choose three.)
Answer options
- A. Every record created by sales users needs to be visible to their respective manager
- B. Poor performance when using native sharing components
- C. Team functionality is required on custom objects
- D. There is an existing, external system of truth for user access assignments which will continue to drive access and be integrated with salesforce
- E. You need to change record access to read/write for all users utilising a lightning component
Correct answer: B, C, D
Explanation
The correct answers B, C, and D highlight scenarios where programmatic sharing is more suitable due to performance issues, team requirements, and integration with external systems. Option A is incorrect because it describes a straightforward use case that can typically be handled with declarative sharing. Option E is also incorrect because it can be managed through declarative means.