3.4 EBS, EFS, and FSx — Block, File, and Specialized Storage

Key Takeaways

  • EBS provides block storage for single EC2 instances; choose gp3 (general purpose SSD) for most workloads, io2 Block Express for highest IOPS (256,000).
  • EFS provides shared NFS file storage that can be mounted by thousands of EC2 instances across AZs — scales automatically and is fully managed.
  • FSx for Lustre provides high-performance parallel file system for HPC, ML, and media workloads with S3 integration.
  • FSx for Windows File Server provides fully managed Windows-native file shares with SMB protocol and Active Directory integration.
  • EBS is tied to a single AZ; EBS snapshots are stored in S3 and can be copied cross-Region for DR.
Last updated: March 2026

EBS, EFS, and FSx — Block, File, and Specialized Storage

Quick Answer: EBS = block storage for a single EC2 instance (SSD/HDD volumes). EFS = shared NFS file storage for multiple instances across AZs. FSx for Lustre = high-performance parallel file system for HPC/ML. FSx for Windows = managed Windows file shares (SMB). Choose based on protocol, sharing needs, and performance requirements.

Amazon EBS (Elastic Block Store)

EBS provides persistent block-level storage volumes for EC2 instances. Think of EBS volumes as virtual hard drives.

EBS Volume Types

Volume TypeAPI NameMax IOPSMax ThroughputUse Case
General Purpose SSDgp316,0001,000 MB/sMost workloads (boot volumes, dev/test, small DBs)
General Purpose SSDgp216,000250 MB/sLegacy; gp3 is preferred
Provisioned IOPS SSDio264,0001,000 MB/sCritical databases (SQL Server, Oracle, SAP)
Provisioned IOPS SSDio2 Block Express256,0004,000 MB/sLargest, most I/O-intensive databases
Throughput Optimized HDDst1500500 MB/sBig data, data warehouses, log processing
Cold HDDsc1250250 MB/sInfrequent access, lowest cost HDD

Key EBS Facts

FeatureDetail
AZ-boundEBS volumes exist in one AZ — cannot be attached across AZs
Multi-attachio2/io2 Block Express support multi-attach (up to 16 instances in same AZ)
EncryptionAES-256, using KMS keys; no performance impact
SnapshotsStored in S3 (cross-AZ); can copy cross-Region
Boot volumegp3, gp2, io2 (SSD only — cannot boot from HDD)

gp3 vs. gp2

Featuregp3gp2
Baseline IOPS3,000 (independent of size)3 IOPS/GB (max 16,000 at 5,334 GB)
Baseline throughput125 MB/s (independent of size)Scales with volume size
Cost20% cheaper than gp2Legacy pricing
IOPS provisioningIndependently set up to 16,000Tied to volume size

On the Exam: gp3 is the default recommendation for most workloads. Choose io2 when you need guaranteed IOPS above 16,000 or sub-millisecond latency for critical databases.

Amazon EFS (Elastic File System)

EFS provides fully managed NFS file storage that can be shared across thousands of EC2 instances.

EFS Features

FeatureDetail
ProtocolNFS v4.1
SharingThousands of instances across multiple AZs
ScalingAutomatically scales to petabytes
PerformanceUp to 10+ GB/s throughput
Storage classesStandard, Standard-IA, One Zone, One Zone-IA
OSLinux only (not Windows)
EncryptionAt rest (KMS) and in transit (TLS)

EFS Performance Modes

ModeDescription
General PurposeLow latency; best for most workloads (web, CMS)
Max I/OHigher throughput, higher latency; for big data, media processing

EFS Throughput Modes

ModeDescription
ElasticAutomatically scales throughput; recommended for most workloads
ProvisionedFixed throughput regardless of storage size
BurstingThroughput scales with storage size (legacy)

Amazon FSx

FSx provides fully managed third-party file systems.

FSx for Windows File Server

FeatureDetail
ProtocolSMB (Windows native)
Active DirectoryFull integration with AWS or self-managed AD
FeaturesDFS namespaces, shadow copies, quotas, file-level restore
Multi-AZSupports Multi-AZ for high availability
Use caseWindows applications, SharePoint, SQL Server, user home directories

FSx for Lustre

FeatureDetail
PerformanceHundreds of GB/s throughput, millions of IOPS
S3 integrationSeamlessly read from and write to S3
DeploymentScratch (temporary, highest performance) or Persistent (replicated, durable)
Use caseHPC, ML training, video processing, financial modeling

FSx for NetApp ONTAP

FeatureDetail
ProtocolsNFS, SMB, iSCSI
FeaturesData deduplication, compression, snapshots, cloning
Use caseMulti-protocol access, migrating NetApp workloads

FSx for OpenZFS

FeatureDetail
ProtocolNFS
PerformanceUp to 1 million IOPS, sub-millisecond latency
FeaturesSnapshots, compression, copy-on-write
Use caseHigh-performance Linux workloads, migrating ZFS environments

Storage Comparison

FeatureEBSEFSFSx for Lustre
TypeBlockFile (NFS)File (POSIX)
SharingSingle instance (io2 multi-attach up to 16)Thousands of instancesThousands of instances
AZ scopeSingle AZMulti-AZSingle AZ or Multi-AZ
OSLinux + WindowsLinux onlyLinux only
PerformanceUp to 256K IOPSUp to 10+ GB/sHundreds of GB/s
Best forDatabases, boot volumesShared Linux storageHPC, ML, media
Test Your Knowledge

A Linux-based application requires shared file storage accessible from multiple EC2 instances across different Availability Zones. Which storage service should be used?

A
B
C
D
Test Your Knowledge

A critical Oracle database requires consistent, sub-millisecond latency with 100,000 IOPS. Which EBS volume type should be used?

A
B
C
D
Test Your Knowledge

A company needs a high-performance file system for their machine learning training jobs that can also seamlessly read data from S3. Which service should they use?

A
B
C
D
Test Your Knowledge

A Windows-based application requires SMB file shares with Active Directory integration. Which AWS storage service should be used?

A
B
C
D
Test Your Knowledge

An EBS gp2 volume is experiencing burstable IOPS limitations. The application needs a consistent baseline of 10,000 IOPS. What is the MOST cost-effective solution?

A
B
C
D