AWS Certified Solutions Architect – Professional (SAP-C02) — Question 66

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?

Answer options

Correct answer: A

Explanation

The correct answer is A because AWS Lambda allows for automatic scaling and is cost-effective since you only pay for the compute time you consume. Options B and D involve additional complexity and resource management that can increase costs and overhead. Option C still requires managing EC2 instances, which does not align with the goal of reducing management overhead.