EBS, EFS, FSx and Instance Store: Choosing Block, File and High-Performance Storage on AWS

AWS Solutions Architect 45 min min read Updated: Nov 17, 2026 Intermediate
EBS, EFS, FSx and Instance Store: Choosing Block, File and High-Performance Storage on AWS
Intermediate Topic 2 of 3

Block, File and Object Storage

TypeHow you use itAWS service
BlockA raw disk attached to one server. You format it with a file systemEBS, instance store
FileA shared folder many servers mount over the network (NFS/SMB)EFS, FSx
ObjectFiles accessed by API over HTTPSS3

Amazon EBS: Elastic Block Store

  • Network-attached disks for EC2. Persist independently from the instance
  • A volume lives in one AZ, attaches to an instance in the same AZ
  • Usually one volume to one instance (Multi-Attach on io1/io2 allows several Nitro instances in the same AZ)
  • An instance can have many volumes. Root volume is deleted on termination by default (DeleteOnTermination)
  • Elastic Volumes: change size, type, IOPS while attached, no downtime

EBS Volume Types

TypeMediumPerformanceUse for
gp3SSD general purpose3,000 IOPS and 125 MB/s baseline, up to 16,000 IOPS and 1,000 MB/s, set independently of sizeDefault choice: boot volumes, apps, dev/test, most databases
gp2SSD general purpose (older)IOPS tied to size (3 per GB), burstsLegacy. Migrate to gp3 for lower cost
io2 / io2 Block ExpressSSD provisioned IOPSUp to 64,000 (io2) and 256,000 IOPS (Block Express), 99.999 percent durability, sub-millisecond latencyCritical databases (Oracle, SQL Server), I/O-heavy
io1SSD provisioned IOPS (older)Up to 64,000 IOPSLegacy, io2 is better
st1HDD throughput optimizedUp to 500 MB/s, low cost per GB, cannot be a boot volumeBig sequential reads: logs, data warehouses, Kafka
sc1HDD coldUp to 250 MB/s, lowest cost, not bootableInfrequently accessed large data
Exam tip: Need the most IOPS → io2. Cheap big sequential throughput → st1. Cheapest cold → sc1. Default → gp3. Only SSD volumes can be boot volumes.
bash aws ec2 create-volume --availability-zone ap-south-1a --size 100 --volume-type gp3 --iops 6000 --throughput 250 --encrypted --kms-key-id alias/app-data \ --tag-specifications 'ResourceType=volume,Tags=[{Key=Name,Value=data-1}]' aws ec2 attach-volume --volume-id vol-0abc --instance-id i-0abc --device /dev/sdf # on the instance: sudo mkfs -t xfs /dev/nvme1n1 && sudo mkdir /data && sudo mount /dev/nvme1n1 /data aws ec2 modify-volume --volume-id vol-0abc --size 200 --volume-type gp3 --iops 8000 # resize online, then grow the file system sudo xfs_growfs -d /data

Snapshots

  • Incremental backups stored in S3 (managed by AWS). The first is full, later ones store changes
  • Deleting an old snapshot is safe: needed blocks are kept for newer snapshots
  • Restore to a new volume, in any AZ of the Region. Copy snapshots to another Region or account for DR
  • Fast Snapshot Restore (FSR) removes the first-read latency when creating volumes (extra cost)
  • Recycle Bin retains deleted snapshots and AMIs for a period
  • Amazon Data Lifecycle Manager (DLM) or AWS Backup automate snapshots and retention
  • Snapshot Archive tier lowers cost for rarely used snapshots
bash aws ec2 create-snapshot --volume-id vol-0abc --description "pre-upgrade" --tag-specifications 'ResourceType=snapshot,Tags=[{Key=Name,Value=pre-upgrade}]' aws ec2 copy-snapshot --source-region ap-south-1 --source-snapshot-id snap-0abc --region eu-west-1 --encrypted --kms-key-id alias/dr-key aws ec2 create-volume --snapshot-id snap-0abc --availability-zone ap-south-1b --volume-type gp3

