AWS Certified Developer Associate DVA-C02 Practice Question
A developer is using an AWS Lambda function to process incoming files and store processed data in a database. The Lambda function is triggered by new objects created in an Amazon S3 bucket. The developer needs to ensure that in case of processing failures, the event messages are captured for analysis and retry. Which AWS service should they configure as the target for failed processing events?
Set up Amazon CloudWatch to capture logs for failed Lambda invocations.
Configure an Amazon Simple Notification Service (SNS) topic as a dead-letter queue for the Lambda function.
Direct the Lambda function to write all failed event messages to a designated Amazon S3 bucket.
Configure an Amazon Simple Queue Service (SQS) queue as a dead-letter queue for the Lambda function.
AWS Lambda allows you to configure a dead-letter queue (DLQ) to handle failed processing events. An Amazon SQS queue is one of the supported services for use as a DLQ. By configuring an SQS queue as a DLQ for the Lambda function, the developer can capture and store failed event messages for further analysis or reprocessing. SNS topics are not supported as a DLQ for Lambda functions directly. Capturing logs in CloudWatch is for logging purposes and does not queue messages for reprocessing. Similarly, writing errors to an S3 bucket would require additional code and still would not provide the queuing capabilities needed for later reprocessing.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a dead-letter queue (DLQ) and why is it important?
Open an interactive chat with Bash
How does Amazon SQS work with AWS Lambda?
Open an interactive chat with Bash
What is the difference between SNS and SQS in the context of AWS notifications?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access