AWS Solutions Architect Handbook SAA-C03, from zero Bipin Singh
Compute

Auto Scaling

2 min readChapter 19 of 48By Bipin Singh

Auto Scaling adjusts capacity automatically to match demand and replaces unhealthy instances. Combined with a load balancer across multiple AZs, it's the standard answer for scalable, highly available EC2 workloads.

Auto Scaling groups (ASGs)

An ASG manages a fleet of EC2 instances:

Health checks

Scaling policies

Policy How it works Use when
Target tracking Keep a metric at a target (e.g. average CPU 50%, ALB requests per target 1,000) Most cases — simplest and recommended
Step scaling Add/remove amounts based on alarm breach size Need different responses to small vs large spikes
Simple scaling One adjustment per alarm, then a cooldown Legacy; prefer target tracking
Scheduled scaling Change capacity at set times Predictable patterns (business hours, weekly reports)
Predictive scaling Forecasts load from history and scales ahead of time Recurring daily/weekly cycles with slow-starting instances
Key idea

Scale on the metric that represents load for your app — CPU, ALB request count per target, or SQS queue backlog per instance for worker fleets.

Speeding up scaling

Lifecycle hooks

Pause instances during launch or termination to run custom actions — install software, register with a system, or copy logs off an instance before it's terminated.

Termination behaviour

On scale-in, the default policy first balances AZs, then prefers instances with the oldest launch template/configuration, then those closest to the next billing hour. Scale-in protection can protect specific instances.

Mixed instances and Spot

An ASG can mix On-Demand and Spot across multiple instance types, e.g. a guaranteed On-Demand base plus Spot for the rest — a strong cost-optimized pattern for stateless fleets.

AWS Auto Scaling (beyond EC2)

Application Auto Scaling and the AWS Auto Scaling console scale other resources too: ECS services, DynamoDB capacity, Aurora replicas, Spot Fleets and more.

Exam patterns

Bipin Singh
Written by Bipin Singh

Senior Full-Stack Engineer · AI & AWS. I design and run production systems on AWS — serverless, data and AI.

Work with me