A Lambda function consumes messages from an Amazon SQS queue that is configured with a dead-letter queue (DLQ). Some messages failed processing due to a bug that has since been fixed. The developer now wants to reprocess the failed messages. Which action should the developer take?
Choose an answer
Tap an option to check your answer.
Correct answer: Use the StartMessageMoveTask API to move messages from the dead-letter queue back to the original SQS queue..
Why this is the answer
The StartMessageMoveTask API is the correct and most efficient way to reprocess messages from an SQS dead-letter queue (DLQ) back to its source queue. This API is specifically designed for this purpose, allowing you to move messages in bulk without manual intervention. Using SendMessageBatch to read and resend messages would require custom code to poll the DLQ, extract messages, and then send them back, which is more complex and less robust than StartMessageMoveTask. The ChangeMessageVisibility API only alters the visibility timeout of a message within its current queue; it cannot move messages between queues or make DLQ messages appear in the original queue. The PurgeQueue API permanently deletes all messages from a queue and does not return them to any other queue, which would result in data loss.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed