Salesforce Platform Developer I (legacy) — Question 231
What is a benefit of using an after insert trigger over using a before insert trigger?
Answer options
- A. An after insert trigger allows a developer to bypass validation rules when updating fields on the new record.
- B. An after insert trigger allows a developer to insert other objects that reference the new record.
- C. An after insert trigger allows a developer to make a callout to an external service.
- D. An after insert trigger allows a developer to modify fields in the new record without a query.
Correct answer: B
Explanation
The correct answer is B because after insert triggers can utilize the newly created record to insert related records. Options A and D are incorrect as they refer to actions that are not allowed in after insert triggers. Option C is also incorrect because callouts can be made from both types of triggers, but it is not a distinct benefit of after insert triggers.