ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 202 - Certified Platform Developer II discussion

Report
Export

Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.

Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.

The developer verified that the Queries return a single record each and there is error handing in the Lightning component, but the component is not getting anything back when calling the controller getSomeData().

What is wrong?

A.
The member's Name and Option of the class MyDataWrapper should be annotated with @AuraEnabled also.
Answers
A.
The member's Name and Option of the class MyDataWrapper should be annotated with @AuraEnabled also.
B.
The member's Name and Option should not be declared public.
Answers
B.
The member's Name and Option should not be declared public.
C.
The member's Name and Option should not have getter and setter.
Answers
C.
The member's Name and Option should not have getter and setter.
D.
Instances of Apex classes such as MyDataWrapper cannot be returned to a Lightning component.
Answers
D.
Instances of Apex classes such as MyDataWrapper cannot be returned to a Lightning component.
Suggested answer: A
asked 23/09/2024
Vasco Rodrigues
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first