Q45 — AWS DVA-C02 Ch.3

Question 45 of 100 | ← Chapter 3

An application uploads images to an Amazon S3 bucket. The application must resize each uploaded image into a thumbnail. Each thumbnail is saved with a new name in the same S3 bucket. Which AWS service can a developer configure to automatically process each S3 object upload?

Correct Answer: D. AWS Lambda

Explanation

AWS Lambda integrates natively with Amazon S3 via event notifications (e.g., s3:ObjectCreated:*), enabling automatic, serverless execution of code per object upload. It is ideal for lightweight, stateless tasks like image resizing. EC2, ECS, and Elastic Beanstalk require managing infrastructure or orchestration, introducing unnecessary operational overhead for this use case. Per AWS documentation, Lambda is the recommended and most direct solution for S3-triggered processing.