Multiple ChoiceIntermediate 45s
Saga pattern compensation
In a saga orchestrating order→payment→shipping, shipping fails after payment succeeds. What does the saga do?
Options
- 1Nothing at all, the payment stays charged and the order stays open, because a saga never undoes completed local transactions
- 2Runs compensating transactions in reverse (refund payment, cancel order) to restore a consistent state
- 3Retries the shipping step forever with no rollback, since sagas prioritize delivery of every step over restoring prior state
- 4Escalates automatically to two-phase commit, which locks all participants and rolls the whole distributed transaction back
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.