Salesforce Platform Developer I (legacy) — Question 292

A developer has a requirement to create an Order when an Opportunity reaches a 'Closed-Won' status.
Which tool should be used to implement this requirement?

Answer options

Correct answer: B

Explanation

The correct choice is B, Apex Trigger, as it allows for custom logic to be executed in response to database events, such as creating an Order when an Opportunity's status changes. While Process Builder and Lightning Flow are also automation tools, they may not provide the level of customization needed for complex logic compared to Apex Triggers.