nerdexam
Salesforce

PDII · Question #386

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

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

Question

Consider the Apex controller below, that is called from an Aura component. What is wrong with this code?

Exhibit

PDII question #386 exhibit

Options

  • ALine 1: class must be global
  • BLines 1 and 6: class and method must be global
  • CLine 6: method must be static
  • DLine 8: method must first serialize the list to JSON before returning

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