Q38 — AWS SAP-C02 Ch.3

Question 38 of 75 | ← Chapter 3

Q263. A company is building an image service on the web that will allow users to upload and search random photos. At peak usage, up to 10,000 users worldwide will upload their images. The service will then overlay text on the uploaded images, which will then be published on the company website. Which design should a solutions architect implement?

Correct Answer: C. Store the uploaded images in an Amazon S3 bucket and configure an S3 bucket event notification to send a message to the Amazon Simple Queue Service (Amazon SQS) queue. Create a fleet of Amazon EC2 instances to pull messages from the SQS queue to process the images and place them in another S3 bucket. Use Amazon CloudWatch metrics for queue depth to scale out EC2 instances. Enable Amazon CloudFront and configure the origin to be the S3 bucket that contains the processed images.

Explanation

Option C is the preferred solution for this use case. Storing uploaded images in an Amazon S3 bucket is a highly scalable and durable solution. Configuring an S3 bucket event notification to send a message to Amazon SQS will enable asynchronous processing of image files. A fleet of Amazon EC2 instances can be used to pull messages from the SQS queue and process images, which can be stored in another S3 bucket. Amazon CloudWatch metrics can be used to monitor queue depth and scale out EC2 instances as needed. Enabling Amazon CloudFront and configuring the origin to be the S3 bucket containing processed images will provide low latency content delivery to users. A- EFS will be very expensive for this use case. B - SNS does not appear support native subscriber for ALB. D - As data is stored on EBS volumes, can imagine there is the potential for data loss.