[AWS Cloud Practitioner Exam Prep Lecture 4, Part 3] ELB and Auto Scaling — The Limits of a Single Server, Vertical and Horizontal Scaling, Load Balancers, ELB and Its Types, Auto Scaling, Using Them Together

AWS Cloud Practitioner Exam Prep Lecture 4, Part 3 ELB and Auto Scaling — The Limits of a Single Server, Vertical and Horizontal Scaling, Load Balancers, ELB and Its Types, Auto Scaling, Using Them Together Certification

“Traffic spikes only on sale days. Should I make the server bigger, or increase the number of servers?”
“ELB and Auto Scaling both sound like they are about servers going up and down. I can’t tell what the difference is.”

Both are questions that people often ask when they start learning about elasticity on AWS. The answer to the first is “Making a server bigger is vertical scaling, and increasing the number of servers is horizontal scaling. ELB and Auto Scaling achieve elasticity through horizontal scaling.” The answer to the second is “ELB only distributes requests; it does not increase or decrease the number of servers. Auto Scaling is what increases or decreases the number.” This article walks through the difference in order, using the example of a company that runs an e-commerce site.

This article is Lecture 4, Part 3 of the AWS Certified Cloud Practitioner exam prep course (exam code CLF-C02; hereafter “CLF”). Within the exam guide, it covers elasticity through automatic scaling and the purpose of load balancers, which fall under Task Statement 3.3 (Identify AWS compute services). This series is not official AWS material. The exam information here is as of October 26, 2026 and may change, so check the official AWS pages before you take the exam.


The limits of a single server

Suppose a company that runs an e-commerce site holds a sale on shop.example.com.

On ordinary days, one server may be enough. But on the day of the sale, traffic concentrates, processing can’t keep up, and pages load slowly. In terms of a store, it is like having only one cash register while the line of customers grows longer.

On top of that, if that one server fails, the whole site goes down.

A setup supported by a single server therefore has two limits: it is weak against concentrated load, and when it stops, everything stops. The next sections look in order at the idea of supporting the site with more servers to get past these limits.

A diagram showing the limits of a single server. At the top, "Many users" is shown as three user PC icons in a row. From the three PCs, downward arrows labeled "Requests" point to one "Server" (a server icon) inside a red frame. To the right of the red frame, red text reads "Slow under heavy load" and "If it stops, everything stops." The sentence at the bottom reads "One server is weak against load and failure."
  • When traffic concentrates, one server gets slow
  • When one server stops, the whole service stops
  • The next sections cover the idea of supporting the site with more servers

Vertical scaling and horizontal scaling ◎

There are two ways to increase processing capacity.

Vertical scaling (making one server bigger; also called scaling up) replaces a single server with a larger type to give it more CPU and memory. On EC2, this means changing the instance type. Note that AWS documentation sometimes uses “scale up” simply to mean adding capacity (the “Elasticity and scalability” section of Lecture 2, Part 2). In this course, we use the terms scale up and scale out when we are distinguishing between making one server bigger and increasing the number of servers.

Horizontal scaling (increasing the number of servers; also called scaling out) increases the number of servers of the same size, and reducing the number is called scaling in.

Vertical scaling is limited by the size of one server, while horizontal scaling lets you add and remove servers, which makes it easier to match demand. ELB and Auto Scaling, which we look at next, achieve elasticity (the “Elasticity” section of Lecture 2, Part 2) through horizontal scaling.

A diagram comparing vertical scaling and horizontal scaling. Two frames sit side by side. The left frame is "Vertical scaling": a right-pointing arrow extends from one small box to one large box, with "Make it bigger" under the arrow and, below that in small text, "Also called scaling up." The right frame is "Horizontal scaling": a right-pointing arrow extends from one box to three boxes of the same size, with "Add more servers" under the arrow and, below that in small text, "Also called scaling out." The sentence at the bottom reads "Vertical = size, horizontal = count."
  • Vertical: make one server bigger (also called scaling up)
  • Horizontal: increase the number of servers (also called scaling out)
  • Remember it this way: vertical is about size, horizontal is about number

This is the first question from the start of the article. Making a server bigger is vertical, and increasing the number of servers is horizontal. As we saw in the “What is an instance type?” section of Lecture 4, Part 2, the size of an EC2 instance is determined by its type (instance type), so vertical scaling, which makes one server bigger, means changing the type.


The purpose of a load balancer ◎

When you increase the number of servers, a new problem appears: how to distribute requests from users across multiple servers.

A load balancer is a mechanism that provides a single entry point for requests from users and distributes them across multiple servers. In terms of a store, it is the person who guides customers to open registers. This keeps the load from being concentrated on one server and lets the system as a whole handle many requests.

It also performs health checks (regularly checking whether the destinations of the distribution are working normally) and does not send requests to a server that has stopped. Users can use the service without being aware of how many servers there are behind it or which ones have stopped.

The exam guide also lists identifying the purpose of a load balancer as a target skill.

A diagram showing how a load balancer works. On the left is a "User" PC icon, connected by an arrow labeled "One entry point" to a "Load balancer" icon. From the load balancer, lines extend to three "Server" boxes stacked vertically on the right. Gray lines are "Requests" and go only to the top two servers. Green lines are "Health checks" and go to all three servers. The bottom server is marked with a red circled X, and there is no gray request line going to it. The legend at the lower left shows a gray arrow as "Requests" and a green arrow as "Health checks." The sentence at the bottom reads "No requests to a stopped server."
  • It provides one entry point and distributes requests across multiple servers
  • Health checks take stopped servers out of rotation
  • Increasing or decreasing the number of servers is a separate mechanism (Auto Scaling)

What is Elastic Load Balancing (ELB)? ◎

Elastic Load Balancing (ELB) is the AWS load balancer service.

ELB is responsible for distribution only, and it does not increase or decrease the number of servers. Increasing or decreasing the number is the role of Auto Scaling.

The destinations of the distribution are called targets, and you register things such as EC2 instances. Targets can be placed in one or more AZs, and if you spread them across multiple AZs, it is easier to keep running on the rest even if one AZ goes down (for the idea of AZs, see the “Availability Zones (AZs)” section of Lecture 3, Part 2).

ELB sends requests only to targets whose health check results are healthy. Also, when the volume of requests changes, ELB’s own capacity is adjusted automatically.

  • ELB is the AWS load balancer service
  • It distributes requests to healthy targets only, using health checks
  • Increasing or decreasing the number of servers is the role of Auto Scaling

This is the first half of the answer to the second question from the start of the article. ELB only distributes requests; it does not change the number of servers.


Types of ELB ○

ELB comes in several types. Here we look at the following three.

TypeIn one lineSuited to
Application Load Balancer (ALB)Distributes web traffic (HTTP and HTTPS) by looking at its contentWebsite traffic
Network Load Balancer (NLB)Distributes traffic including non-web traffic (TCP and UDP)Non-web traffic
Gateway Load Balancer (GWLB)Passes traffic through inspection appliances (such as firewalls) before distributing itCases where traffic must be inspected

Note: Classic Load Balancer is the previous generation (as of October 26, 2026). ELB is not in the exam guide’s list of in-scope AWS services, but “the purpose of a load balancer” is a target skill.

Source: What is Elastic Load Balancing?


What is Auto Scaling? ◎

Auto Scaling is a mechanism that automatically increases and decreases the number of servers to match demand. It is how AWS achieves the elasticity you learned about in Lecture 2. In terms of a store, it plays the role of opening more registers when it gets busy and closing them when it quiets down.

The unit in which the number of servers is increased or decreased is called an Auto Scaling group, and for the group you set a minimum, desired, and maximum number of servers.

Be careful with names that look alike.

NameWhat it does
Amazon EC2 Auto ScalingA feature that adjusts the number of EC2 instances
AWS Auto ScalingA service that plans scaling for multiple resources (the resources you use on AWS, such as servers and databases) together. This is the name in the exam guide’s list of in-scope AWS services

In this lecture, we write Auto Scaling for the mechanisms that increase and decrease the number of servers as a whole.

  • Auto Scaling automatically increases and decreases the number of servers
  • The number is set in an Auto Scaling group with a minimum, desired, and maximum
  • The EC2 version adjusts the number of servers; the AWS version plans for multiple services

How Auto Scaling works

For an Auto Scaling group, you set a lower limit (the minimum), a target (the desired number), and an upper limit (the maximum) for the number of servers. For example, with a minimum of 2 and a maximum of 6, the number of servers goes up and down between 2 and 6.

There are several triggers for a change.

  • A person sets the number by hand
  • The number changes at a time you decided in advance
  • The number changes automatically based on a metric such as CPU utilization

Metrics are collected by Amazon CloudWatch (covered in the “Amazon CloudWatch” and “CloudWatch alarms” sections of Lecture 9, Part 1).

On a sale day, the number of servers increases to match the peak of traffic at midday and decreases at night. When the number decreases, the cost of the unused servers also goes down. When a server is no longer healthy, it is replaced with a new one to keep the desired number.

