EBS (Elastic Block Store) Overview
A durable, block level storage device you attach to a single EC2 instance. Think of it as a virtual hard drive that happens to be a network drive.
- AZ Locked: An EBS volume is bound to a specific Availability Zone. To move a volume to another AZ, take a snapshot and restore it there.
- Persistence:
- The Root Volume (where the OS lives) defaults to Delete on Termination.
- Additional data volumes default to Keep.
- Both are controlled by the
DeleteOnTerminationattribute.
EBS Volume Types
The exam expects you to know SSD (performance / IOPS) vs HDD (throughput) cold.
Solid State Drives (SSD)
Optimized for transactional workloads measured in IOPS.
| Type | Name | Use Case | Key Features |
|---|---|---|---|
| General Purpose | gp3 | Default choice. Boot volumes, virtual desktops, dev/test. | IOPS and throughput scale independently. Baseline 3,000 IOPS and 125 MiB/s. Cheaper than gp2. |
| General Purpose | gp2 | Legacy choice. | IOPS linked to volume size (3 IOPS per GB). Max 16,000 IOPS. Uses a “burst balance” on small volumes. |
| Provisioned IOPS | io2 Block Express | Mission critical, sub millisecond latency. | Highest durability (99.999%). Max 256,000 IOPS. Supports Multi-Attach. |
| Provisioned IOPS | io1 | Critical databases needing sustained IOPS. | Max 64,000 IOPS. Supports Multi-Attach. Legacy compared to io2. |
Hard Disk Drives (HDD)
Optimized for large streaming workloads measured in throughput. Cannot be used as a boot volume.
| Type | Name | Use Case | Key Features |
|---|---|---|---|
| Throughput Optimized | st1 | Big Data, data warehousing, log processing (Kafka, Splunk). | Max throughput 500 MiB/s. Optimized for sequential I/O. |
| Cold HDD | sc1 | Infrequent access, archive data. | Lowest cost EBS volume. Max throughput 250 MiB/s. |
Important (Exam Tip)
If the question mentions a boot volume, the answer is never st1 or sc1.
If it mentions “sub millisecond latency” or “mission critical database”, think io2 Block Express.
EBS Snapshots
- Mechanism: Incremental backups — only the blocks that changed since the last snapshot are saved.
- Storage: Stored in Amazon S3, but you cannot browse them in your own buckets.
- Scope: Regional. To use a snapshot in another region you must copy it.
| Feature | What it does |
|---|---|
| Recycle Bin | Retains deleted snapshots for a set period (1 day to 1 year) so you can recover from accidental deletion. |
| Fast Snapshot Restore (FSR) | Removes the latency of “initializing” a volume restored from a snapshot. Expensive. |
| Data Lifecycle Manager (DLM) | Automates snapshot creation, retention, and deletion based on schedules and tags. |
AMI (Amazon Machine Image)
- Definition: A blueprint used to create EC2 instances (OS, app server, and applications).
- Scope: Region bound. To launch an AMI in another region, copy the AMI there first.
- Sources:
- Public AMIs: AWS provided (Amazon Linux 2, Ubuntu, etc.).
- Your own AMIs: Built from your customized instances.
- AWS Marketplace: Paid/subscription AMIs from vendors (hardened images, firewall appliances).
- Lifecycle: Create (from instance or snapshot) → Register → Copy (cross region) → Deregister.
EC2 Instance Store (“Ephemeral Storage”)
Physical storage attached directly to the host machine running your instance.
- Performance: Extremely high I/O (millions of IOPS) and the lowest latency of any EC2 storage.
- Volatility — this is the exam critical part:
| Event | Data |
|---|---|
| Reboot | Persists |
| Stop | Lost |
| Terminate | Lost |
| Underlying hardware failure | Lost |
- Use Cases: Cache, buffers, scratch data, HPC, temporary content that is replicated somewhere else.
- Snapshots: You cannot snapshot an Instance Store volume.
EBS Multi-Attach
Allows a single EBS volume to be attached to multiple EC2 instances at the same time.
- Constraints:
- Same AZ only.
io1andio2 Block Expressvolumes only.- Nitro based instances only.
- Requires a cluster aware file system (GFS2, OCFS2). Standard filesystems like ext4, XFS, or NTFS will corrupt data.
- Use Case: Clustered Linux applications (e.g., Teradata), higher availability during updates.
EBS Encryption
- Mechanism: AWS KMS with AES-256.
- Scope: Once encryption is on, it covers:
- Data at rest inside the volume.
- Data in transit between the instance and the volume.
- All snapshots created from the volume.
- All volumes created from those snapshots.
- Performance: Minimal latency impact.
- Encryption by default: Can be enabled at the account level, per region.
Amazon EFS (Elastic File System)
Managed NFS that can be mounted on many EC2 instances simultaneously.
- Protocol: NFSv4. Linux only (POSIX compliant).
- Scope: Multi-AZ — data is stored across multiple AZs in a region.
- Scaling: Storage capacity and throughput scale automatically, to petabyte scale.
| Storage Class | Description |
|---|---|
| EFS Standard | Frequent access, Multi-AZ. |
| EFS Standard-IA | Lower cost for files not accessed daily. |
| EFS One Zone | Single AZ — lower cost, lower availability. |
Performance Modes:
- General Purpose: Web serving, CMS. The default.
- Max I/O: Big Data, parallel processing. Higher throughput but higher latency.
Comparison: EBS vs EFS vs Instance Store
| Feature | EBS | EFS | Instance Store |
|---|---|---|---|
| Type | Block storage (network drive) | File storage (NFS) | Block storage (physical disk) |
| Persistence | Durable | Durable | Ephemeral |
| Access | Single instance (mostly) | 1000s of instances | Single instance only |
| Availability | Single AZ | Multi-AZ | Single AZ (host bound) |
| Performance | Low latency | Higher latency than EBS | Lowest latency |
| Backup | Snapshots | AWS Backup / EFS Backup | None |
| OS Support | Linux & Windows | Linux only | Linux & Windows |
Important (Exam Tip)
“Shared across many instances” → EFS.
“Attached to one instance, needs to survive a stop” → EBS.
“Scratch/cache, maximum IOPS, data is disposable” → Instance Store.