A company has Amazon EC2 instances that run nightly batch jobs to process data. The EC2 instances run in an Auto Scaling group that uses On-Demand billing. If a job fails on one instance, another instance will reprocess the job. The batch jobs run between 12:00 AM and 06:00 AM local time every day. Which solution will provide EC2 instances to meet these requirements MOST cost-effectively?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a new launch template for the Auto Scaling group. Set the instances to Spot Instances. Set a policy to scale out based on CPU usage..
Why this is the answer
The most cost-effective solution is to use Spot Instances. Batch jobs that can tolerate interruptions and be reprocessed, like the scenario describes, are ideal for Spot Instances, which offer significant cost savings compared to On-Demand instances. Setting a policy to scale out based on CPU usage ensures that new instances are launched only when needed. Purchasing a Savings Plan or Reserved Instance would provide cost savings but requires a commitment for a fixed term (1 year in this case) and is less flexible for workloads that run only during specific, limited hours. Increasing the instance size would likely increase costs rather than reduce them.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed