Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 297 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 297
Topic #: 1
[All Certified Platform Developer II Questions]

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.
Show Suggested Answer Hide Answer
Suggested Answer: ACD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
stan_malta
1 year ago
Selected Answer: ABC
As long as we don't manipulate data, Cacheable=TRUE is fine
upvoted 1 times
...
code_breaker_27
1 year, 1 month ago
B over D as questions says "display data efficiently"
upvoted 1 times
...
Genki_Sugisaki
1 year, 9 months ago
Correct answer is A,B,C.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...