Salesforce Platform Developer I (legacy) — Question 278

A company decides to implement a new process where every time an Opportunity is created, a follow up Task should be created and assigned to the Opportunity Owner.

What is the most efficient way for a developer to implement this?

Answer options

Correct answer: B

Explanation

The correct answer is B, as an Apex trigger on Task allows for custom logic to be executed immediately when an Opportunity is created, ensuring that the Task is properly assigned. The other options are not as efficient; for example, an Auto-launched flow or Record-triggered flow might not provide the same level of immediacy and customization needed for this specific scenario.