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.)

QuestionsCategory: Certified Platform Developer IIRefer 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.)
Admin Staff asked 4 months ago
Refer to the following code snippet:
 Image
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.)

A. Use the WITH SECURITY_ENFORCED clause within the SOQL query.

B. Annotate the Apex method with @AuraEnabled(Cacheable=true).

C. Implement the with sharing keyword in the class declaration.

D. Annotate the Apex method with @AuraEnabled.

E. Implement the without sharing keyword in the class declaration.






 

Suggested Answer: ACD

Community Answer: ABC



This question is in Certified Platform Developer II Exam
For getting Salesforce Certified Platform Developer II











Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Salesforce. 
Trademarks, certification & product names are used for reference only and belong to Salesforce.
The website does not contain actual questions and answers from Salesforce's Certification Exams.

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.