
Answer-first summary for fast verification
Answer: Use Lambda destinations to route failed events to the image resize Lambda.
The correct answer is A. Using AWS Lambda Destinations to route failed events to another Lambda function requires the least development effort. This built-in feature allows developers to automatically handle asynchronous function results without writing additional code for error handling. Option A leverages this capability to route failed events directly to the image resize Lambda, effectively handling timeouts with minimal additional setup. Other options (B, C, and D) would involve more development and configuration effort, making them less optimal for this use case.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
An AWS Lambda is used to create avatars from images uploaded to an Amazon S3 bucket under the /original/ prefix. To handle timeouts for large images, a fallback Lambda for resizing is needed with minimal development effort. What is the most efficient setup?
A
Use Lambda destinations to route failed events to the image resize Lambda.
B
Utilize Amazon SQS with on failure conditions to trigger the image resize Lambda.
C
Implement AWS Step Functions with a state machine for invoking the avatar generator and the image resize Lambda as a fallback, triggered by an Amazon EventBridge rule.
D
Employ Amazon SNS for on failure notifications to the image resize Lambda.