nerdexam
Salesforce

PDII · Question #278

PDII Question #278: Real Exam Question with Answer & Explanation

Sign in or unlock PDII to reveal the answer and full explanation for question #278. The question stem and answer options stay visible for context.

Question

Refer to the following code snippet: A developer created a JavaScript function as part of a Lightning web component (LWC) that surfaces information about Leads by wire calling getFetchLeadList when certain criteria are met. Which three changes should the developer implement in the Apex class above to ensure the LWC can display data efficiently while preserving security? (Choose three.)

Exhibit

PDII question #278 exhibit

Options

  • AUse the WITH SECURITY_ENFORCED clause within the SOQL query.
  • BAnnotate the Apex method with @AuraEnabled(Cacheable=true).
  • CImplement the with sharing keyword in the class declaration.
  • DAnnotate the Apex method with @AuraEnabled.
  • EImplement the without sharing keyword in the class declaration.

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII 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 PDII Practice