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

How do Spot interruptions work?

AdvancedConceptEC2, Auto Scaling and Load Balancing
Answer

When AWS needs the capacity back it sends a 2-minute interruption notice via instance metadata (/latest/meta-data/spot/instance-action) and an EventBridge event, then stops or terminates the instance. An earlier, non-guaranteed rebalance recommendation signals elevated risk.

Handle it by draining work, checkpointing, and using Capacity Rebalancing in ASGs. Diversify across many instance types and AZs with the price-capacity-optimized allocation strategy to cut interruptions.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing