A Step Functions Standard Workflow reserves inventory, charges a payment, and books shipping through separate services that cannot share a database transaction. If shipping fails permanently, which design reverses completed business actions while retrying transient errors without restarting successful steps?
Show the answer
Correct answerB. Retry each task, then catch shipping failure and refund payment before releasing inventory.
AWhy not this: Retrying the sequence can repeat successful actions, and a Fail state does not reverse external side effects.
BWhy this is right: Task-level retries preserve successful steps; explicit refund and release operations compensate for completed actions.
CWhy not this: Restoring workflow data does not reverse inventory reservations or payments in external services.
DWhy not this: Parallel branches do not provide transactional rollback, and completed external actions cannot be undone by cancellation.
A saga uses explicit compensating actions to undo completed business operations, while task-level retries handle transient failures locally. A Fail state terminates execution but does not roll back changes made by external services.