EC2 Instance Storage & EFS
Overview

EC2 Instance Storage & EFS

August 3, 2026
5 min read

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 DeleteOnTermination attribute.

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.

TypeNameUse CaseKey Features
General Purposegp3Default choice.
Boot volumes, virtual desktops, dev/test.
IOPS and throughput scale independently.
Baseline 3,000 IOPS and 125 MiB/s.
Cheaper than gp2.
General Purposegp2Legacy choice.IOPS linked to volume size (3 IOPS per GB).
Max 16,000 IOPS.
Uses a “burst balance” on small volumes.
Provisioned IOPSio2 Block ExpressMission critical, sub millisecond latency.Highest durability (99.999%).
Max 256,000 IOPS.
Supports Multi-Attach.
Provisioned IOPSio1Critical 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.

TypeNameUse CaseKey Features
Throughput Optimizedst1Big Data, data warehousing, log processing (Kafka, Splunk).Max throughput 500 MiB/s.
Optimized for sequential I/O.
Cold HDDsc1Infrequent 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.
FeatureWhat it does
Recycle BinRetains 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:
EventData
RebootPersists
StopLost
TerminateLost
Underlying hardware failureLost
  • 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.
    • io1 and io2 Block Express volumes 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:
    1. Data at rest inside the volume.
    2. Data in transit between the instance and the volume.
    3. All snapshots created from the volume.
    4. 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 ClassDescription
EFS StandardFrequent access, Multi-AZ.
EFS Standard-IALower cost for files not accessed daily.
EFS One ZoneSingle 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

FeatureEBSEFSInstance Store
TypeBlock storage (network drive)File storage (NFS)Block storage (physical disk)
PersistenceDurableDurableEphemeral
AccessSingle instance (mostly)1000s of instancesSingle instance only
AvailabilitySingle AZMulti-AZSingle AZ (host bound)
PerformanceLow latencyHigher latency than EBSLowest latency
BackupSnapshotsAWS Backup / EFS BackupNone
OS SupportLinux & WindowsLinux onlyLinux & 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.