
Answer-first summary for fast verification
Answer: Set a Lambda function destination for failed invocations, using the error-handling function's ARN.
The correct answer is A. AWS Lambda destinations allow you to specify what should happen with the invocation records of your Lambda functions depending on whether the invocation was successful or failed. By configuring a Lambda function destination for failed invocations, you can direct the failed invocation records to another Lambda function specified by its Amazon Resource Name (ARN). This setup doesn't require changes to the application code and automatically handles errors, making option A the most suitable and efficient solution.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In an analytics application using AWS Lambda for asynchronous transaction data processing, how can a developer ensure that a secondary Lambda function is invoked to handle and log errors from failed asynchronous invocations?
A
Set a Lambda function destination for failed invocations, using the error-handling function's ARN.
B
Implement AWS X-Ray tracing to capture and relay stack traces of failures to an error-handling Lambda function.
C
Establish a trigger for the Lambda function based on failure conditions, directing to the error-handling function's ARN.
D
Generate a status check alarm for the Lambda function to trigger the error-handling function, including stack trace details.
No comments yet.