ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 406 - Certified Platform Developer II discussion

Report
Export

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

A.
Annotate the Apex method with @AuraEnabled.
Answers
A.
Annotate the Apex method with @AuraEnabled.
B.
Implement the with sharing keyword in the class declaration.
Answers
B.
Implement the with sharing keyword in the class declaration.
C.
Implement the with keyword in the class declaration.
Answers
C.
Implement the with keyword in the class declaration.
D.
Use the WZ E D clause within the SOQL query.
Answers
D.
Use the WZ E D clause within the SOQL query.
E.
Annotate the Apex method with @AuraEnabled(Cacheable=True).
Answers
E.
Annotate the Apex method with @AuraEnabled(Cacheable=True).
Suggested answer: B, D, E
asked 23/09/2024
Bruno Piovan
27 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first