AWS Certified Developer – Associate (DVA-C02) — Question 42

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?

Answer options

Correct answer: A

Explanation

Option A is correct because it allows for a straightforward integration by directly configuring the image resize Lambda function to handle failures from the avatar generator, minimizing development work. The other options, while functional, introduce additional components like SQS, Step Functions, or SNS, which require more setup and management, increasing complexity and development effort.