A company plans a global image service where up to 10,000 users worldwide may upload images at peak. Each uploaded image must have text overlaid and then be published to the website. Which architecture should the solutions architect implement to handle uploads and processing at scale?
Choose an answer
Tap an option to check your answer.
Correct answer: Store uploads in an Amazon S3 bucket and configure S3 event notifications to send messages to an Amazon SQS queue. Run a fleet of EC2 instances that poll the SQS queue to process images and write results to a separate S3 bucket. Use CloudWatch metrics for queue depth to scale the EC2 fleet. Configure CloudFront with the S3 bucket that holds processed images as the origin..
Why this is the answer
The correct architecture leverages S3 for scalable storage and SQS for reliable, decoupled processing. S3 event notifications trigger messages to SQS when new images are uploaded. A fleet of EC2 instances, scaled automatically based on SQS queue depth, processes these messages, ensuring efficient handling of varying loads. Processed images are stored in a separate S3 bucket, and CloudFront delivers them globally from this S3 origin, providing low latency and high availability. Option 1 is incorrect because EFS is not ideal for global, high-scale uploads, and using CloudWatch Logs for processing triggers is inefficient and not designed for this purpose. Option 2 is incorrect because SNS is a publish/subscribe service, not a message queue for worker pools, and using EFS for processed images is less scalable and cost-effective than S3. Option 4 is incorrect because EBS volumes are not shared across multiple EC2 instances in this manner, and Spot Instances are not suitable for critical, continuous processing without robust interruption handling.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed