“I heard that EC2 is a service that lets you rent virtual servers. After I rent one, what do I have to manage myself? Do I have to update the OS myself, too?”
“There are lots of names like m7g.large, and I can’t tell which one to pick. Do I need to memorize all of the names for the exam?”
Both are questions that people often ask when they start learning EC2. The answer to the first is “The customer manages OS updates and configuration, the applications you install, your data, and the settings of the virtual firewall (the security group) that decides whether traffic is allowed or blocked. AWS manages the data center buildings, the physical servers, and the virtualization layer.” The answer to the second is “Don’t start with the fine details of the names. First learn what each family (a group of instance types divided by what it is good at) is used for. The first letter of a name marks the family.” This article walks through the reasons for both answers in order.
This article is Lecture 4, Part 2 of the AWS Certified Cloud Practitioner exam prep course (exam code CLF-C02; hereafter “CLF”). Within the exam guide, it covers Amazon EC2 and instance types, 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.
What is Amazon EC2? ◎
Of the four ways to use compute that we saw in the “The big picture of AWS compute” section of Lecture 4, Part 1, the first, “renting,” is Amazon EC2.
Amazon Elastic Compute Cloud (Amazon EC2) is a service that lets you rent as many virtual servers as you need, when you need them. Each virtual server you rent is called an “instance.”
You don’t have to buy and install physical servers, and you decide for yourself when to start and when to stop. You can choose the OS from options such as Linux and Windows.
For example, a company that runs an e-commerce site (a site that sells products over the internet) can use EC2 to set up the servers that run its website.
Pricing is basically pay-for-what-you-use. The differences between ways of buying are covered from the “Overview of purchase options” section of Lecture 13, Part 4 through Lecture 13, Part 5.
- EC2 is a service for renting virtual servers (instances)
- You can get the number and size you need, when you need them
- The differences between ways of buying are covered in Lecture 13, Parts 4 and 5
EC2 use cases
What uses is EC2 suited to? The table below summarizes them using the example of a company that runs an e-commerce site.
| Use | Example (a company that runs an e-commerce site) | Why EC2 fits |
|---|---|---|
| Website servers | Serve the pages of shop.example.com | It is easy to change the number of servers to match traffic |
| Business applications | A system that manages orders and inventory | You can choose the OS and settings yourself |
| Development and test environments | A temporary environment for trying a new feature | You can set it up only when needed and then stop it |
| Compute-heavy processing | Large-scale analysis of sales data | You can choose a type that is strong in computing or memory |
Note: The examples in the table are written in our own words as examples of how EC2 is used. The AWS product page also lists others, such as machine learning and building and testing macOS apps (as of October 26, 2026).
Source: Amazon EC2
What the customer manages on EC2 ◎
With EC2, in exchange for renting a virtual server, managing what is inside it is the customer’s job.
What AWS manages is the data center buildings, the physical servers, and the virtualization layer.
The customer manages the following on top of that:
- OS updates (including security patches) and configuration
- The applications you install
- Your data
- The settings of the virtual firewall that decides whether traffic is allowed or blocked (the security group, covered in the “Security groups” section of Lecture 6, Part 3)

On the other hand, some services, such as AWS Lambda (Lecture 4, Part 4), have AWS manage the execution environment (the OS and the runtime, which is the software that runs your programs).
This division of roles as a whole is called the shared responsibility model, and it is covered in the “What is the shared responsibility model?” section of Lecture 10, Part 1 and the “How responsibility changes by service” section of Lecture 10, Part 2.
- AWS manages the buildings, physical servers, and virtualization
- The customer manages OS updates, applications, and data
- The whole division of roles is covered in Lecture 10, Parts 1 and 2
This is the first question from the start of the article. OS updates are the customer’s job, too. Of the three layers of a server that we saw in the “Compute and servers” section of Lecture 4, Part 1, AWS handles the hardware and virtualization layers, and the customer handles everything from the OS up.
Source: Shared Responsibility Model
What is an instance type? ◎
An instance type is a template for the combination of CPU, memory, storage, and network assigned to an instance. You pick the type that fits your use and launch with it, and you can change it later too (there are conditions for changing it).
Type names follow a pattern. For example, “m7g.large” reads as follows:
- The first letter m: a marker for the family. m stands for general purpose
- The next number 7: the generation
- The next letter g: an additional feature
- large, after the dot: the size

