ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 305 - Certified Platform Developer II discussion

Report
Export

Exhibit.

A developer created a JavaScript function as a part of a Lightning web component (LWC) that surfaces information… about leads by imperatively calling getFetchLeadList when certain criteria are met.

What are these changes the developer should implement in the Apex class above to ensure the LWC can displ… data efficiently while preserving security?

Choose 3 answers

A.
Annotate the Apex method with gAuraEnabled-
Answers
A.
Annotate the Apex method with gAuraEnabled-
B.
Annotate the Apex method with 8AuraEnabled (Cacheable-true).
Answers
B.
Annotate the Apex method with 8AuraEnabled (Cacheable-true).
C.
Use the WITH SECURITY_ENFORCED clause within the SOQL query.
Answers
C.
Use the WITH SECURITY_ENFORCED clause within the SOQL query.
D.
Implement the with sharing keyword in the class declaration.
Answers
D.
Implement the with sharing keyword in the class declaration.
E.
Implement the without sharing keyword in the class declaration.
Answers
E.
Implement the without sharing keyword in the class declaration.
Suggested answer: B, C, D
asked 23/09/2024
wasiu adio
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first