Salesforce Certified Platform Sharing and Visibility Architect free question 4 / 10 · Domain 2: Access to Records
For a custom object named Case File, a company uses Apex managed sharing in addition to sharing rules, and a recalculation Apex class is attached to the object. Sharing rule updates seem not to have taken effect, so the administrator clicks Recalculate in the Case File sharing rules related list. Which statement matches the Security Implementation Guide (Winter ’23)?
- When sharing rules are recalculated this way, all Apex sharing recalculations are run as well
- For an object that uses Apex managed sharing, the class must first be detached before Recalculate is clicked
- Only the Case File sharing rules are recalculated, and Apex sharing must be recalculated separately by running its class
- The recalculation deletes the Apex managed sharing records of Case File and leaves them empty until Apex runs again
Show the answer and explanation
Answer: A
Why this is correct
The page on recalculating sharing rules says: "When sharing is recalculated, Salesforce also runs all Apex sharing recalculations." It adds that related object sharing rules are calculated as well, and that an email notification arrives when the recalculation has completed for all affected objects. A note says to use the Recalculate buttons only if sharing rule updates have failed or aren’t working as expected.
Why the other options are wrong
"Only the Case File sharing rules are recalculated, and Apex sharing must be recalculated separately by running its class" … The guide says Salesforce also runs all Apex sharing recalculations when sharing is recalculated, so no separate manual run of the class is called for.
"For an object that uses Apex managed sharing, the class must first be detached before Recalculate is clicked" … The procedure in the guide is only to click Recalculate in the Sharing Rules related list for the object. It contains no step for detaching a class, because the Apex recalculations run together with it.
"The recalculation deletes the Apex managed sharing records of Case File and leaves them empty until Apex runs again" … Since the Apex sharing recalculations are run as part of the recalculation, the Apex managed sharing is not left empty. The guide describes no case where it stays empty until Apex runs.
Following the progress
To monitor a recalculation, open Background Jobs in Setup. Recalculating the sharing rules for opportunities also recalculates account sharing rules, because an opportunity is a detail of an account. Treat the button as a way to repair failed updates, not as a routine step.