Deployment, Provisioning, and Automation

An EventBridge rule's Lambda target has an SQS queue, encrypted with SQS-managed keys (SSE-SQS), as its dead-letter queue. The rule's FailedInvocations and InvocationsFailedToBeSentToDlq metrics are both rising, and the queue stays empty. What should the engineer fix?

Show the answer

Correct answerC. The queue's access policy, so that EventBridge may send messages to it

AWhy not this: Visibility timeout affects consumers reading the queue, not whether EventBridge can write messages to it.

BWhy not this: A Lambda on-failure destination captures failed executions of accepted events, not EventBridge delivery failures.

CWhy this is right: The queue policy must allow events.amazonaws.com to call sqs:SendMessage, or failed events cannot reach the dead-letter queue.

DWhy not this: A shorter maximum event age sends events to the dead-letter queue sooner but does not let EventBridge write to it.

EventBridge needs permission in the queue's resource-based policy to send undelivered events to a dead-letter queue; without it, events that fail delivery cannot be written there and InvocationsFailedToBeSentToDlq rises. A Lambda on-failure destination handles events that Lambda accepted, not events EventBridge could not deliver.