Salesforce Platform Developer I (legacy) — Question 288

A developer needs to create an audit trail for records that are sent to the recycle bin.
Which type of trigger is most appropriate to create?

Answer options

Correct answer: A

Explanation

The 'after delete' trigger is suitable because it activates after a record has been deleted, allowing the developer to log the necessary details for the audit trail. The 'after undelete' and 'before undelete' triggers do not apply since they pertain to restoring records rather than tracking deletions. The 'before delete' trigger could be used for pre-deletion actions but does not provide the needed audit information after a record is sent to the recycle bin.