EBS Volume Types

Difficulty: Intermediate

Question

What are the main Amazon EBS volume types, and how do you choose the right one for a workload?

Answer

Amazon EBS has two SSD families and two HDD families. General Purpose SSD (gp3, gp2) is the default for boot volumes and most applications; Provisioned IOPS SSD (io2 Block Express, io1) is for latency-sensitive databases that need guaranteed high IOPS; Throughput Optimized HDD (st1) suits big sequential reads like log processing; and Cold HDD (sc1) is the cheapest option for rarely accessed data. Choose based on whether the workload is limited by IOPS (small random I/O) or throughput (large sequential I/O), and how much you are willing to pay.

The volume types side by side

TypeFamilyBest forPerformance highlights
gp3SSDBoot volumes, web apps, dev/test, most databasesBaseline 3,000 IOPS and 125 MiB/s at any size; IOPS and throughput provisioned independently
gp2SSD (previous default)Legacy workloads3 IOPS per GiB, burst to 3,000 for small volumes, max 16,000 IOPS
io2 Block ExpressSSDLarge, critical OLTP databases (Oracle, SQL Server, SAP HANA)Up to 256,000 IOPS, 4,000 MiB/s, sub-millisecond latency, 99.999% durability
io1SSD (older)Older provisioned IOPS workloadsUp to 64,000 IOPS
st1HDDBig data, Kafka, log processing, data warehousesUp to 500 MiB/s, throughput-focused, cannot be a boot volume
sc1HDDInfrequently accessed, cold dataUp to 250 MiB/s, lowest cost per GiB, cannot be a boot volume

gp3's maximums were raised in 2025 (to 64 TiB, 80,000 IOPS, and 2,000 MiB/s per volume), which means many workloads that used to need io1 or io2 now fit on gp3.

IOPS vs throughput

  • IOPS is the number of read/write operations per second. Databases doing many small random reads (an orders table lookup per request) are IOPS-bound.
  • Throughput is MiB per second. Streaming large files or scanning logs sequentially is throughput-bound.
  • They are linked by I/O size: 3,000 IOPS at 16 KiB per operation is about 47 MiB/s.

SSD volumes are optimised for IOPS; HDD volumes are optimised for throughput and perform badly on random I/O.

Why gp3 is the default choice

  • Cheaper per GiB than gp2, and its 3,000 IOPS baseline does not depend on volume size. On gp2 you often over-provisioned storage just to get IOPS.
  • Migrating gp2 to gp3 is an online operation with modify-volume, no downtime, and usually lowers cost.

Picking a type in practice

  • Default: gp3.
  • Database with strict latency SLOs or more IOPS than gp3 offers: io2 Block Express. It also supports Multi-Attach to several Nitro instances in the same AZ for clustered applications.
  • Large sequential workloads where cost matters: st1.
  • Archive-like data still needed on a block device: sc1, though S3 is often better.

Gotchas

  • EBS volumes live in one Availability Zone; snapshots (stored in S3-backed storage) are how you move or back them up.
  • The EC2 instance type has its own EBS bandwidth limit. A huge io2 volume on a small instance cannot reach its rated performance.
  • Volumes restored from snapshots load blocks lazily; first reads are slow unless you use Fast Snapshot Restore or pre-warm.

Code examples

Create a gp3 volume and migrate an existing gp2 volume

# New gp3 data volume with extra IOPS and throughput
aws ec2 create-volume --availability-zone ap-south-1a \
  --volume-type gp3 --size 200 \
  --iops 6000 --throughput 250 --encrypted

# Convert gp2 to gp3 in place, no detach or downtime
aws ec2 modify-volume --volume-id vol-0abc123 --volume-type gp3

# Track the modification progress
aws ec2 describe-volumes-modifications --volume-ids vol-0abc123

gp3 lets you set IOPS and throughput independently of size. modify-volume changes type online; performance shifts while the modification is optimizing.

Key points

  • gp3 is the default: 3,000 IOPS and 125 MiB/s baseline regardless of size, cheaper than gp2
  • io2 Block Express is for demanding databases: very high IOPS, sub-millisecond latency, 99.999% durability
  • st1 and sc1 are HDD, throughput-oriented, and cannot be boot volumes
  • IOPS-bound workloads need SSD; large sequential workloads can use st1
  • EBS is AZ-scoped, and instance EBS bandwidth can cap volume performance

Common follow-up questions

  • Why would you migrate from gp2 to gp3, and is there downtime?
  • What is the difference between IOPS and throughput?
  • How does an EBS snapshot work, and are snapshots incremental?
  • When would you use instance store instead of EBS?

Interview tips

  • Organise the answer as SSD vs HDD, then IOPS vs throughput; it is easier to follow than reciting a list
  • Recommend gp3 as the default and justify it with cost and decoupled performance
  • Mention the instance-level EBS bandwidth limit; it is a real-world gotcha that impresses interviewers

Concepts covered

Amazon EBS, gp3, io2 Block Express, IOPS vs Throughput, HDD Volumes

More AWS & Cloud Fundamentals questions