Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 232 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 232
Topic #: 1
[All Certified Platform Developer II Questions]

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?

  • A. Decorate the server-side method with (static=true)
  • B. Change the function signature to be private static
  • C. Decorate the server-side method with (static=false)
  • D. Add static to the server-side method signature
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
beardAnt
1 month ago
Selected Answer: D
Methods with the RemoteAction annotation must be static and either global or public.
upvoted 1 times
...
modaha
10 months, 2 weeks ago
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_RemoteAction.htm
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...