How to Route Asynchronous Lambda Invocation Errors?
A company has an analytics application that uses an AWS Lambda function to process transaction data asynchronously. A developer notices that asynchronous invocations of the Lambda function sometimes fail. When failed Lambda function invocations occur, the developer wants to invoke a second Lambda function to handle errors and log details. Which solution will meet these requirements?
Community Votes
100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Tests knowledge of Lambda async routing controls, with the common trap confusing outbound destinations with inbound triggers.
This scenario evaluates configuring Lambda destinations for asynchronous invocation error routing. Community consensus confirms destinations are the native, code-free mechanism to automatically invoke a secondary function upon failure.
Option C is frequently selected incorrectly because candidates misinterpret triggers as post-execution handlers, whereas triggers actually initiate invocations from external event sources.
Community Discussion (5 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Lambda destinations natively support routing successful or failed asynchronous invocations to targets like SQS, SNS, EventBridge, or another Lambda function. By configuring a destination with a failure condition and specifying the ARN of the error-handling function, AWS automatically invokes it when the primary function throws an error or times out. This approach requires zero code changes and aligns perfectly with serverless best practices for decoupled error handling.Why the Other Options Are Wrong
Option B misuses X-Ray, which is strictly for distributed tracing and debugging, not for automated error routing. Option C incorrectly suggests a failure trigger, but Lambda triggers are inbound event sources that start execution, not outbound post-execution handlers. Option D relies on CloudWatch alarms, which monitor aggregate metrics over time rather than individual invocation failures and cannot reliably pass specific stack traces to downstream functions.Community Comment Notes
Contributors consistently validate option A by referencing AWS documentation on asynchronous invocation destinations. Comment [1] highlights that destinations enable automatic error handling without modifying application code. Comment [2] correctly clarifies that Lambda lacks direct failure-based triggers, reinforcing why option C is invalid. Comment [3] provides the official documentation link for quick verification during exam prep.Official Reference
Exam Strategy
Focus on mastering Lambda's native async features, particularly destinations for both success and failure routing. Always differentiate between inbound triggers (event sources) and outbound destinations (post-execution targets) when designing serverless architectures.
Related Analysis
Practice All DVA-C02 Questions
Access 100 questions with complete answers and detailed explanations.
View Full DVA-C02 Practice Test →