Q90 — AWS DVA-C02 Ch.3
Question 90 of 100 | ← Chapter 3
A company has an analytics application that uses AWS Lambda functions to process transaction data asynchronously. Developers notice that asynchronous Lambda function invocations sometimes fail. When a Lambda function invocation fails, developers want to invoke a second Lambda function to handle the error and log detailed information. Which solution meets these requirements?
- A. Configure a Lambda function destination and specify failure conditions. Set Lambda function as the destination type and specify the Amazon Resource Name (ARN) of the error-handling Lambda function as the resource. ✓
- B. Enable AWS X-Ray active tracing on the initial Lambda function. Configure X-Ray to capture stack traces for failed invocations. Invoke the error-handling Lambda function by including the stack trace in the event object.
- C. Configure a Lambda function trigger and specify failure conditions. Set Lambda function as the destination type and specify the ARN of the error-handling Lambda function as the resource.
- D. Create a status-check alarm on the initial Lambda function. Configure the alarm to invoke the error-handling Lambda function when triggered. Ensure the alarm passes the stack trace in the event object.
Correct Answer: A. Configure a Lambda function destination and specify failure conditions. Set Lambda function as the destination type and specify the Amazon Resource Name (ARN) of the error-handling Lambda function as the resource.
Explanation
Using Lambda function destinations with failure conditions allows specifying an error-handling Lambda function to be invoked automatically when the initial Lambda function invocation fails. This approach ensures automatic, reliable error-handling logic execution without manual intervention.