nerdexam
Salesforce

PDII · Question #5

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

The correct answer is C. Line 6: method must be static. See the full explanation below for the reasoning.

Question

Consider the Apex controller above, that is called from a Lightning Aura Component. What is wrong with it?

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

Community Discussion

No community discussion yet for this question.

Full PDII Practice