A Lambda function processes messages from a standard SQS queue. A bug made some messages fail repeatedly, and after reaching maxReceiveCount they moved to the queue's dead-letter queue. The fix is now deployed, and the team must reprocess those messages through the same function without writing new code. What should they do?
Show the answer
Correct answerB. Start a dead-letter queue redrive that moves the messages back to the source queue.
AWhy not this: Messages in the dead-letter queue are no longer in the source queue, so its visibility timeout does not bring them back.
BWhy this is right: The redrive returns the dead-lettered messages to the source queue, where the fixed function consumes them.
CWhy not this: On-failure destinations do not apply to SQS event source mappings, and they would not move messages already in the DLQ.
DWhy not this: A higher maxReceiveCount only changes when future messages are dead-lettered; it does not move existing ones.
A dead-letter queue redrive moves messages from the DLQ back to the source queue (or another queue), where the function's event source mapping processes them again. The other settings affect messages still in the source queue, not messages already moved to the DLQ.