Salesforce Platform Developer I (legacy) — Question 221
When is an Apex Trigger required instead of a Process Builder Process?
Answer options
- A. When a record needs to be created
- B. When multiple records related to the triggering record need to be updated
- C. When a post to Chatter needs to be created
- D. When an action needs to be taken on a delete or undelete, or before a DML operation is executed.
Correct answer: D
Explanation
An Apex Trigger is essential when actions must be performed during delete or undelete events, or prior to executing a DML operation, as these scenarios are beyond the capabilities of Process Builder. The other options do not require the specific functionality that Apex Triggers provide, as Process Builder can handle record creation, updates, and Chatter posts effectively.