Bird
0
0

How can you combine AWS Lambda and Dead Letter Queues to handle failed event processing from an SNS trigger?

hard📝 Application Q9 of 15
AWS - SNS and SQS
How can you combine AWS Lambda and Dead Letter Queues to handle failed event processing from an SNS trigger?
ASet Lambda to delete messages immediately on failure to avoid retries.
BUse Lambda to send failed messages directly to an SNS topic instead of DLQ.
CConfigure Lambda with an SQS DLQ to capture failed events after retries.
DDisable retries in Lambda and rely only on SQS DLQ for failures.
Step-by-Step Solution
Solution:
  1. Step 1: Understand Lambda DLQ integration

    Lambda can be configured with a DLQ (SQS or SNS) to capture failed events after retry attempts.
  2. Step 2: Apply to SNS-triggered Lambda

    When Lambda triggered by SNS fails processing, failed events can be sent to the configured DLQ for later analysis.
  3. Final Answer:

    Configure Lambda with an SQS DLQ to capture failed events after retries. -> Option C
  4. Quick Check:

    Lambda DLQ captures failed events after retries [OK]
Quick Trick: Use Lambda DLQ to catch failed events after retries [OK]
Common Mistakes:
  • Deleting messages immediately on failure losing data
  • Sending failed messages only to SNS without DLQ
  • Disabling retries and missing error handling

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes