Service · Storage · Builds on CLF-C02
Amazon Elastic Block Store (Amazon EBS)
Pick the volume type by IOPS, throughput and cost. Resize, share and restore volumes in place.
You know from Cloud Practitioner
- Block volumes for EC2, in one AZ, kept when the instance stops.
- Snapshots are incremental backups kept in Amazon S3.
- SSD for small random I/O, HDD for large sequential I/O.
gp3
- Speed
- 3,000 to 80,000 IOPS, 2,000 MiB/s
- Use
- Default for most workloads
- Boot
- yes
gp2
- Speed
- 3 IOPS per GiB, up to 16,000
- Use
- Older default. Move to gp3
- Boot
- yes
io1 and io2
- Speed
- io1 64,000 IOPS. io2 up to 256,000
- Use
- Critical databases, Multi-Attach
- Boot
- yes
st1
- Speed
- Up to 500 MiB/s
- Use
- Logs, big data, warehouses
- Boot
- no
sc1
- Speed
- Up to 250 MiB/s
- Use
- Cold data, lowest cost
- Boot
- no
| Type | Speed | Use | Boot |
|---|---|---|---|
| gp3 | 3,000 to 80,000 IOPS, 2,000 MiB/s | Default for most workloads | yes |
| gp2 | 3 IOPS per GiB, up to 16,000 | Older default. Move to gp3 | yes |
| io1 and io2 | io1 64,000 IOPS. io2 up to 256,000 | Critical databases, Multi-Attach | yes |
| st1 | Up to 500 MiB/s | Logs, big data, warehouses | no |
| sc1 | Up to 250 MiB/s | Cold data, lowest cost | no |
1 / 3
gp3
- Speed
- 3,000 to 80,000 IOPS, 2,000 MiB/s
- Use
- Default for most workloads
- Boot
- yes
gp2
- Speed
- 3 IOPS per GiB, up to 16,000
- Use
- Older default. Move to gp3
- Boot
- yes
| Type | Speed | Use | Boot |
|---|---|---|---|
| gp3 | 3,000 to 80,000 IOPS, 2,000 MiB/s | Default for most workloads | yes |
| gp2 | 3 IOPS per GiB, up to 16,000 | Older default. Move to gp3 | yes |
2 / 3
io1 and io2
- Speed
- io1 64,000 IOPS. io2 up to 256,000
- Use
- Critical databases, Multi-Attach
- Boot
- yes
st1
- Speed
- Up to 500 MiB/s
- Use
- Logs, big data, warehouses
- Boot
- no
| Type | Speed | Use | Boot |
|---|---|---|---|
| io1 and io2 | io1 64,000 IOPS. io2 up to 256,000 | Critical databases, Multi-Attach | yes |
| st1 | Up to 500 MiB/s | Logs, big data, warehouses | no |
3 / 3
sc1
- Speed
- Up to 250 MiB/s
- Use
- Cold data, lowest cost
- Boot
- no
| Type | Speed | Use | Boot |
|---|---|---|---|
| sc1 | Up to 250 MiB/s | Cold data, lowest cost | no |
What it is
gp3 is the default for most work. It includes 3,000 IOPS and 125 MiB/s, and you raise IOPS and throughput on their own, up to 80,000 IOPS and 2,000 MiB/s. gp2 ties IOPS to size (3 IOPS per GiB), so people grew volumes just to get speed. Moving from gp2 to gp3 is usually cheaper.
Provisioned IOPS volumes (io1, io2, io2 Block Express) are for databases that need sustained IOPS or sub-millisecond latency. io2 is designed for 99.999% durability. HDD volumes are for throughput: st1 for big sequential streams such as logs, sc1 as the cheapest for cold data. Neither can be a boot volume.
What it is
Multi-Attach lets one io1 or io2 volume attach to up to 16 Nitro instances in the same AZ, for clustered applications. Elastic Volumes let you grow a volume, change its type or tune its IOPS while it is in use. A fast volume also needs an instance that can carry the speed, so use EBS-optimized instances.
Delete on termination decides what happens to a volume when its instance ends: the root volume is deleted by default, extra volumes are kept by default, and you can change both. Recycle Bin keeps deleted snapshots, AMIs and volumes for a retention period you set, so you can restore them.
Remember
- gp3: 3,000 IOPS and 125 MiB/s included. Up to 80,000 IOPS and 2,000 MiB/s.
- io2 Block Express: up to 256,000 IOPS, 4,000 MiB/s and 64 TiB.
- st1 and sc1 are HDD: throughput, not IOPS. Never boot volumes.
- Multi-Attach: io1 and io2 only, one AZ, up to 16 Nitro instances.
- Snapshots are incremental. Fast snapshot restore removes the slow first read of a restored volume.
Remember
- Encrypt with AWS KMS keys. Snapshots of an encrypted volume stay encrypted.
On the exam
- “More than 80,000 IOPS or sub-millisecond latency” points to io2 Block Express.
- “Cheapest volume for rarely read data” points to sc1.
- “Large sequential reads such as log processing, at low cost” points to st1.
- “Two instances write to the same volume” points to Multi-Attach on io2.
- “Change size or type without downtime” points to Elastic Volumes.
Do not mix it up with
- Instance storeVery fast local disks that are lost when the instance stops. Use them with replication.
Amazon Elastic File System (Amazon EFS)Choose throughput mode, storage class and access points, and know when EBS or FSx fits better.
Amazon Simple Storage Service (Amazon S3)S3 features for scale: consistency, object size, events, replication, access points and low latency.