nerdexam
Salesforce

PDII · Question #325

A developer created a Lightning web component that allows users to input a text value that is used to search for Accounts by calling an Apex method. The Apex method returns a list of AccountWrappers…

The correct answer is B. Add @AuraEnabled to line 03. See the full explanation below for the reasoning.

Question

A developer created a Lightning web component that allows users to input a text value that is used to search for Accounts by calling an Apex method. The Apex method returns a list of AccountWrappers and is called imperatively from a JavaScript event handler. Which two changes should the developer make so the Apex method functions correctly? (Choose two.)

Exhibit

PDII question #325 exhibit

Options

  • AAdd @AuraEnabled to line 09.
  • BAdd @AuraEnabled to line 03.
  • CAdd @AuraEnabled to lines 11 and 12.
  • DAdd @AuraEnabled to line 01.

How the community answered

(18 responses)
  • A
    11% (2)
  • B
    83% (15)
  • C
    6% (1)

Community Discussion

No community discussion yet for this question.

Full PDII Practice