ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 302 - Certified Platform Developer II discussion

Report
Export

A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunity 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.
Answers
A.
Edit the code to use the without sharing keyword in the Apex class.
B.
Use the Cacheable=True attribute in the Apex method.
Answers
B.
Use the Cacheable=True attribute in the Apex method.
C.
Ensure the OWD for the Opportunity object is public.
Answers
C.
Ensure the OWD for the Opportunity object is public.
D.
Use the Continuation=true attribute in the Apex method.
Answers
D.
Use the Continuation=true attribute in the Apex method.
Suggested answer: B
asked 23/09/2024
Arjen Vleugel
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first