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

An EC2 instance cannot be launched with "InsufficientInstanceCapacity". What are your options?

IntermediateScenarioEC2, Auto Scaling and Load Balancing
Answer

Situation read → The AZ is out of that instance type right now.

What I'd do →

  1. Retry in another AZ or subnet
  2. Use a different instance type or size, or price-capacity-optimized flexibility
  3. For critical capacity use On-Demand Capacity Reservations
  4. Use attribute-based instance type selection in the ASG
  5. Don't hardcode one type

Why → Flexibility across types and AZs is the best protection against capacity errors.

Interview tip → Reserve capacity ahead of events like a launch.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing