SAA-C03 Question 269
Select 2A company is building a serverless application to process user-uploaded images. The application needs to perform the following steps: store the images, trigger a backend process to analyze the images, and store the analyzed metadata in a database. Which combination of AWS services can be used to achieve this in a scalable and cost-effective manner?
- A
Amazon S3 to store the images, AWS Lambda to process the images, and Amazon DynamoDB to store metadata
- B
Amazon EBS to store the images, AWS Fargate to process the images, and Amazon RDS to store metadata
- C
Amazon S3 to store the images, AWS Step Functions to orchestrate processing, and Amazon DynamoDB to store metadata
- D
Amazon S3 to store the images, AWS Lambda to process the images, and Amazon Aurora to store metadata
- E
Amazon EFS to store the images, AWS Lambda to process the images, and Amazon DynamoDB to store metadata
Show answer and explanation
Correct answers: A, C
Explanation
Serverless architectures are ideal for applications requiring scalability and cost-effectiveness. Amazon S3 is a highly scalable object storage service suitable for storing user-uploaded files. AWS Lambda is a serverless compute service that can efficiently process images without provisioning servers. Amazon DynamoDB is a serverless NoSQL database that provides low-latency and high-performance storage for metadata. AWS Step Functions can be used to orchestrate serverless workflows, making it another viable option for this scenario.
- A. Correct.
This is a correct answer. Amazon S3 provides scalable and cost-effective storage for images, AWS Lambda can process the images without needing to manage servers, and Amazon DynamoDB is a suitable NoSQL database for storing metadata with high performance.
- B. Incorrect.
This is incorrect. Amazon EBS is not serverless and is designed for EC2 instances, which is not required for this use case. AWS Fargate is a serverless compute option but may not be as cost-effective as Lambda for lightweight image processing. Amazon RDS is not always the best choice for storing simple metadata compared to DynamoDB.
- C. Correct.
This is a correct answer. Amazon S3 can store the images, AWS Step Functions can orchestrate the processing with other services like Lambda, and Amazon DynamoDB can store metadata in a scalable and serverless manner.
- D. Incorrect.
This is incorrect. While Amazon S3 and AWS Lambda are valid serverless options, Amazon Aurora is a relational database that may introduce unnecessary complexity and cost for storing simple metadata compared to DynamoDB.
- E. Incorrect.
This is incorrect. Amazon EFS is a fully managed file storage service but is not serverless. It is not a cost-effective or scalable option for this particular use case compared to Amazon S3.