SAA-C03 Question 145
Single answerA company wants to process files uploaded to an Amazon S3 bucket. The files must be processed automatically, and the architecture should be highly available, serverless, and scalable. Which solution should the company implement?
- A
Use Amazon EC2 instances to poll the S3 bucket and process the files.
- B
Configure an S3 event notification to trigger an AWS Lambda function to process the files.
- C
Set up an AWS Fargate service to monitor the S3 bucket and process the files.
- D
Deploy an application on Amazon ECS with an S3 event notification to process the files.
Show answer and explanation
Correct answer: B
Explanation
Using an S3 event notification to trigger an AWS Lambda function is the best solution because it is serverless, automatically scales with demand, and is natively integrated with Amazon S3. This minimizes operational overhead while meeting the requirements of high availability and scalability.
- A. Incorrect.
Using EC2 instances is not serverless and requires managing infrastructure, so it doesn't meet the requirements.
- B. Correct.
Configuring an S3 event notification to trigger an AWS Lambda function is serverless, highly available, and scalable, making it the correct solution.
- C. Incorrect.
AWS Fargate does not natively integrate with Amazon S3 event notifications, so additional components would be required for this setup, making it less efficient.
- D. Incorrect.
While Amazon ECS can process the files, it is not a serverless solution and requires managing container orchestration, which adds complexity.