You want to save up to 70 percent on a stateless batch fleet. What do you design?
IntermediateScenarioEC2, Auto Scaling and Load Balancing
Answer
Situation read → Spot Instances with diversification and interruption handling.
What I'd do →
- Use an ASG mixed instances policy across 8 to 10 instance types and all AZs with allocation strategy
price-capacity-optimized - Keep a small On-Demand base
- Handle the two-minute interruption notice via EventBridge or IMDS to drain and checkpoint
- Use SQS so work is retried on interruption
- Enable capacity rebalancing
Why → Diversified pools lower the chance that one capacity pool dries up.
Interview tip → Never run stateful singletons on Spot.