Instance types, families, and sizes (for example, memory optimized, compute optimized, virtualization)

Task Statement 4.2: Design cost-optimized compute solutions.

📘AWS Certified Solutions Architect – (SAA-C03)


1. What is an Instance Type?

An instance type in Amazon EC2 defines:

  • CPU (processing power)
  • Memory (RAM)
  • Storage type
  • Networking capacity

👉 In simple terms:
It tells AWS what kind of virtual machine (VM) you want.


2. Instance Naming Format (VERY IMPORTANT FOR EXAM)

Example:

m5.large
c6g.xlarge
r5.2xlarge

Break it into parts:

PartMeaning
m / c / rInstance family
5 / 6Generation (newer = better performance & efficiency)
large / xlargeSize (how powerful the instance is)

3. Instance Families (Core Concept)

Each family is designed for a specific type of workload.


3.1 General Purpose (Balanced)

Examples:

  • M family (m5, m6g)

Features:

  • Balanced CPU and memory
  • Good for many common workloads

IT Use Cases:

  • Web servers
  • Application servers
  • Small databases

Key Exam Point:

👉 Default choice if workload is not specialized


3.2 Compute Optimized

Examples:

  • C family (c5, c6g)

Features:

  • High CPU performance
  • Lower memory compared to CPU

IT Use Cases:

  • Batch processing
  • High-performance web servers
  • Scientific computations

Key Exam Point:

👉 Choose when CPU is the bottleneck


3.3 Memory Optimized

Examples:

  • R family (r5, r6g)
  • X family (x1, x2)

Features:

  • Large RAM
  • Good for memory-heavy workloads

IT Use Cases:

  • In-memory databases
  • Real-time analytics
  • Caching systems

Key Exam Point:

👉 Choose when RAM usage is high


3.4 Storage Optimized

Examples:

  • I family (i3, i4)
  • D family (d2)
  • H family (h1)

Features:

  • High disk throughput
  • Low latency storage

IT Use Cases:

  • NoSQL databases
  • Data warehousing
  • Log processing systems

Key Exam Point:

👉 Choose when disk I/O performance is critical


3.5 Accelerated Computing

Examples:

  • P family (GPU)
  • G family (GPU)
  • F family (FPGA)
  • Inf family (ML inference)

Features:

  • Hardware accelerators (GPU/FPGA)

IT Use Cases:

  • Machine learning
  • Video rendering
  • Scientific simulations

Key Exam Point:

👉 Used for specialized compute tasks


4. Instance Sizes

Each instance family has multiple sizes.

Examples:

t3.micro
t3.small
t3.medium
t3.large
t3.xlarge

What changes with size:

  • CPU increases
  • Memory increases
  • Network performance increases

Size Naming Pattern

SizeMeaning
nano / microVery small
small / mediumModerate
largeStandard
xlargeHigh
2xlarge, 4xlargeVery high

Key Exam Point:

👉 Scaling instance size = Vertical Scaling (Scale Up)


5. Instance Generations

Example:

  • m4 → m5 → m6

Newer generation means:

  • Better performance
  • Lower cost per performance
  • More efficient

Key Exam Tip:

👉 Always prefer latest generation unless there is a compatibility issue


6. Virtualization Types (IMPORTANT FOR EXAM)

AWS uses two types:


6.1 HVM (Hardware Virtual Machine)

Features:

  • Full virtualization
  • Better performance
  • Supports modern features

Key Point:

👉 Most modern instances use HVM


6.2 PV (Paravirtualization)

Features:

  • Older virtualization method
  • Limited support

Key Point:

👉 Rarely used in modern AWS environments


7. Special Instance Types


7.1 Burstable Instances (T Family)

Examples:

  • t2, t3, t4g

Features:

  • Low-cost
  • Baseline CPU performance
  • Can burst when needed using CPU credits

IT Use Cases:

  • Low traffic web apps
  • Development environments

Key Exam Point:

👉 Good for variable workloads


7.2 Dedicated Instances / Hosts

Features:

  • Physical server isolation
  • Compliance requirements

Key Exam Point:

👉 Used when regulatory or licensing requirements exist


8. Instance Storage Types


8.1 EBS (Elastic Block Store)

Features:

  • Persistent storage
  • Can be detached and reused

Key Exam Point:

👉 Data survives instance stop/start


8.2 Instance Store

Features:

  • Temporary storage
  • High speed

Key Exam Point:

👉 Data is lost if instance stops or terminates


9. Choosing the Right Instance (Exam Strategy)

You must identify:

RequirementChoose
Balanced workloadGeneral purpose
High CPU usageCompute optimized
High RAM usageMemory optimized
High disk I/OStorage optimized
GPU neededAccelerated computing
Low, unpredictable trafficBurstable (T family)

10. Cost Optimization Tips (VERY IMPORTANT)


10.1 Right-Sizing

  • Do not over-provision CPU or RAM
  • Monitor usage and adjust instance size

10.2 Use Latest Generation

  • Better price-performance

10.3 Use Burstable Instances

  • For workloads with variable usage

10.4 Match Instance Type to Workload

  • Avoid using expensive instance types unnecessarily

11. Common Exam Scenarios


Scenario 1:

Application uses high CPU constantly
👉 Choose: Compute Optimized


Scenario 2:

Database running out of memory
👉 Choose: Memory Optimized


Scenario 3:

Low traffic application with occasional spikes
👉 Choose: T family (burstable)


Scenario 4:

High disk read/write performance needed
👉 Choose: Storage Optimized


12. Key Takeaways (Must Remember)

  • Instance type = combination of CPU, memory, storage, networking
  • Family defines purpose
  • Size defines power
  • Generation defines efficiency
  • T family = cost-effective burst workloads
  • Choose based on bottleneck (CPU, RAM, Disk, GPU)
Buy Me a Coffee