CLF-C02 Question 175
Single answerA company needs to process a large number of image files uploaded to an Amazon S3 bucket. The processing task involves resizing the images and is event-driven, requiring minimal operational overhead. Which AWS service is the most appropriate for implementing this solution?
- A
AWS Lambda
- B
Amazon EC2
- C
AWS Fargate
- D
Amazon Elastic Kubernetes Service (EKS)
Show answer and explanation
Correct answer: A
Explanation
AWS Lambda is the most appropriate choice for this scenario because it is designed to handle event-driven workloads, such as processing events triggered by S3 bucket operations. It removes the need to manage infrastructure, scales automatically, and integrates seamlessly with S3, making it the optimal solution for this use case.
- A. Correct.
AWS Lambda is ideal for event-driven workloads, such as processing files uploaded to an S3 bucket. It is serverless, requires no management of underlying infrastructure, and scales automatically based on demand.
- B. Incorrect.
Amazon EC2 requires provisioning and managing servers, which introduces operational overhead. This makes it less suitable for an event-driven, serverless workload.
- C. Incorrect.
AWS Fargate is a serverless compute option for containerized applications, but it is not the best fit for a simple event-driven use case like processing S3 events.
- D. Incorrect.
Amazon Elastic Kubernetes Service (EKS) is used for running Kubernetes containers at scale, but it requires significant management and is not as straightforward as Lambda for this specific event-driven task.