Concept · Builds on CLF-C02
Horizontal vs vertical scaling
Scale out for capacity and availability, scale up for a quick fix, and scale each tier on its own metric.
You know from Cloud Practitioner
- Scalability is the ability to grow. Elasticity is growing and shrinking automatically.
- Horizontal scaling adds more resources. Vertical scaling uses a bigger one.
- High availability means the system stays up through failures.
What changes
- Scale out
- More instances
- Scale up
- A bigger instance
Limit
- Scale out
- Almost none
- Scale up
- Largest instance size
Downtime
- Scale out
- None
- Scale up
- Usually a restart
Availability
- Scale out
- Better: copies in many AZs
- Scale up
- Unchanged: still one server
Needs
- Scale out
- Stateless tier, load balancer
- Scale up
- Nothing in the app
| Compare | Scale out | Scale up |
|---|---|---|
| What changes | More instances | A bigger instance |
| Limit | Almost none | Largest instance size |
| Downtime | None | Usually a restart |
| Availability | Better: copies in many AZs | Unchanged: still one server |
| Needs | Stateless tier, load balancer | Nothing in the app |
1 / 2
What changes
- Scale out
- More instances
- Scale up
- A bigger instance
Limit
- Scale out
- Almost none
- Scale up
- Largest instance size
Downtime
- Scale out
- None
- Scale up
- Usually a restart
| Compare | Scale out | Scale up |
|---|---|---|
| What changes | More instances | A bigger instance |
| Limit | Almost none | Largest instance size |
| Downtime | None | Usually a restart |
2 / 2
Availability
- Scale out
- Better: copies in many AZs
- Scale up
- Unchanged: still one server
Needs
- Scale out
- Stateless tier, load balancer
- Scale up
- Nothing in the app
| Compare | Scale out | Scale up |
|---|---|---|
| Availability | Better: copies in many AZs | Unchanged: still one server |
| Needs | Stateless tier, load balancer | Nothing in the app |
Web tier
- Scale on
- Requests per target
- Policy type
- Target tracking
Queue workers
- Scale on
- Queue depth per instance
- Policy type
- Target tracking, custom metric
Compute-bound tier
- Scale on
- Average CPU
- Policy type
- Target tracking
Known peak
- Scale on
- Time of day
- Policy type
- Scheduled action
Repeating daily pattern
- Scale on
- Forecast load
- Policy type
- Predictive scaling
| Tier or need | Scale on | Policy type |
|---|---|---|
| Web tier | Requests per target | Target tracking |
| Queue workers | Queue depth per instance | Target tracking, custom metric |
| Compute-bound tier | Average CPU | Target tracking |
| Known peak | Time of day | Scheduled action |
| Repeating daily pattern | Forecast load | Predictive scaling |
1 / 2
Web tier
- Scale on
- Requests per target
- Policy type
- Target tracking
Queue workers
- Scale on
- Queue depth per instance
- Policy type
- Target tracking, custom metric
Compute-bound tier
- Scale on
- Average CPU
- Policy type
- Target tracking
| Tier or need | Scale on | Policy type |
|---|---|---|
| Web tier | Requests per target | Target tracking |
| Queue workers | Queue depth per instance | Target tracking, custom metric |
| Compute-bound tier | Average CPU | Target tracking |
2 / 2
Known peak
- Scale on
- Time of day
- Policy type
- Scheduled action
Repeating daily pattern
- Scale on
- Forecast load
- Policy type
- Predictive scaling
| Tier or need | Scale on | Policy type |
|---|---|---|
| Known peak | Time of day | Scheduled action |
| Repeating daily pattern | Forecast load | Predictive scaling |
What it is
Scaling out (horizontal) adds copies behind a load balancer. It has no hard ceiling, improves availability, because a failed copy is replaced, and needs no downtime. It requires a stateless tier. Scaling up (vertical) moves to a bigger instance. It is simple and needs no code change. But a resize means a stop and a start, the largest size is a ceiling, and one big server is still a single point of failure.
What it is
Pick the scaling metric that matches what limits the tier. A web tier scales on requests per target. Queue workers scale on queue depth per instance. A compute-bound tier scales on CPU. Databases usually scale up first, then add read replicas for reads. Writes beyond one node need sharding or a service built for it, such as DynamoDB. Aurora Serverless and DynamoDB on-demand adjust capacity for you.
Remember
- Scale out: more instances, no ceiling, no downtime, needs a stateless design.
- Scale up: a bigger instance. Simple, but it needs a restart and has a ceiling.
- Scale a tier on its own metric: requests per target, queue backlog per instance, CPU.
- Databases: scale up first, then add read replicas for read traffic.
Remember
- Scheduled scaling fits known peaks. Target tracking fits steady response. Predictive scaling fits repeating patterns.
On the exam
- “Handle growth without downtime and survive an instance failure” points to scaling out across AZs.
- “A single server runs out of memory and the application cannot change” points to scaling up.
- “Scale worker instances with the number of waiting jobs” points to scaling on SQS queue depth.
- “A flash sale starts at 9 AM every day” points to scheduled scaling.
Do not mix it up with
AWS Auto ScalingPick the scaling policy and metric, set warm-up, and know warm pools, lifecycle hooks and launch templates.
Elastic Load BalancingHow an Application Load Balancer decides: listeners, rules, target groups, health checks and the settings the exam asks about.
Amazon Simple Queue Service (Amazon SQS)The settings that decide behavior: visibility timeout, long polling, delay, retention, DLQs, and scaling on queue depth.
Also listed under
In this task · 2.1
- Microservices and stateless design
- Multi-tier architectures
- Event-driven and loose coupling patterns
- Serverless application patterns
- AWS Amplify and AWS Device Farm
- Horizontal vs vertical scaling
- Caching strategies
Load Balancing
API Gateway
- When and how to containerize
SQS
SNS
EventBridge
Step Functions
MQ
Secrets Manager
- Choosing purpose-built services
- Choosing object, file or block
Lambda
- Read replicas
ElastiCache
CloudFront
Global Accelerator
Transfer Family
S3
EFS
EBS
Fargate
ECS
EKS