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 327 discussion

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

Refer to the following code snippets:



A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunities owned by the currently logged-in user.

When the component is rendered, the following message is displayed: "Error retrieving data".

Which modification should be implemented to the Apex class to overcome the issue?

  • A. Edit the code to use the without sharing keyword in the Apex class.
  • B. Use the Cacheable=true attribute in the Apex method.
  • C. Use the Continuation=true attribute in the Apex method.
  • D. Ensure the OWD for the Opportunity object is Public.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
beardAnt
2 months, 1 week ago
Selected Answer: D
WITH SECURITY_ENFORCED means the user has no permissions over Opp.
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago