Salesforce Platform Developer I (legacy) — Question 228
A newly hired developer discovers that there are multiple triggers on the case object.
What should the developer consider when working with triggers?
Answer options
- A. Developers must dictate the order of trigger execution.
- B. Trigger execution order is based on creation date and time.
- C. Unit tests must specify the trigger being tested.
- D. Trigger execution order is not guaranteed for the same sObject.
Correct answer: D
Explanation
The correct answer is D because Salesforce does not guarantee the order of trigger execution for the same sObject, which can lead to unpredictable results. Option A is incorrect as developers cannot control the order; it is determined by the platform. Option B is also wrong since the order is not based on creation date and time, and option C is not relevant to trigger execution order.