Salesforce Platform Developer I (legacy) — Question 54

A developer needs to update an unrelated object when a record gets saved.
Which two trigger types should the developer create? (Choose two.)

Answer options

Correct answer: A, D

Explanation

The correct answers are A and D because 'after insert' allows actions to occur after a new record is created, which can be used to update another object. 'After update' is also appropriate as it enables updates to another object after the current record has been modified. The options 'before update' and 'before insert' are incorrect since they do not allow for actions on unrelated objects after the record is saved.