For the exam, first learn what each family (the instance type family, or instance family: a group divided by what it is good at) is used for. The next section shows the list of families. Note that AWS documentation sometimes uses “family” for the name part itself, such as “m7g.” In this course, we call a group divided by what it is good at (such as general purpose) a family.
- An instance type is a template for a combination of CPU, memory, and so on
- Pick a type that fits your use; you can change it later
- The first letter of the name is the marker for the family. First learn the uses
This is the second question from the start of the article. You don’t need to memorize all of the names. First learn that “the first letter marks the family” and what each family is used for.
Instance type families ◎
A family is a group divided by what it is good at. There are six.
| Family | What it is good at | Suited to | Example first letter |
|---|---|---|---|
| General purpose | A good balance of CPU, memory, and network | Many uses | M |
| Compute optimized | Computing that takes advantage of high-performance CPUs | Processing centered on computation | C |
| Memory optimized | Processing large data in memory quickly | Processing that keeps large data in memory | R |
| Storage optimized | Fast disk reads and writes with low latency | Processing with many reads and writes | I |
| Accelerated computing | Efficient processing with specialized components | Image processing and machine learning | P, G |
| HPC optimized | Running HPC workloads at large scale | Large-scale high-performance computing | Hpc |
Note: HPC stands for high-performance computing (running large-scale computations quickly). The list may change (as of October 26, 2026).
Source: Amazon EC2 instance types

How to choose a family
Let’s practice choosing a family from a use. This is an example of a company that runs an e-commerce site.
| Use (a company that runs an e-commerce site) | Family to choose | Reason |
|---|---|---|
| Website servers | General purpose | It works for many uses |
| Large-scale computation on sales data | Compute optimized | It takes advantage of high-performance CPUs |
| Processing that keeps large data in memory | Memory optimized | It processes data in memory quickly |
| Reading and writing large volumes of logs | Storage optimized | Reads and writes are fast |
| Product image recognition and machine learning | Accelerated computing | It processes efficiently with specialized components |
Note: The idea of reviewing sizes (rightsizing) is covered in the “Rightsizing” section of Lecture 2, Part 3, and the tool used for the review (AWS Compute Optimizer) is covered in the “AWS Compute Optimizer” section of Lecture 9, Part 5. Ways of buying are in Lecture 13, Parts 4 and 5. HPC optimized is for special large-scale computing, so it is left out of this table.
What you choose when you launch EC2 ○
Of the main items you choose when you launch an instance on EC2, here are six whose names you should know.
| No. | What you choose | In one line | Related lecture |
|---|---|---|---|
| ① | Amazon Machine Image (AMI) | A template of the OS and software | — |
| ② | Instance type | A type of CPU and memory | — |
| ③ | Key pair | A pair of keys used to sign in | — |
| ④ | Network | Where to place it | Lecture 6 (networking) |
| ⑤ | Security group | A virtual firewall | Lecture 6 (networking) |
| ⑥ | Storage | Where to put data | Lecture 5, Part 2 |
The security group in ⑤ is chosen within the network settings on the launch screen (④ is in the “What is Amazon VPC?” section of Lecture 6, Part 2, and ⑤ is in the “Security groups” section of Lecture 6, Part 3). For the storage in ⑥, you choose something such as Amazon Elastic Block Store (Amazon EBS) (the “Amazon EBS” section of Lecture 5, Part 2). The AZ in which to place the instance is also decided within the network settings of ④ (it is decided by which subnet you place it in; see the “Subnets” section of Lecture 6, Part 2). The idea that launching across multiple AZs prepares you for the failure of one AZ was covered in the “How AZs are used differs by service” section of Lecture 3, Part 3.

