Salesforce Platform Developer I (legacy) — Question 177
An after trigger on the Account object performs a DML update operation on all of the child Opportunities of an Account. There are no active triggers on the
Opportunity object, yet a `maximum trigger depth exceeded` error occurs in certain situations.
Which two reasons possibly explain the Account trigger firing recursively? (Choose two.)
Answer options
- A. Changes to Opportunities are causing cross-object workflow field updates to be made on the Account.
- B. Changes to Opportunities are causing roll-up summary fields to update on the Account.
- C. Changes are being made to the Account during an unrelated parallel save operation.
- D. Changes are being made to the Account during Criteria Based Sharing evaluation.
Correct answer: A, B
Explanation
Options A and B are correct because changes in Opportunities can trigger workflow field updates and roll-up summary fields on the Account, causing the Account trigger to fire again. Options C and D do not directly relate to the recursive nature of the trigger firing as they involve unrelated operations or evaluations that do not inherently trigger the Account trigger.