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.
EBS volume types
| Type | Medium | Use it for | Key numbers |
|---|---|---|---|
| gp3 | SSD | The default for most workloads | 3,000 IOPS and 125 MB/s baseline, up to 16,000 IOPS and 1,000 MB/s, set independently of size |
| gp2 | SSD | Older default | 3 IOPS per GB with burst credits. gp3 is cheaper and more predictable |
| io2 Block Express | SSD | Databases needing sustained high IOPS and the best durability | Up to 256,000 IOPS, 64 TiB, Multi-Attach |
| io1 | SSD | Provisioned IOPS | Up to 64,000 IOPS on Nitro |
| st1 | HDD | Big sequential throughput: logs, data warehouses | Cannot be a boot volume |
| sc1 | HDD | Cold, infrequent data, lowest cost | Cannot 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
| Topic | What to know |
|---|---|
| Access | NFSv4 from many Linux instances across AZs, and from on-premises over Direct Connect or VPN |
| Availability | Regional (multi-AZ) by default, or One Zone for lower cost |
| Throughput modes | Elastic (default, scales automatically), Provisioned, or Bursting |
| Performance modes | General Purpose for most, Max I/O for highly parallel workloads |
| Storage classes | Standard, Infrequent Access and Archive, with lifecycle management moving files by last access |
| Protection | Encryption 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
| Service | Protocol | Pick it for |
|---|---|---|
| FSx for Windows File Server | SMB | Windows workloads, Active Directory, DFS namespaces, Multi-AZ |
| FSx for Lustre | Lustre | HPC and machine learning, linked to S3, scratch or persistent deployments |
| FSx for NetApp ONTAP | NFS, SMB, iSCSI | Migrating NetApp environments and multiprotocol access |
| FSx for OpenZFS | NFS | Migrating ZFS workloads with low latency and snapshots |
Storage Gateway
| Type | Presents | Data lives |
|---|---|---|
| S3 File Gateway | NFS or SMB shares | In S3, with a local cache of recent data |
| FSx File Gateway | SMB | In FSx for Windows, with a local cache for low-latency access |
| Volume Gateway, cached | iSCSI volumes | Primary in S3, with frequently used data cached locally |
| Volume Gateway, stored | iSCSI volumes | Primary on-premises, with asynchronous snapshots in S3 |
| Tape Gateway | Virtual tape library over iSCSI | In 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
EFS provides a shared NFS file system across AZs that grows and shrinks automatically. An EBS volume attaches to instances in one AZ, and sharing a gp3 volume is not possible. Instance store is ephemeral, and FSx for Windows serves SMB to Windows clients.
Tape Gateway presents a virtual tape library to the existing backup software, stores virtual tapes in S3 and archives them to Glacier. File Gateway gives file shares, not tapes. DataSync moves files and does not emulate a tape library, and EFS is a file system.
io2 Block Express delivers the sustained IOPS and the highest durability, and Multi-Attach lets several Nitro instances in one AZ share it. gp3 tops out at 16,000 IOPS and does not support Multi-Attach. st1 is for throughput, and instance store is ephemeral.
Related
- Backup automation: snapshots with Data Lifecycle Manager and AWS Backup.
- Data transfer: DataSync, Snow and Storage Gateway for migration.
- Amazon S3: object storage and lifecycle.
Further reading
Amazon S3
Storage classes and lifecycle, versioning, replication, Object Lock, encryption, performance, events and transfer options, with the limits the exam asks about.
Analytics patterns
Building an S3 data lake with Glue, Athena and Lake Formation, and choosing between Athena, Redshift, EMR and OpenSearch, with Firehose ingestion, QuickSight dashboards and AppSync as a GraphQL layer.