This is not a step-by-step procedure; it is a map of what you choose.
- There are six main items you choose at launch
- Start with the OS template (the AMI) and the type (the instance type)
- Networking is covered in Lecture 6, Part 2 (VPCs and subnets) and Part 3 (security groups and network ACLs), and storage in Lecture 5, Part 2 (EBS and instance store)
Key pairs and signing in
The key pair in ③ is a pair consisting of a private key and a public key. When you launch an instance, the public key is placed inside the instance. When you sign in to a Linux instance over SSH, you specify the private key that you keep on your own machine.
You can download the private key file only once, when you create the key pair. EC2 does not keep a copy, so if you lose it, you cannot get it back.
Exam point: “Sign in to a Linux EC2 instance over SSH” → the private key of the key pair. The “public key” is the side that is placed inside the instance.
Source (as of November 3, 2026): Amazon EC2 key pairs and Amazon EC2 instances (Amazon EC2 User Guide)
Think about it
- Suppose you rent an instance on EC2. Using the three layers “physical servers and virtualization,” “OS,” and “applications and data,” explain what AWS manages and what the customer manages. Also say whose job the security group settings are
- Read the name “m7g.large” by splitting it into four parts: “family marker, generation, additional feature, and size.” Also explain what you should learn first for the exam
- Suppose a company that runs an e-commerce site runs “product image recognition” and “reading and writing large volumes of logs” on EC2. Explain which family you would choose for each, and give your reasons
Hint: For 1, review the “What the customer manages on EC2” section. For 2, review the “What is an instance type?” section. For 3, review the “How to choose a family” section.
Summary
- Amazon EC2 is a service that lets you rent as many virtual servers as you need, when you need them. Each one you rent is an instance. You can choose the OS from options such as Linux and Windows, and pricing is basically pay-for-what-you-use
- EC2 is used for website servers, business applications, development and test environments, compute-heavy processing, and more
- OS updates and configuration, applications, data, and security group settings are the customer’s job; buildings, physical servers, and virtualization are managed by AWS. The whole division of roles is the shared responsibility model (Lecture 10, Parts 1 and 2)
- An instance type is a template for a combination of CPU, memory, storage, and network. “m7g.large” reads, in order, as the family marker (m is general purpose), generation (7), additional feature (g), and size (large)
- There are six families: general purpose, compute optimized, memory optimized, storage optimized, accelerated computing, and HPC optimized. First learn the uses
- The main items you choose at launch are six: AMI, instance type, key pair, network, security group, and storage
- A key pair is a pair of a private key and a public key. You use the private key to sign in over SSH, and if you lose it you cannot get it back
Next, Lecture 4, Part 3 covers ELB and Auto Scaling.
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)):
- Lecture 4, Part 1: Servers and virtual machines (goals of this lecture, about this course, review of the previous lecture, compute and servers, virtual machines, the compute landscape)
- Lecture 4, Part 2: Amazon EC2 (what EC2 is, use cases, what the customer manages, instance types, families and how to choose, what you choose at launch) (this article)
- Lecture 4, Part 3: ELB and Auto Scaling (limits of a single server, vertical and horizontal scaling, why load balancers, ELB and its types, Auto Scaling, using them together)
- Lecture 4, Part 4: Serverless (what serverless is, AWS Lambda and its characteristics, use cases, Amazon API Gateway, EC2 vs. Lambda)
- Lecture 4, Part 5: Containers and other options (what containers are, three roles, ECR, ECS and EKS, Fargate, Elastic Beanstalk, Lightsail, Batch)
- Lecture 4, Part 6: Lecture 4 summary (how to tell things apart, key points, references, preview of the next lecture)
This series is the English edition of 【AWS クラウドプラクティショナー試験対策講座】, originally written in Japanese.


コメント