1.EBS volume types and snapshots
EBS is network-attached block storage that persists independently of the instance it's attached to. A snapshot is an incremental, point-in-time backup stored in S3 — the first snapshot copies everything, later ones copy only the blocks that changed.
Key features
- gp3: general purpose SSD, the default choice for most workloads
- io2: provisioned IOPS SSD, for latency-sensitive, high-IOPS workloads (databases)
- st1/sc1: throughput-optimized/cold HDD, for large, sequential, infrequent-access workloads
- A snapshot is incremental — only changed blocks are copied after the first one
- Encryption is enabled by default in most accounts for new volumes and snapshots
EBS volume types and what they fit
- First snapshot
- No prior snapshot to build on
- Copies all 100GB of used blocks
- The expensive one
- Second snapshot, next day
- Only 2GB actually changed
- Copies just that 2GB delta
- References the first for the rest
Command
aws ec2 create-snapshot --volume-id vol-0abc123 --description "pre-migration backup"A snapshot is incremental — only changed blocks are copied after the first — and gp3 is the sensible default; reach for io2 only once a workload has measured, sustained IOPS/latency needs gp3 cannot meet.