Salesforce
PDII · Question #308
PDII Question #308: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #308. The question stem and answer options stay visible for context.
Question
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?
Exhibit
Options
- AEdit the code to use the without sharing keyword in the Apex class.
- BUse the Cacheable=true attribute in the Apex method.
- CUse the Continuation=true attribute in the Apex method.
- DEnsure the OWD for the Opportunity object is Public.
Unlock PDII to see the answer
You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
