AWS Certified Machine Learning Engineer – Associate (MLA-C01) — Question 21

A company needs to run a batch data-processing job on Amazon EC2 instances. The job will run during the weekend and will take 90 minutes to finish running. The processing can handle interruptions. The company will run the job every weekend for the next 6 months.
Which EC2 instance purchasing option will meet these requirements MOST cost-effectively?

Answer options

Correct answer: A

Explanation

Spot Instances are the most cost-effective option for this scenario since they allow the company to take advantage of unused EC2 capacity at reduced prices and can be interrupted. Reserved Instances would require a long-term commitment and upfront payment, while On-Demand Instances are more expensive for short-term tasks. Dedicated Instances are not necessary for this use case and would incur higher costs.