Salesforce Certified Platform Developer II — Question 18

Universal Containers implements a private sharing model for the Convention_Attendee_ _c custom object. As part of a new quality assurance effort, the company created an Event_Reviewer_ _c user lookup field on the object. Management wants the event reviewer to automatically gain Read/Write access to every record they are assigned to.
What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record?

Answer options

Correct answer: D

Explanation

The correct answer is D because a Before Insert trigger allows you to set sharing rules at the time of record creation, ensuring that the assigned reviewer gets Read/Write access immediately. Options A and C focus on using criteria-based sharing rules, which are not effective for granting access at the creation time of records. Option B uses an After Insert trigger, which does not provide immediate access and is less efficient for this requirement.