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 12 discussion

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


Consider the Apex controller above, that is called from a Lightning Aura Component.
What is wrong with it?

  • A. Line 1: class must be global
  • B. Lines 1 and 6: class and method must be global
  • C. Line 6: method must be static
  • D. Line 8: method must first serialize the list to JSON before returning
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
BrainMelt12
1 month, 3 weeks ago
Selected Answer: C
C is correct. If you don’t declare a method as static, the Aura framework cannot call it, and it will result in an error.
upvoted 1 times
...
punit1989
10 months, 2 weeks ago
C is correct one
upvoted 2 times
...
santo_aj
1 year ago
Selected Answer: C
C is ok
upvoted 2 times
...
levian
1 year, 7 months ago
C is correct
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago