Interview Prep/AWS/EC2, Auto Scaling and Load Balancing

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 →

  1. Use an ASG mixed instances policy across 8 to 10 instance types and all AZs with allocation strategy price-capacity-optimized
  2. Keep a small On-Demand base
  3. Handle the two-minute interruption notice via EventBridge or IMDS to drain and checkpoint
  4. Use SQS so work is retried on interruption
  5. Enable capacity rebalancing

Why → Diversified pools lower the chance that one capacity pool dries up.

Interview tip → Never run stateful singletons on Spot.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing