DVA-C02 practice question · Troubleshooting and Optimization
An asynchronously invoked Lambda function keeps failing, and after its configured retries are exhausted, the event seems…
An asynchronously invoked Lambda function keeps failing, and after its configured retries are exhausted, the event seems to simply disappear with no record of it anywhere. What should the developer configure to prevent silently losing failed events?
- AA dead-letter queue (or an on-failure destination) so the failed event payload is captured after retries are exhausted
- BIncrease the function's memory allocation
- CReduce the function's timeout to 1 second
- DSwitch the function from asynchronous to synchronous invocation, with no other change
Show the answer and explanation
Correct answer: A) A dead-letter queue (or an on-failure destination) so the failed event payload is captured after retries are exhausted
Why each option is right or wrong
- A) Correct. Without a DLQ or failure destination configured, an asynchronous invocation that exhausts its retries is simply dropped; configuring one captures the event for investigation or reprocessing instead of silently losing it.
- B) Incorrect. More memory can improve performance, but it doesn't capture or preserve events after retries are exhausted — that requires a DLQ or destination.
- C) Incorrect. A very short timeout would likely cause more failures, and does nothing to capture events after retries are exhausted.
- D) Incorrect. Changing the invocation model changes how the caller experiences failures, but doesn't by itself provide a durable capture mechanism for failed asynchronous events the way a DLQ does.
- Exam domain
- Troubleshooting and Optimization · 18% of DVA-C02
- Question type
- Multiple choice (one answer)
Related DVA-C02 questions
- A Lambda function that processes messages from an SQS queue in batches fails when just one message in a batch of 10 is…Troubleshooting and Optimization
- An application publishes custom CloudWatch metrics for request count, error rate, and p99 latency.Troubleshooting and Optimization
- An application intermittently receives ThrottlingException errors from an AWS service API that it calls through the AWS…Troubleshooting and Optimization
- A single-page app hosted at https://app.example.com sends a PUT request with a custom X-Request-Id header to an API…Troubleshooting and Optimization
All 67 free DVA-C02 questions by domain · 15 sample questions on one page
Practise the full DVA-C02 exam
This question is one of a small free sample from the CertRidge DVA-C02 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.
Worth reading: DVA-C02 cheat sheet, Lambda, DynamoDB, API Gateway, IAM and Cognito, messaging, CI/CD and X-Ray in tables, plus what DVA-C03 changes.