QuestionQ94

VerifiedTroubleshooting and Optimization

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?

Explanation

Lambda destinations allow you to configure a destination (another Lambda function) to handle invocation failures automatically without modifying application code. When the first Lambda function fails asynchronously, the destination routes the failed invocation to the error-handling Lambda. X-Ray (B) provides monitoring only; triggers (C) initiate invocations but do not handle failures; status alarms (D) are reactive post-failure notifications, not automatic error handlers.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!