nerdexam
Salesforce

PDII · Question #345

PDII Question #345: Real Exam Question with Answer & Explanation

Sign in or unlock PDII to reveal the answer and full explanation for question #345. The question stem and answer options stay visible for context.

Question

Consider the controller code below that is called from an Aura component and returns data wrapped in a class. The developer verified that the queries return a single record each and there is error handling in the Aura component, but the component is not getting anything back when calling the controller getSomeData(). What is wrong?

Exhibit

PDII question #345 exhibit

Options

  • AThe member's Name and Option of the class MyDataWrapper should be annotated with
  • BThe member's Name and Option should not have getter and setter.
  • CThe member's Name and Option should not be declared public.
  • DInstances of Apex classes, such as MyDataWrapper, cannot be returned to a Lightning

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.

Full PDII Practice