SAA-C03 Question 267
Single answerA company is developing a serverless application to process images uploaded to an Amazon S3 bucket. The images need to be converted into multiple resolutions, and the processing should be highly scalable with minimal operational overhead. Which solution is the MOST cost-effective and operationally efficient for this use case?
- A
Use Amazon EC2 instances to run a custom application triggered by S3 event notifications.
- B
Use Amazon Elastic Kubernetes Service (Amazon EKS) to manage a containerized application triggered by S3 event notifications.
- C
Use AWS Lambda functions triggered by S3 event notifications to process the images.
- D
Use AWS Fargate with Amazon ECS to run a containerized application triggered by S3 event notifications.
Show answer and explanation
Correct answer: C
Explanation
AWS Lambda is the best choice for this scenario because it provides a fully managed, serverless compute platform that automatically scales and integrates seamlessly with Amazon S3 event notifications. This eliminates operational overhead while being cost-effective for tasks like processing images. Other options involve managing infrastructure or add unnecessary complexity to the solution.
- A. Incorrect.
Using Amazon EC2 requires managing instances, scaling, and ensuring availability, which adds operational overhead. This is not the most cost-effective or efficient solution for a serverless architecture.
- B. Incorrect.
Amazon EKS provides container orchestration, but it involves managing the Kubernetes control plane and scaling configurations, which increases complexity compared to serverless options.
- C. Correct.
AWS Lambda is a fully managed serverless compute service that automatically scales and integrates natively with Amazon S3 event notifications. It is both cost-effective and operationally efficient for this use case.
- D. Incorrect.
AWS Fargate allows running containers without managing servers, but it is not as tightly integrated with S3 event notifications as AWS Lambda. It also incurs higher costs compared to Lambda for small, short-lived tasks.