Salesforce Platform Developer I (legacy) — Question 160

Einstein Next Best Action is configured at Universal Containers to display recommendations to internal users on the Account detail page.

If the recommendation is approved, a new opportunity record and task should be generated. If the recommendation is rejected, an Apex method must be executed to perform a callout to an external system.

Which three factors should a developer keep in mind when implementing the Apex method? (Choose three.)

Answer options

Correct answer: A, C, D

Explanation

The correct answer includes options A, C, and D because the method must be public, static, and use the @AuraEnabled annotation to be accessible and callable from the Lightning components. Option B is incorrect as the @InvokableMethod annotation is not required in this context, and option E is not applicable since the method does not need to be asynchronous.