AWS Certified SysOps Administrator – Associate (SOA-C03) — Question 72
A company generates hundreds of images and uploads the images to an Amazon S3 bucket. The company manually copies the images to an always-on Amazon EC2 instance for processing. It usually takes between 30 seconds and 120 seconds to process each image.
A CloudOps engineer wants to automate the image processing solution to process the images as soon as they arrive in the S3 bucket.
Which solution will meet these requirements MOST cost-effectively?
Answer options
- A. Configure S3 Event Notifications to invoke the EC2 instance when images are uploaded to the S3 bucket. Run the image processing solution on the EC2 instance to process the images.
- B. Configure S3 Event Notifications to invoke an Amazon EventBridge rule. Configure the EventBridge rule to start a preconfigured AWS Glue ETL job to process images.
- C. Configure S3 Event Notifications to invoke an AWS Lambda function that runs image processing logic when new images are uploaded on the source S3 bucket.
- D. Configure S3 Event Notifications to invoke a task on an Amazon Elastic Container Service (Amazon ECS) container that is backed by EC2 instances when the images are uploaded to the S3 bucket. Configure the ECS task to process the images.
Correct answer: C
Explanation
The correct answer is C because AWS Lambda allows for serverless execution which can automatically process images as they are uploaded, providing a cost-effective solution since you only pay for the compute time used. Option A involves maintaining an always-on EC2 instance, which incurs higher costs. Option B uses AWS Glue, which is more suitable for ETL tasks rather than image processing, and Option D involves ECS, which also requires managing infrastructure, leading to increased expenses.