nerdexam
Salesforce

PDII · Question #213

A developer receives an error when trying to call a global server-side method using the @remoteAction decorator. How can the developer resolve the error?

The correct answer is D. Add static to the server-side method signature. See the full explanation below for the reasoning.

Question

A developer receives an error when trying to call a global server-side method using the @remoteAction decorator. How can the developer resolve the error?

Options

  • ADecorate the server-side method with (static=true)
  • BChange the function signature to be private static
  • CDecorate the server-side method with (static=false)
  • DAdd static to the server-side method signature

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    17% (5)
  • C
    3% (1)
  • D
    72% (21)

Community Discussion

No community discussion yet for this question.

Full PDII Practice