SAA-C03 Question 143
Select 3A company is building a serverless application using AWS Lambda and Amazon API Gateway. The application processes images uploaded to an Amazon S3 bucket. After processing, the images are stored in another S3 bucket. The company wants to scale the solution automatically, ensure high availability, and minimize operational overhead. Which combination of AWS services and configurations should the company use to achieve this?
- A
Configure an S3 event notification to trigger an AWS Lambda function when an image is uploaded.
- B
Use Amazon EC2 Auto Scaling to handle Lambda scaling during high traffic periods.
- C
Set up an Amazon API Gateway to invoke the Lambda function for processing images.
- D
Store processed images in an Amazon S3 bucket with lifecycle policies for automatic archival after a set period.
- E
Use AWS Fargate to host the image processing logic for better control of the underlying infrastructure.
Show answer and explanation
Correct answers: A, C, D
Explanation
This question tests your understanding of serverless patterns using AWS Lambda, Amazon S3, and Amazon API Gateway. By configuring S3 event notifications to trigger a Lambda function, you automate the image processing workflow in a serverless manner. Amazon API Gateway can be used for additional API interaction if needed. Storing the processed images in S3 with lifecycle policies ensures cost-effective storage management. AWS Lambda already provides automatic scaling and high availability, so there is no need for manual scaling or using Fargate in this scenario.
- A. Correct.
Correct: Configuring an S3 event notification to trigger a Lambda function automates the workflow and minimizes operational overhead. It is the preferred approach for serverless architectures.
- B. Incorrect.
Incorrect: Amazon EC2 Auto Scaling is not used for AWS Lambda. Lambda automatically scales based on the number of incoming events, so there is no need to manage scaling manually.
- C. Correct.
Correct: Amazon API Gateway can be used to invoke the Lambda function if there’s a requirement for client-side interaction or additional API endpoints.
- D. Correct.
Correct: Storing processed images in an S3 bucket with lifecycle policies helps reduce storage costs by archiving or deleting files after a defined period.
- E. Incorrect.
Incorrect: AWS Fargate is used for running containerized applications, but it is not required in this scenario where AWS Lambda provides a fully managed serverless compute service with no need to manage the underlying infrastructure.