Salesforce Certified Sharing and Visibility Designer — Question 11

Universal Containers (UC) has a team that analyzes customer orders looking for fraud. This team needs access to Invoice records (Custom object, Private OWD). UC has complex rules to control users’ access. The Salesforce Architect recommended using Apex managed sharing to meet these requirements.
Which two recommendations should a Salesforce Developer consider when implementing the changes? (Choose two.)

Answer options

Correct answer: A, C

Explanation

Option A is correct because using the runAs system method allows testing how different users access the records, which is crucial for ensuring proper sharing. Option C is also correct as the 'With Sharing' keyword ensures that record visibility rules are enforced. Options B and D are incorrect; 'Without Sharing' disregards record visibility, which is not suitable for this case, and while 'With Sharing' is important for record visibility, it does not enforce field-level security directly.