AWS Certified Solutions Architect – Associate (SAA-C03) — Question 856

A company has an application that customers use to upload images to an Amazon S3 bucket. Each night, the company launches an Amazon EC2 Spot Fleet that processes all the images that the company received that day. The processing for each image takes 2 minutes and requires 512 MB of memory.

A solutions architect needs to change the application to process the images when the images are uploaded.

Which change will meet these requirements MOST cost-effectively?

Answer options

Correct answer: A

Explanation

AWS Lambda is the most cost-effective solution because it charges only for the exact duration of execution and the number of requests, aligning perfectly with the 2-minute processing time and 512 MB memory requirement per image. Using Amazon SQS acts as a buffer to handle spikes in image uploads and ensures reliable message delivery to Lambda. Other options involving EC2 Reserved Instances, ECS, or Elastic Beanstalk require provisioning continuously running infrastructure, which incurs higher costs during periods of low activity.