Skip to Content
Asterrr's Handbook
2 · New solutions

EBS, EFS, FSx and Storage Gateway

Choosing between EBS volume types, EFS, the FSx family, instance store and Storage Gateway, with the limits the exam asks about.

Exam tasks: 2.5 (performance), 2.2 (backup and DR), 4.2 (hybrid storage), 3.3

The decision: is the data block or file, one instance or many, Linux or Windows, and does on-premises need to reach it? Throughput and IOPS requirements then pick the volume or file system type.

Data centerAWS RegionAvailability ZoneblockNFSNFS, SMB, iSCSIHTTPSOn-premisesclientsStorage GatewayEC2 instanceEBS volumeEFS file systemS3
Block storage attaches to one instance in one AZ. File systems are shared across instances and AZs. Storage Gateway brings S3 and FSx to on-premises clients.
1 AZ
An EBS volume lives in one Availability Zone and attaches to instances in it
3,000 IOPS
gp3 baseline, adjustable up to 16,000 IOPS independent of size
256,000
Maximum IOPS of an io2 Block Express volume
NFSv4
EFS protocol. Linux only, regional, mount target per AZ
16
Nitro instances sharing an io1 or io2 volume with Multi-Attach, in one AZ

EBS volume types

TypeMediumUse it forKey numbers
gp3SSDThe default for most workloads3,000 IOPS and 125 MB/s baseline, up to 16,000 IOPS and 1,000 MB/s, set independently of size
gp2SSDOlder default3 IOPS per GB with burst credits. gp3 is cheaper and more predictable
io2 Block ExpressSSDDatabases needing sustained high IOPS and the best durabilityUp to 256,000 IOPS, 64 TiB, Multi-Attach
io1SSDProvisioned IOPSUp to 64,000 IOPS on Nitro
st1HDDBig sequential throughput: logs, data warehousesCannot be a boot volume
sc1HDDCold, infrequent data, lowest costCannot be a boot volume
  • Instance store is physically attached, very fast, and ephemeral. Data is lost when the instance stops, fails or is terminated. Use it for caches, buffers and scratch data.
  • You can change type, size and IOPS on a live volume with Elastic Volumes, at most once every six hours.
  • Multi-Attach lets several Nitro instances in the same AZ use one io1 or io2 volume, and the application must handle concurrent writes, for example with a cluster-aware file system.

Exam signal

"Sustained IOPS above 16,000 for a critical database" means io2. "Large sequential throughput at low cost" means st1. "Cheapest cold block storage" means sc1. "General purpose, tune IOPS independently of size" means gp3.

EBS snapshots and encryption

  • Snapshots are incremental, stored in S3 and regional. Copy them to another Region or share them with other accounts.
  • Fast Snapshot Restore pre-warms volumes created from a snapshot, which removes first-read latency on restore.
  • Snapshot Archive is a lower-cost tier with a restore time of up to a few days. Recycle Bin keeps deleted snapshots and AMIs for a retention period you set.
  • Encryption uses KMS. Snapshots of encrypted volumes are encrypted, and sharing one with another account needs a customer managed key that the other account can use. Turn on EBS encryption by default per Region.
  • Data Lifecycle Manager and AWS Backup automate snapshots. See backup automation.

Amazon EFS

TopicWhat to know
AccessNFSv4 from many Linux instances across AZs, and from on-premises over Direct Connect or VPN
AvailabilityRegional (multi-AZ) by default, or One Zone for lower cost
Throughput modesElastic (default, scales automatically), Provisioned, or Bursting
Performance modesGeneral Purpose for most, Max I/O for highly parallel workloads
Storage classesStandard, Infrequent Access and Archive, with lifecycle management moving files by last access
ProtectionEncryption at rest and in transit, IAM and access points, backups and cross-Region replication

EFS for Windows

EFS speaks NFS and does not support Windows clients. A Windows file share with Active Directory integration is FSx for Windows File Server.

The FSx family

ServiceProtocolPick it for
FSx for Windows File ServerSMBWindows workloads, Active Directory, DFS namespaces, Multi-AZ
FSx for LustreLustreHPC and machine learning, linked to S3, scratch or persistent deployments
FSx for NetApp ONTAPNFS, SMB, iSCSIMigrating NetApp environments and multiprotocol access
FSx for OpenZFSNFSMigrating ZFS workloads with low latency and snapshots

Storage Gateway

TypePresentsData lives
S3 File GatewayNFS or SMB sharesIn S3, with a local cache of recent data
FSx File GatewaySMBIn FSx for Windows, with a local cache for low-latency access
Volume Gateway, cachediSCSI volumesPrimary in S3, with frequently used data cached locally
Volume Gateway, storediSCSI volumesPrimary on-premises, with asynchronous snapshots in S3
Tape GatewayVirtual tape library over iSCSIIn S3 and S3 Glacier, replacing physical tapes
  • The gateway runs as a virtual machine, a hardware appliance or an EC2 instance, and needs outbound HTTPS to AWS.

Scenarios

Scenario
A fleet of Linux web servers across three AZs must read and write the same set of uploaded files, with the capacity growing automatically and no provisioning. Which storage fits?
Scenario
An on-premises backup application writes to a virtual tape library and the company wants to retire physical tapes, keeping the application unchanged. Which service fits?
Scenario
A transactional database on EC2 needs a sustained 60,000 IOPS with the highest EBS durability, and the team wants two instances in one AZ to share the volume for a clustered application. Which volume fits?

Further reading

On this page