nerdexam
Salesforce

PDII · Question #264

Which two scenarios require an Apex method to be called imperatively from a Lightning web component? (Choose two.)

The correct answer is B. Calling a method that is not annotated with cacheable=true D. Calling a method that is external to the main controller for the Lightning web component. See the full explanation below for the reasoning.

Question

Which two scenarios require an Apex method to be called imperatively from a Lightning web component? (Choose two.)

Options

  • ACalling a method that makes a web service callout
  • BCalling a method that is not annotated with cacheable=true
  • CCalling a method with the click of a button
  • DCalling a method that is external to the main controller for the Lightning web component

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    85% (22)
  • C
    12% (3)

Community Discussion

No community discussion yet for this question.

Full PDII Practice