Valid PDII Dumps shared by ExamDiscuss.com for Helping Passing PDII Exam! ExamDiscuss.com now offer the newest PDII exam dumps, the ExamDiscuss.com PDII exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com PDII dumps with Test Engine here:
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 geyFetchLeadList whencertain 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 3 answers
Correct Answer: A,B,E
The Apex class needs to have the method annotated with @AuraEnabled to expose it to the LWC. The 'with sharing' keyword ensures that the data access is enforced according to the user's permissions. @AuraEnabled(cacheable=true) allows client-side caching for improved performance. References: @AuraEnabled Annotation: Apex Developer Guide Enforcing Sharing Rules: Apex Developer Guide
Recent Comments (The most recent comments are at the top.)
vanitha dharmaraj - Mar 13, 2025
D option has WZDE . does it means WITH SECURITY_ENFORCED in SOQL
Fa3il khayr - Sep 19, 2024
Answer is B , D , E
There is a typo on option D , this is the real : Use the WITH SECURITY_ENFORCED clause within the SOQL query
A is incorrect because when use wire service, you should annotate the Apex method with @AuraEnabled(Cacheable=True) C is incorrect because there is no only "with" keyword in apex
Isalbell - Jul 25, 2024
B, D, E are correct answers. A is incorrect because when use wire service, you should annotate the Apex method with @AuraEnabled(Cacheable=True) C is incorrect because when use lwc, implement with sharing in class declaration
Recent Comments (The most recent comments are at the top.)
D option has WZDE . does it means WITH SECURITY_ENFORCED in SOQL
Answer is B , D , E
There is a typo on option D , this is the real : Use the WITH SECURITY_ENFORCED clause within the SOQL query
A is incorrect because when use wire service, you should annotate the Apex method with @AuraEnabled(Cacheable=True)
C is incorrect because there is no only "with" keyword in apex
B, D, E are correct answers.
A is incorrect because when use wire service, you should annotate the Apex method with @AuraEnabled(Cacheable=True)
C is incorrect because when use lwc, implement with sharing in class declaration