Instance Store

  • Disk physically on the host. Very high IOPS and low latency (NVMe)
  • Ephemeral: data is lost on stop, terminate or host failure (survives reboot)
  • Use for caches, buffers, scratch space, or data replicated elsewhere (for example Cassandra, Kafka with replicas)
  • Cannot be snapshotted. Included in the instance price

Amazon EFS: Elastic File System

EFS is a managed NFS (v4) file system that grows and shrinks automatically. It is Regional: many instances in different AZs can mount it at the same time. Linux only (not Windows).

FeatureDetails
Throughput modesElastic (default, scales automatically), Provisioned, Bursting
Performance modesGeneral Purpose (default, low latency), Max I/O (older, higher scale)
Storage classesStandard (multi-AZ), Standard-IA, Archive, and One Zone variants (single AZ, cheaper). Lifecycle management moves files that were not read for N days
SecuritySecurity groups on mount targets, IAM authorization, POSIX permissions, encryption at rest (KMS) and in transit (TLS)
BackupsAWS Backup, replication to another Region
bash aws efs create-file-system --encrypted --throughput-mode elastic --tags Key=Name,Value=shared-content aws efs create-mount-target --file-system-id fs-0abc --subnet-id subnet-priv-a --security-groups sg-efs # one per AZ sudo dnf install -y amazon-efs-utils sudo mkdir /mnt/shared && sudo mount -t efs -o tls fs-0abc:/ /mnt/shared

Amazon FSx

ServiceWhat it isUse for
FSx for Windows File ServerManaged SMB file shares with Active Directory integration, NTFS, DFSWindows apps, home directories, SQL Server
FSx for LustreHigh-performance parallel file system, can link to S3HPC, machine learning training, media processing
FSx for NetApp ONTAPNetApp features: NFS, SMB, iSCSI, snapshots, dedupe, multi-protocolMigrating NetApp workloads, mixed Windows/Linux
FSx for OpenZFSZFS file system, NFS, low latency, snapshots and clonesMigrating ZFS workloads, Linux data sharing

Choosing Storage

RequirementChoice
Boot disk or database disk for one EC2 instanceEBS gp3 (io2 for extreme IOPS)
Highest IOPS, sub-millisecond, critical DBEBS io2 Block Express
Large sequential throughput on a budgetEBS st1
Shared Linux file system across AZsEFS
Windows file shares with ADFSx for Windows
HPC / ML scratch with S3 integrationFSx for Lustre
Temporary very fast local dataInstance store
Unlimited objects, web, backups, data lakeS3
Hybrid on-premises file access to cloudStorage Gateway (next lesson) or FSx File Gateway

Common Mistakes

  • Putting data on instance store and expecting it to persist
  • Forgetting a volume is one AZ only: for DR copy snapshots to another AZ or Region
  • Leaving unattached volumes and old snapshots that keep costing money
  • Using gp2 for big volumes when gp3 is cheaper and faster
  • Not growing the file system after resizing the volume

Practice Tasks

  1. Create a gp3 volume, attach, format and mount it, then resize it online
  2. Take a snapshot, delete the volume, restore the snapshot in a different AZ
  3. Mount one EFS file system on two EC2 instances in different AZs and see shared files
  4. Add an EFS lifecycle policy to move files to IA after 30 days
  5. Write down for five workloads which storage service you would use and why

Conclusion

EBS is block storage in one AZ (gp3 default, io2 for top IOPS, st1/sc1 for HDD throughput), snapshots give incremental backups across AZs and Regions, EFS is a shared multi-AZ Linux file system, FSx covers Windows, Lustre, ONTAP and OpenZFS, and instance store is fast but ephemeral.

Quick Summary: block/file/object; EBS types; create/attach/resize CLI; snapshots + FSR + DLM; instance store; EFS modes/classes/mount; FSx four types; decision table; mistakes.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators