Exam Plat-Dev-301 Topic 1 Question 186 Discussion

Actual exam question for Salesforce's Plat-Dev-301 exam
Question #: 186
Topic #: 1
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?

Suggested Answer: A Vote an answer

The @AuraEnabled(cacheable=true) attribute allows caching of method results on the client side, reducing server trips for already fetched data, which is useful for read-only data.

by Randolph at Jun 30, 2026, 01:52 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
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.

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어