Development with AWS Services

A Lambda function processes an SQS standard queue through an event source mapping. A malformed message repeatedly fails and must eventually move to a quarantine queue while other messages continue processing; what should the developer configure?

Show the answer

Correct answerC. A source-queue redrive policy targeting the quarantine queue

AWhy not this: A function dead-letter queue handles discarded asynchronous invocation events, not messages polled from SQS.

BWhy not this: A zero visibility timeout makes the message immediately available again; it does not quarantine it.

CWhy this is right: The source queue's redrive policy uses maxReceiveCount to move repeatedly received messages to its dead-letter queue.

DWhy not this: Asynchronous invocation destinations do not govern failures from an SQS event source mapping.

An SQS redrive policy moves a message to its dead-letter queue after the configured receive threshold is exceeded. Lambda's function dead-letter queue and asynchronous destinations do not handle failures from an SQS event source mapping.