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

QuestionsCategory: Certified Platform Developer IIConsider the Apex controller above, that is called from a Lightning Aura Component. What is wrong with it?
Admin Staff asked 4 months ago
Image
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








 

Suggested Answer: C

Community Answer: C



This question is in Certified Platform Developer II Exam
For getting Salesforce Certified Platform Developer II











Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Salesforce. 
Trademarks, certification & product names are used for reference only and belong to Salesforce.
The website does not contain actual questions and answers from Salesforce's Certification Exams.

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.