Salesforce Certified Platform Developer II — Question 262

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.)

Answer options

Correct answer: A, C

Explanation

Option A is correct because only public instance properties and methods annotated with @AuraEnabled can be serialized and returned from a custom Apex Class. Option C is also correct as it highlights that while basic data types are supported, their characteristics, such as maximum size, depend on the objects they relate to. Options B and D are incorrect because Apex Controllers can return Lists of Custom Apex Classes and do support additional return types beyond just Basic data types and sObjects.