Question 471 · 548 in bank
A developer is using an AWS Lambda function to generate avatars for profile pictures that are uploaded to an Amazon S3 bucket. The Lambda function is automatically invoked for profile pictures that are saved under the /original/ S3 prefix. The developer notices that some pictures cause the Lambda function to time out. The developer wants to implement a fallback mechanism by using another Lambda function that resizes the profile picture. Which solution will meet these requirements with the LEAST development effort?
Show answer
Answer: A
Explanation
Previously, you needed to write the SQS/SNS/EventBridge handling code within your Lambda function and manage retries and failures yourself. With Destinations, you can route asynchronous function results as an execution record to a destination resource without writing additional code. https://aws.amazon.com/ru/blogs/compute/introducing-aws-lambda-destinations/
Source: Adapted from community discussion — jingle4944