Salesforce Certified Platform Developer II — Question 251

A developer has created a Team Member sObject that has a Master-Detail relationship to a Project sObject and a Lookup relationship to the User sObject. The developer must ensure that a User listed on a Team Member record has Read-Write access to the parent Project record.
How can the developer accomplish this if the Project sObject has a Private sharing model and thousands of Project records?

Answer options

Correct answer: C

Explanation

The correct answer is C because creating a Team Member Trigger to insert Project_Share records directly associates the User with the necessary permissions on the Project records. Option A is incorrect as the Without Sharing keyword would not respect the sharing rules. Option B cannot be applied as Criteria-Based Sharing Rules do not work effectively with the thousands of records when the sharing model is Private. Option D is also not suitable since it does not address the specific User access needed for each Team Member.