AWS - SNS and SQSHow 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.Check Answer
Step-by-Step SolutionSolution:Step 1: Understand Lambda DLQ integrationLambda can be configured with a DLQ (SQS or SNS) to capture failed events after retry attempts.Step 2: Apply to SNS-triggered LambdaWhen Lambda triggered by SNS fails processing, failed events can be sent to the configured DLQ for later analysis.Final Answer:Configure Lambda with an SQS DLQ to capture failed events after retries. -> Option CQuick 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 dataSending failed messages only to SNS without DLQDisabling retries and missing error handling
Master "SNS and SQS" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes API Gateway - Request and response mapping - Quiz 7medium API Gateway - REST API creation - Quiz 5medium API Gateway - CORS configuration - Quiz 1easy AWS Lambda - Lambda execution model - Quiz 6medium CloudWatch - CloudWatch dashboards - Quiz 5medium Elastic Load Balancing - ALB vs NLB decision - Quiz 6medium RDS and Relational Databases - Parameter groups and option groups - Quiz 2easy SNS and SQS - SNS notification types (email, SMS, Lambda) - Quiz 15hard SNS and SQS - SQS queue concept - Quiz 15hard SNS and SQS - SNS and SQS integration pattern (fan-out) - Quiz 11easy