← Back to Home

Amazon EC2 Instance Storage

AWS CLF-C02 — Domain 3: Cloud Technology & Services

Amazon EBS (Elastic Block Store)

EBS is a network drive (not a physical drive) that you can attach to your EC2 instances while they run.

Key Point:

EBS volumes are locked to an AZ. To move a volume to another AZ, you must first create a snapshot, then create a new volume from the snapshot in the target AZ.

EBS Volume Types

TypeNameMax IOPSMax ThroughputSizeBoot?Best For
gp3General Purpose SSD16,0001,000 MB/s1 GiB – 16 TiBYesMost workloads, system boot, virtual desktops, dev/test
gp2General Purpose SSD16,000250 MB/s1 GiB – 16 TiBYesSame as gp3 (older generation, IOPS linked to size)
io1Provisioned IOPS SSD64,0001,000 MB/s4 GiB – 16 TiBYesCritical business apps needing sustained IOPS, databases
io2Provisioned IOPS SSD256,0004,000 MB/s4 GiB – 64 TiBYesHighest performance SSD, sub-ms latency, mission-critical
st1Throughput Optimized HDD500500 MB/s125 GiB – 16 TiBNoBig data, data warehouses, log processing
sc1Cold HDD250250 MB/s125 GiB – 16 TiBNoInfrequently accessed, lowest cost
Exam Tip:

Only SSD volumes (gp2, gp3, io1, io2) can be used as boot volumes. HDD volumes (st1, sc1) cannot be boot volumes. If a question mentions "highest IOPS" or "database workload needing sustained IOPS" → io1/io2 (Provisioned IOPS).

EBS Snapshots

Snapshot Features

FeatureDescription
EBS Snapshot ArchiveMove snapshot to an "archive tier" that is 75% cheaper. Takes 24-72 hours to restore.
Recycle BinProtect against accidental deletion. Set retention rules (1 day to 1 year). Deleted snapshots go to recycle bin.
Fast Snapshot Restore (FSR)Force full initialization of snapshot to have no latency on first use. Expensive.
Exam Tip:

"How to move an EBS volume to another AZ?" → Create a snapshot, then restore it in the new AZ. "How to move to another Region?" → Copy the snapshot to the target Region, then create a volume.

EBS Encryption

How to Encrypt an Unencrypted EBS Volume

Amazon Machine Image (AMI)

AMI Process

Exam Tip:

AMIs are Region-specific. To use an AMI in another Region, you must copy it to that Region first. AMIs speed up deployment because software is pre-installed.

EC2 Instance Store

Key Point:

Instance Store = ephemeral (temporary) + highest performance. If you see "highest disk I/O performance" in an exam question, think Instance Store. If you need data to persist, use EBS.

Amazon EFS (Elastic File System)

EFS Storage Classes

Storage ClassDescriptionCost
EFS StandardFrequently accessed filesHigher per-GB cost
EFS Infrequent Access (EFS-IA)Lower cost for infrequently accessed files. Files moved automatically via Lifecycle Policies.Up to 92% lower cost
Exam Tip:

"Shared file storage across multiple AZs for Linux?" → EFS. "Shared file storage for Windows?" → FSx for Windows File Server. EFS does NOT work with Windows.

Storage Comparison

FeatureEBSEFSInstance Store
TypeNetwork block storageNetwork file system (NFS)Physical disk on host
AZ ScopeSingle AZMulti-AZSingle instance
Attach toOne instance (io1/io2: multi-attach)Many instancesOne instance
PersistencePersistentPersistentEphemeral (lost on stop/terminate)
OS SupportLinux & WindowsLinux onlyLinux & Windows
PricingProvisioned capacityPay per useIncluded with instance
PerformanceGoodGoodHighest I/O

Amazon FSx

Fully managed third-party high-performance file systems on AWS.

FSx for Windows File Server

FSx for Lustre

Exam Tip:

"Windows shared file system with Active Directory?" → FSx for Windows File Server. "High-performance computing on Linux?" → FSx for Lustre. "Linux shared file system, multi-AZ?" → EFS.