nerdexam
Salesforce

CRT-450 · Question #116

CRT-450 Question #116: Real Exam Question with Answer & Explanation

Sign in or unlock CRT-450 to reveal the answer and full explanation for question #116. The question stem and answer options stay visible for context.

Question

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 permission for the currently logged-in user while using the custom search tool?

Options

  • AUse the schema describe calls to determine if the logged-in users has access to the Account
  • BUse the without sharing keyword on the class declaration.
  • CUse the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in
  • DUse the with sharing keyword on the class declaration.

Unlock CRT-450 to see the answer

You've previewed enough free CRT-450 questions. Unlock CRT-450 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full CRT-450 Practice