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.) 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.
Please login or Register to submit your answer