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

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

A developer wants to call an Apex Server-side Controller from a Lightning Aura Component.
What are two limitations to the data being returned by the Controller? (Choose two.)

  • A. A custom Apex Class can be returned, but only the values of public instance properties and methods annotated with @AuraEnabled are serialized and returned.
  • B. Lists of Custom Apex Classes cannot be returned by Apex Controllers called by Lightning Aura Components.
  • C. Basic data types are supported, but defaults, such as maximum size for a number, are defined by the objects that they map to.
  • D. Only Basic data types and sObjects are supported as return types for Apex Controllers called by Lightning Aura Components.
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
beardAnt
1 month, 1 week ago
Selected Answer: AD
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_apex_returning_data.htm
upvoted 1 times
...
Anjindal
5 months, 2 weeks ago
Selected Answer: AD
Correct Ans A & D
upvoted 3 times
...
moitam
1 year, 2 months ago
According to the documentation: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_apex_returning_data.htm Results data from an Apex server-side controller must be serializable into JSON format. This means that only basic data types and sObjects are supported as return types for Apex controllers called by Lightning Aura Components. Lists of custom Apex classes can also be returned, but only the values of public instance properties and methods annotated with @AuraEnabled are serialized and returned. In this case, the correct answers are A and D
upvoted 3 times
...
santo_aj
1 year, 6 months ago
Selected Answer: AC
A&C it's ok https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_apex_returning_data.htm
upvoted 1 times
...
Ike300
1 year, 7 months ago
Selected Answer: AC
Return data types can be any of the following. Simple—String, Integer, and so on. See Basic Types for details. sObject—standard and custom sObjects are both supported. See Standard and Custom Object Types. Apex—an instance of an Apex class. (Most often a custom class.) See Custom Apex Class Types. You can’t use an Apex inner class as a return value for an Apex method that's called by an Aura component. Collection—a collection of any of the other types. See Collection Types.
upvoted 2 times
Ike300
1 year, 7 months ago
D is not correct since it mentioned ONLY 2
upvoted 1 times
...
...
test_1510_1
2 years ago
Selected Answer: AC
@AuraEnabled is required for wrapper class properties
upvoted 1 times
...
levian
2 years, 1 month ago
C and A for me is correct,
upvoted 3 times
...
ChiaSam
2 years, 4 months ago
Selected Answer: AD
as sObject is also supported
upvoted 2 times
...
ChiaSam
2 years, 4 months ago
Answer should be A and D as sObject is also supported.
upvoted 1 times
...
Liquad
3 years, 1 month ago
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_apex_returning_data.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 ...