Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 8 Question 11 Discussion

Lightning Aura ComponentGiven the code above, which two changes need to be made in the Apex Controller for the code to work' Choose 2 answers
B) Change the argument from JSONObject to String. and D) Remove line 06 from the Apex Controller and use firstName In the return.
A) Change the method signature to be global static, not public static.
C) Annotate the entire class as @AuraEnabled instead of just the single method.

Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 8 Question 11 Discussion

Actual exam question for Salesforce's Salesforce Certified Platform Developer II (Plat-Dev-301) exam
Question #: 11
Topic #: 8
[All Salesforce Certified Platform Developer II (Plat-Dev-301) Questions]

Lightning Aura Component

Given the code above, which two changes need to be made in the Apex Controller for the code to work' Choose 2 answers

Show Suggested Answer Hide Answer
Suggested Answer: B, D

Contribute your Thoughts:

0/2000 characters
Ma
7 months ago
Removing line 06? That sounds risky!
upvoted 0 times
...
Yvette
7 months ago
I agree with A, but not sure about C.
upvoted 0 times
...
Juliann
7 months ago
Wait, why would you need to change to global static? Seems odd.
upvoted 0 times
...
Rima
8 months ago
I think B is the right choice too!
upvoted 0 times
...
Paola
8 months ago
A and C are definitely needed.
upvoted 0 times
...
Kanisha
8 months ago
I vaguely recall something about removing a line in the Apex Controller, but I can't remember which one it was.
upvoted 0 times
...
Rosio
8 months ago
I feel like we had a similar question where we had to change the argument type. Maybe it should be a String instead of JSONObject?
upvoted 0 times
...
Emeline
8 months ago
I'm not entirely sure, but I remember something about needing to annotate the class with @AuraEnabled.
upvoted 0 times
...
Lawanda
8 months ago
I think we might need to change the method signature to global static. That sounds familiar from our practice questions.
upvoted 0 times
...
Pa
8 months ago
Option C - missing test script details. That's my best guess. If the test scripts weren't properly documented or executed, that would definitely lead to failed test cases.
upvoted 0 times
...
Alesia
8 months ago
I'm confident this is Option C. The `` with an `onclick` attribute is the perfect way to call a custom function without submitting the form.
upvoted 0 times
...
Colette
8 months ago
I practiced the Aviatrix Gateways scenario before, and they seem like a good fit for FQDN filtering since they can centralize rules, but I wonder about the implementation effort.
upvoted 0 times
...
Jacklyn
8 months ago
I practiced a question on swaptions last week, and I believe I learned that if rates are expected to fall, a receiver swaption is the way to go. Not entirely sure, though.
upvoted 0 times
...

Save Cancel