What should the developer use to enforce sharing permissions for the currently logged-in user while using the custom search tool?

Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own.
What should the developer use to enforce sharing permissions for the currently logged-in user while using the custom search tool?
A. Use the schema describe calls to determine if the logged-in user has access to the Account object.
B. Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.
C. Use the with sharing keyword on the class declaration.
D. Use the without sharing keyword on the class declaration.

CRT-450: Salesforce Certified Platform Developer I

Free dumps for CRT-450 in PDF format.

High quality CRT-450 PDF and software. VALID exam to help you pass.

Download Printable PDF. VALID exam to help you PASS.

4 thoughts on “What should the developer use to enforce sharing permissions for the currently logged-in user while using the custom search tool?

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.