Interview Prep/Real-World Interview/Cloud provider issues

The Auto Scaling group can't launch new instances during a traffic spike; activity history says "We currently do not have sufficient c6i.4xlarge capacity in the Availability Zone you requested."

BeginnerTroubleshootingCloud provider issues
Answer

Likely causes → InsufficientInstanceCapacity: AWS doesn't have spare capacity of that exact instance type in that AZ right now. It's common for popular sizes during regional demand peaks, and the ASG is pinned to one type.

Diagnose →

aws autoscaling describe-scaling-activities --auto-scaling-group-name web --max-items 5 \
  --query 'Activities[].StatusMessage'

Fix → Allow more instance types and AZs in the ASG with a mixed instances policy (c6i, c6a, c7i, m6i of similar size) so it can launch whatever is available.

Prevent → Always configure several instance types and all AZs, use On-Demand Capacity Reservations for must-have capacity (big launch days), and use Karpenter on EKS to choose from many instance types.

All Real-World Interview questions Roadmap: Interview readiness

More on Cloud provider issues