A graph showing how the number of servers goes up and down with Auto Scaling. The vertical axis is "Servers" and the horizontal axis is "Time," with the ticks "Night," "Day," and "Night" from the left. The thick gray line, "Traffic," is low at night, peaks during the day, and is low again at night. The thick orange stepped line, "Servers," rises in steps a little after the peak in traffic, falls in steps after the peak, and returns to the minimum at night. A thin black horizontal line at the top is "Max 6," and one at the bottom is "Min 2," with the legend "Min / Max." The line for the number of servers stays between the minimum and maximum lines. The sentence at the bottom reads "Scales between the minimum and maximum."
  • The number of servers goes up and down within the minimum and maximum
  • Triggers include metrics, schedules, and manual changes
  • Unhealthy servers are replaced with new ones

Combining ELB and Auto Scaling

In a real system, you combine ELB and Auto Scaling. Their roles are separate.

  • Auto Scaling increases and decreases the number of servers
  • ELB distributes requests to the servers that exist right now

If you connect Auto Scaling to ELB, a newly launched server is automatically registered as a distribution target of ELB, and the registration is removed when the server is terminated.

Furthermore, if you spread the servers across two AZs, such as AZ-a and AZ-b, the other AZ can keep running even if one of them goes down. This is a form of the idea of making a system harder to stop by using multiple AZs, which you learned in Lecture 3 (the “Place servers across multiple AZs” section of Lecture 3, Part 3), achieved with AWS mechanisms. The company that runs an e-commerce site can get through its sale day with this setup, too.

An architecture diagram combining ELB and Auto Scaling. At the top is a "User" PC icon, with an arrow pointing down to a wide frame, "ELB" (with the ELB icon). The ELB frame spans the two AZ frames below it. Four arrows extend down from ELB. Below, the frames "AZ-a" and "AZ-b" sit side by side, and each frame contains two "Server" boxes with EC2 icons. One arrow goes to each server. An orange frame, "Auto Scaling group" (with the Auto Scaling icon), encloses both AZ frames together. The legend at the lower left shows the arrow as "Requests." The sentence at the bottom reads "ELB distributes; Auto Scaling sets the count."
  • Auto Scaling increases and decreases the number of servers
  • ELB distributes requests to the servers that exist now
  • Spreading servers across two AZs makes the system harder to stop

This is the second question from the start of the article. The two roles are separate, and you use them in combination.

If you want to learn more, Cloud Fundamentals, Part 4 (“Compute, Part 2”) covers, in its “Auto Scaling” section and its “ELB (Elastic Load Balancing)” section, more detailed content beyond the scope of the exam (how scaling decisions are made, the features of each ELB type, and so on).


Think about it

  1. How would you prepare for the traffic spike on a sale day, with vertical scaling or horizontal scaling? Compare the features of each and explain. Think about it as if you were answering the first question from the start of the article in your own words
  2. Explain the role of a load balancer using the cash register example (the person who guides customers to open registers) and the function of health checks
  3. Answer the second question from the start of the article using the words “distribute” and “increase or decrease the number of servers.” Also explain why spreading servers across two AZs makes the system harder to stop

Hint: For 1, review the “Vertical scaling and horizontal scaling” section. For 2, review the “The purpose of a load balancer” section. For 3, review the “What is Elastic Load Balancing (ELB)?” and “Combining ELB and Auto Scaling” sections.


Summary

  • A setup supported by a single server has two limits: it is weak against concentrated load, and when it stops, everything stops
  • Vertical scaling makes one server bigger (scaling up), and horizontal scaling increases the number of servers (scaling out); reducing the number is scaling in. ELB and Auto Scaling achieve elasticity through horizontal scaling
  • A load balancer provides one entry point and distributes requests across multiple servers. With health checks, it does not send requests to a server that has stopped
  • ELB is the AWS load balancer service, and it is responsible for distribution only. The destinations of the distribution are targets. The types are ALB (web traffic), NLB (traffic including non-web traffic), and GWLB (passes traffic through inspection appliances)
  • Auto Scaling automatically increases and decreases the number of servers. You set a minimum, desired, and maximum for the Auto Scaling group. Triggers include metrics, schedules, and manual changes. Unhealthy servers are replaced with new ones
  • Combine ELB and Auto Scaling and spread servers across two AZs, and the system becomes strong against both heavy load and failure

Next, Lecture 4, Part 4 covers serverless.


The AWS Cloud Practitioner Exam Prep series (103 parts)

All 103 parts with a reading guide: AWS Cloud Practitioner Exam Prep

In this group (Lecture 4: Compute (Parts 1–6)):

This series is the English edition of 【AWS クラウドプラクティショナー試験対策講座】, originally written in Japanese.

コメント

Copied title and URL