A company runs a Python script on an Amazon EC2 instance to process data. The script runs every 10 minutes. The script ingests files from an Amazon S3 bucket and processes the files. On average, the script takes approximately 5 minutes to process each file The script will not reprocess a file that the script has already processed. The company reviewed Amazon CloudWatch metrics and noticed that the EC2 instance is idle for approximately 40% of the time because of the file processing speed. The company wants to make the workload highly available and scalable. The company also wants to reduce long-term management overhead. Which solution will meet these requirements MOST cost-effectively?
Select one answer.
Marked answer: A
Community Discussion
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Chose A1
AWS Lambda with S3 event notification is the most cost-effective, highly available, and scalable option for short-lived, event-driven tasks like file processing. It eliminates EC2 idle time, reduces operational overhead, and fits within Lambda’s time and memory limits. This architecture minimizes cost while maximizing simplicity and resilience.
Chose A1
I ran the numbers in the cost calculator and it turns out D is 10 times more expensive than A...
Chose A1
Given the discussion here, I used the cost calculator to estimate the cost of A and D. D is indeed much more costly than A D: 44 USD A: 3 USD