A. 1. Create a SystemSOQLQueries class and a UserSOQLQueries class.
2. Set the “With Sharing” keyword on the UserSOQLQueries class and “Without Sharing” on the SystemSOQLQueries class.
B. 1. Create a reusable SOQLQueries class.
2. Specify “With Sharing” on the methods that require user context and “Without Sharing” on the methods requiring system context.
C. 1. Create a reusable SOQLQueries class.
2. Do NOT specify “With” or “Without Sharing” on the SOQLQueries class and use the runAs() method to dynamically set the context.
D. 1. Create a reusable SOQLQueries class.
2. Do NOT specify “With” or “Without Sharing” on the SOQLQueries class.

Suggest answer: AD

Reference:

No comments:

Please share to make the community better.