[AWS Cloud Practitioner Exam Prep 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

AWS Cloud Practitioner Exam Prep 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 Certification

“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.

UseExample (a company that runs an e-commerce site)Why EC2 fits
Website serversServe the pages of shop.example.comIt is easy to change the number of servers to match traffic
Business applicationsA system that manages orders and inventoryYou can choose the OS and settings yourself
Development and test environmentsA temporary environment for trying a new featureYou can set it up only when needed and then stop it
Compute-heavy processingLarge-scale analysis of sales dataYou 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)
A diagram showing what the customer manages on EC2, using three stacked boxes. The top two boxes, "Applications and data" and "OS," are orange and are grouped under an orange label on the left, "Managed by the customer." To the right of the OS box is a small frame, "Security group (virtual firewall)." A thick horizontal line is drawn under the OS box, and below it a navy box, "Physical servers and virtualization (including facilities)," is grouped under a navy label on the left, "Managed by AWS." A bold line at the bottom reads "The customer manages everything from the OS up."

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
A diagram titled "How to read an instance type name." At the top, in large color-coded letters, "m7g.large." Below it are four rows, each matching the characters on the left with their meaning on the right. "m" is "marker for the family (m is general purpose)," "7" is "generation," "g" is "additional feature," and "large" is "size." The note at the bottom reads: "The example is 'm7g.large.' The first letter m marks the family, and m stands for general purpose. The next number 7 is the generation, the next letter g is an additional feature, and large after the dot is the size. For the exam, first learn what each family is used for."

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.

FamilyWhat it is good atSuited toExample first letter
General purposeA good balance of CPU, memory, and networkMany usesM
Compute optimizedComputing that takes advantage of high-performance CPUsProcessing centered on computationC
Memory optimizedProcessing large data in memory quicklyProcessing that keeps large data in memoryR
Storage optimizedFast disk reads and writes with low latencyProcessing with many reads and writesI
Accelerated computingEfficient processing with specialized componentsImage processing and machine learningP, G
HPC optimizedRunning HPC workloads at large scaleLarge-scale high-performance computingHpc

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

A diagram titled "Quick reference: instance type families." Six families are stacked vertically, with a navy band on the left for "Example first letter" and, on the right, "What it is good at" and "Suited to." "General purpose" has the letter M; it is good at "a good balance of CPU, memory, and network" and suited to "many uses." "Compute optimized" has C; "computing that takes advantage of high-performance CPUs"; "processing centered on computation." "Memory optimized" has R; "processing large data in memory quickly"; "processing that keeps large data in memory." "Storage optimized" has I; "fast disk reads and writes with low latency"; "processing with many reads and writes." "Accelerated computing" has P and G; "efficient processing with specialized components"; "image processing and machine learning." "HPC optimized" has Hpc; "running HPC workloads at large scale"; "large-scale high-performance computing." The note at the bottom reads: "HPC stands for high-performance computing (running large-scale computations quickly). The list may change (as of October 26, 2026)."

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 chooseReason
Website serversGeneral purposeIt works for many uses
Large-scale computation on sales dataCompute optimizedIt takes advantage of high-performance CPUs
Processing that keeps large data in memoryMemory optimizedIt processes data in memory quickly
Reading and writing large volumes of logsStorage optimizedReads and writes are fast
Product image recognition and machine learningAccelerated computingIt 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 chooseIn one lineRelated lecture
①Amazon Machine Image (AMI)A template of the OS and software—
②Instance typeA type of CPU and memory—
③Key pairA pair of keys used to sign in—
④NetworkWhere to place itLecture 6 (networking)
⑤Security groupA virtual firewallLecture 6 (networking)
⑥StorageWhere to put dataLecture 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.

A diagram showing the six items you choose when you launch EC2, in two rows of three boxes. Row 1: ① "Amazon Machine Image (AMI)" is "OS and software template," ② "Instance type" is "A CPU and memory type," and ③ "Key pair" is "A pair of keys to sign in." Row 2: ④ "Network" is "where to place it," ⑤ "Security group" is "a virtual firewall," and ⑥ "Storage" is "where to put data." Under the boxes for ④ and ⑤ is a line with the note "Lecture 6," and under the box for ⑥ is a line with the note "Lecture 5." One arrow extends from the frame that groups the six boxes down to an orange box, "Instance." The bold line at the bottom reads "Six things to choose."

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

  1. 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
  2. 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
  3. 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.

コメント

Copied title and URL