An EC2 instance is running at 100 percent CPU with CPU credits at zero. What happened?
IntermediateScenarioEC2, Auto Scaling and Load Balancing
Answer
Situation read → A burstable T-family instance exhausted its credits and is throttled to baseline.
What I'd do →
- Confirm
CPUCreditBalancein CloudWatch - Switch to unlimited mode:
aws ec2 modify-instance-credit-specification - Or right-size to M or C family
- Or scale out with an ASG
- Compare costs; unlimited bills surplus credits
Why → T instances are cheap only for low average CPU; sustained load needs fixed-performance instances.
Interview tip → Never run steady production CPU on T-class without unlimited.