A company runs a containerized web application on Amazon ECS with a steady baseline of 10 tasks that must run continuously. During business hours, traffic spikes require up to 30 additional tasks that can be terminated at any time. The company wants to minimize costs while ensuring the baseline tasks are always available. Which combination of purchasing options should be used for the ECS tasks?
Reserved Instances or Savings Plans provide significant discounts for the steady baseline of 10 tasks, ensuring predictable capacity and cost. Spot Instances handle the variable additional tasks at up to 90% discount, and their interruptible nature is acceptable for the spike capacity. This combination minimizes cost while maintaining baseline availability.
Why this answer
The baseline of 10 tasks runs continuously, so Reserved Instances or Savings Plans offer the best discount for that predictable usage. The additional tasks are variable and can be interrupted, making Spot Instances ideal for cost savings. Combining these two purchasing options aligns cost with the characteristics of each workload component, ensuring availability for the baseline while minimizing spend on the spikes.
Exam trap
The trap here is using Spot Instances for the baseline tasks, which could be interrupted and violate the availability requirement, or using On-Demand for the baseline and missing the savings from Reserved Instances or Savings Plans.