Question 530
A long-lived transaction pipeline must recover from application-level faults. The team confirms that messages that exhaust retries require operator review without blocking all orders. Which implementation most closely meets this requirement?
Explanation
Correct Answer
The scenario identifies this requirement: Messages that exhaust retries require operator review without blocking all orders. Select Move terminal failures to a DLQ with controlled redrive as the specified technical mechanism. DLQ handling isolates errors while healthy work continues. This response addresses the problem described rather than a different design goal.
Incorrect Answers
The option Make the write idempotent and acknowledge only after durable success addresses a separate condition: a queue consumer crashes after writing a DynamoDB item but before acknowledging the message. At-least-once redelivery may repeat successful processing. The actual requirement is messages that exhaust retries require operator review without blocking all orders. Recommended corrective action: Move terminal failures to a DLQ with controlled redrive. DLQ handling isolates errors while healthy work continues.
Use compensation logic and recorded step state before retrying would help if a Step Functions activity fails after a partial external side effect. Workflow retries cannot automatically undo external effects. That is not the symptom described here: messages that exhaust retries require operator review without blocking all orders. The matching response is Move terminal failures to a DLQ with controlled redrive, because dLQ handling isolates errors while healthy work continues.
For the alternative failure a write succeeds but the caller times out and retries the same order, the control Use idempotency keys and atomic duplicate detection on order storage is relevant: retries must not double-commit business actions. Here the evidence instead is messages that exhaust retries require operator review without blocking all orders. The selected technical mechanism is Move terminal failures to a DLQ with controlled redrive: dLQ handling isolates errors while healthy work continues.