nerdexam
Salesforce

CRT-450 · Question #82

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

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

Question

A developer is creating a Lightning web component to showa list of sales records. The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all fields on the record except the commission field. How should this be enforced so that the component works for both users without showing any errors?

Options

  • AUse WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.
  • BUse Security. stripInaccessible to remove fields inaccessible to the current user.
  • CUse Lightning Data Service to get the collection of sales records.
  • DUse Lightning Locker Service to enforce sharing rules and field-level security.

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