
Answer-first summary for fast verification
Answer: Create a static website hosted in Amazon S3 that invokes AWS Lambda functions to resize the images and store the images in an Amazon S3 bucket.
## Explanation **Option A is the correct answer** because it provides a highly scalable and serverless architecture that meets all requirements: 1. **Static website hosted in Amazon S3** - Provides high availability and scalability for serving the frontend 2. **AWS Lambda functions** - Automatically scale to handle unpredictable traffic patterns without provisioning servers 3. **Amazon S3 bucket** - Ideal for storing images with high durability and availability 4. **Serverless architecture** - Maximizes scalability and handles unpredictable traffic efficiently **Why other options are incorrect:** **Option B**: - Static website on CloudFront is good for content delivery, but CloudFront is not typically used to host dynamic websites - Amazon RDS database is not suitable for storing images (better for structured data) - AWS Step Functions is for orchestrating workflows, not directly for image processing **Option C**: - EC2 instance requires manual scaling and cannot handle unpredictable traffic patterns efficiently - Single EC2 instance creates a single point of failure - Requires managing servers and scaling infrastructure **Option D**: - While ECS can auto-scale, it's more complex than a serverless solution - EC2 instance for image processing still requires server management - More moving parts than necessary for this use case **Key AWS services for this solution:** - **Amazon S3** for static website hosting and image storage - **AWS Lambda** for serverless image processing - **Amazon API Gateway** (implied) to trigger Lambda functions from the frontend - **Amazon CloudFront** (optional) for content delivery optimization This serverless architecture provides maximum scalability, high availability, and cost efficiency by only paying for actual usage.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A social media company wants to allow its users to upload images in an application that is hosted in the AWS Cloud. The company needs a solution that automatically resizes the images so that the images can be displayed on multiple device types. The application experiences unpredictable traffic patterns throughout the day. The company is seeking a highly available solution that maximizes scalability.
What should a solutions architect do to meet these requirements?
A
Create a static website hosted in Amazon S3 that invokes AWS Lambda functions to resize the images and store the images in an Amazon S3 bucket.
B
Create a static website hosted in Amazon CloudFront that invokes AWS Step Functions to resize the images and store the images in an Amazon RDS database.
C
Create a dynamic website hosted on a web server that runs on an Amazon EC2 instance. Configure a process that runs on the EC2 instance to resize the images and store the images in an Amazon S3 bucket.
D
Create a dynamic website hosted on an automatically scaling Amazon Elastic Container Service (Amazon ECS) cluster that creates a resize job in Amazon Simple Queue Service (Amazon SQS). Set up an image-resizing program that runs on an Amazon EC2 instance to process the resize jobs.