AWS Certified Developer Associate DVA-C02 Practice Question
A developer needs to ensure that a serverless function, which is responsible for processing incoming messages, will redirect failed executions to a separate storage service for later analysis. Which feature should the developer configure to BEST adhere to this requirement?
You selected this option
Boost the serverless function's available compute resources to prevent message processing failures.
You selected this option
Alter the function's retry settings to indefinitely attempt reprocessing the problematic message until successful.
You selected this option
Configure a dead-letter queue to save messages that the function fails to process for subsequent analysis.
You selected this option
Set up an automated re-publishing mechanism through another notification service to keep submitting the message until it is processed without errors.
Enabling a dead-letter queue (DLQ) for the Lambda function is the best proactive measure to handle failed execution messages. The DLQ pattern is a well-established way to isolate messages that a Lambda function fails to process, allowing them to be moved to a separate queue and not interfere with the continuous flow of new messages being processed. This aids in analyzing and debugging issues without losing the context of the failure. This is preferable to re-attempting processing within the Lambda function which might cause repeated failures and does not segregate the problematic messages, or increasing resources which might not address the root cause of processing failures.
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)?
Open an interactive chat with Bash
How does AWS Lambda handle retries for failed executions?
Open an interactive chat with Bash
What are the advantages of using a DLQ over just increasing compute resources?
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
Oh snap!
Loading...
Loading...
Loading...
Information Technology Package Join Premium for Full Access