nerdexam
Salesforce

PDII · Question #186

Which annotation exposes an Apex class as a RESTful web service?

The correct answer is C. @RestResource. See the full explanation below for the reasoning.

Question

Which annotation exposes an Apex class as a RESTful web service?

Options

  • A@AuraEnabled
  • B@HttpInvocable
  • C@RestResource
  • D@RemoteAction

How the community answered

(41 responses)
  • A
    5% (2)
  • B
    2% (1)
  • C
    83% (34)
  • D
    10% (4)

Community Discussion

No community discussion yet for this question.

Full PDII Practice