Question 1
A financial services firm uses a record-triggered Flow on the Opportunity object to calculate complex commission structures. The Flow is configured to run after the record is saved. During periods of high volume, users report 'UNABLE_TO_LOCK_ROW' errors when multiple sales reps update opportunities for the same Account simultaneously. Which modification to the automation strategy is most effective at mitigating this record-locking contention?
Answer and explanation
Correct answer: C
Record locking contention occurs when multiple transactions try to update related records (like the parent Account) simultaneously. The best way to resolve this is to decouple the resource-intensive calculation from the initial save transaction. Publishing a Platform Event allows the initial transaction to commit quickly. A separate, asynchronous Platform Event-triggered Flow can then handle the commission calculation, which significantly reduces the duration of the record lock and prevents contention errors.