The short answer: Amazon EBS is block storage, a virtual disk you attach to an EC2 instance in the same Availability Zone; use it for boot volumes and databases. Amazon EFS is a managed NFS file system that many Linux instances, containers and Lambda functions can mount at the same time, across AZs; use it when servers must share files. Amazon S3 is object storage you reach over an HTTPS API, not a mounted disk; use it for uploads, backups, static assets, data lakes and archives. If a question says "shared file system", think EFS; "low-latency disk for a database on EC2", think EBS; "store any amount of objects durably and cheaply", think S3.
Side by side
| Amazon EBS | Amazon EFS | Amazon S3 | |
|---|---|---|---|
| Type | Block | File (NFSv4.0 and 4.1) | Object |
| Accessed by | One EC2 instance (Multi-Attach: up to 16 Nitro instances, io1/io2 only) | Many EC2 instances, ECS, EKS, Fargate, Lambda at once | Anything that can call the S3 API over HTTPS |
| Scope | One Availability Zone | Regional (multiple AZs) or One Zone | A Region; most classes store across 3 or more AZs |
| Capacity | You provision a size and pay for it | Grows and shrinks automatically | Effectively unlimited, pay for what you store |
| Operating systems | Linux and Windows | Linux; Windows instances not supported | Any client |
| Typical use | Boot volumes, databases, single-server apps | Shared content, home directories, CMS, shared config | Uploads, backups, static websites, data lakes, archives |
Amazon EBS: a disk for one instance
An EBS volume behaves like a physical hard drive. You attach it to an instance, format it, and the OS sees a block device. The volume and the instance must be in the same AZ. Volumes persist independently of the instance, so stopping or even terminating the instance doesn't have to lose the data, and you can detach a volume and attach it elsewhere in the same AZ.
EBS has SSD-backed types (gp2, gp3, io1, io2) for transactional workloads and HDD-backed types (st1, sc1) for throughput-heavy sequential work. Data is replicated across multiple servers within its AZ; to protect against losing the AZ you take snapshots, which can be restored to a volume in another AZ or copied to another Region.
Multi-Attach is the one exception to "one instance": a Provisioned IOPS (io1 or io2) volume can be attached to up to 16 Nitro-based instances in the same AZ. AWS warns that ordinary file systems like XFS and EXT4 aren't built for this; the application or a clustered file system must coordinate writes. It's a niche feature for clustered software, not a replacement for EFS.
Amazon EFS: a shared file system
EFS is serverless file storage over NFS. Many clients mount the same file system at once and see the same files with normal file semantics: directories, POSIX permissions, file locking and strong consistency. You don't provision capacity; it grows and shrinks as you add and remove files.
A Regional file system (AWS's recommended type) stores data redundantly across multiple AZs and stays available if an AZ is lost. A One Zone file system keeps data in a single AZ and is cheaper, at the cost of that resilience. Access is controlled by both IAM and security groups on the mount targets. EFS isn't supported on Windows instances; Windows file shares on AWS are Amazon FSx for Windows File Server, and high-performance computing file systems are FSx for Lustre.
Amazon S3: object storage
S3 stores objects (a file plus its metadata) in buckets, each identified by a key. You don't mount it; applications read and write it through the REST API or SDKs. That makes it the natural home for data that many systems need to reach, from browsers downloading images to analytics engines reading a data lake. S3 has strong read-after-write consistency for PUTs and DELETEs, but updates are per object: there is no file locking for concurrent writers and no partial in-place edit of a file.
S3 is also where cost tiers live. Storage classes from Standard down to Glacier Deep Archive let you trade access speed for price, which we cover in S3 storage classes compared.
Don't forget the instance store
Exam options often include the EC2 instance store: disks physically attached to the host. It is very fast and included in the instance price, but the data persists only through a reboot. Stop, hibernate or terminate the instance and every block is erased. Use it for caches, buffers and scratch data you can lose, never for the only copy of anything.
When to use which
- Boot volume or a database running on EC2: EBS (Provisioned IOPS for sustained, predictable IOPS).
- Several Linux servers in different AZs reading and writing the same files: EFS (Regional).
- User uploads from an Auto Scaling web tier: S3, so no file depends on one instance.
- Backups, logs, data lake, static website assets: S3.
- Windows SMB file share with Active Directory: FSx for Windows File Server, not EFS.
- Temporary scratch space at maximum speed: instance store.
- A clustered app that needs one block volume on a few instances in one AZ: EBS Multi-Attach.
Exam traps
- "Across Availability Zones" with EBS as an option. An EBS volume lives in one AZ and attaches only to instances in that AZ. Multi-Attach doesn't change that.
- "Mount S3 as a file system." S3 is object storage accessed by API. When the scenario needs concurrent read/write with standard file semantics, the answer is EFS.
- EFS for Windows. EFS isn't supported on Windows instances. An SMB or Active Directory clue points to FSx for Windows File Server.
- Instance store for data that must survive. "Users lose files after scaling events" means the data was on local storage. Move it to S3 or EFS; a bigger instance store doesn't help.
- Snapshots aren't live replication. EBS snapshots are point-in-time backups. They protect against losing a volume or an AZ, but anything written after the last snapshot is gone.
- Durability numbers. S3's eleven nines of durability is for S3. EBS volumes quote a different figure (AWS lists 99.999% for io2 Block Express and 99.8–99.9% for other types).
Practice questions from our bank
Two SAA-C03 questions and one CLF-C02 question. Try each before opening the answer.
Question 1 · SAA-C03 · Design High-Performing Architectures
A clustered application needs the same block storage volume attached to a small number of EC2 instances in one Availability Zone at the same time, with the cluster software coordinating writes. Which capability supports this?
- AAmazon EBS Multi-Attach on a Provisioned IOPS (io1/io2) volume
- BAttaching a gp2 volume to several instances across AZs
- CAmazon S3 mounted as a block device
- DInstance store volumes shared between instances
Show answer and explanation
Answer: A) Amazon EBS Multi-Attach on a Provisioned IOPS (io1/io2) volume
- AEBS Multi-Attach lets a single io1/io2 volume be attached to multiple instances in the same AZ concurrently; the application/cluster must manage concurrent access (e.g. with a cluster-aware file system).
- BMulti-Attach isn't supported on gp2, and EBS volumes can't span AZs regardless.
- CS3 is object storage, not shared block storage for a cluster.
- DInstance store is local to one host and cannot be shared.
Question 2 · CLF-C02 · Cloud Technology and Services
Several Linux EC2 instances across multiple Availability Zones must share the same file system with standard file semantics, mounting it concurrently. Which AWS storage service fits?
- AAmazon EFS (Elastic File System)
- BAmazon FSx for Windows File Server
- CAmazon EBS
- DAmazon S3
Show answer and explanation
Answer: A) Amazon EFS (Elastic File System)
- AEFS is a managed, elastic NFS file system that many Linux instances across AZs can mount and read/write at the same time.
- BFSx for Windows provides SMB shares for Windows workloads, not NFS for Linux.
- CA standard EBS volume attaches to one instance in one AZ; it isn't a shared multi-AZ file system.
- DS3 is object storage accessed via API, not a mountable POSIX file system for concurrent read/write.
Question 3 · SAA-C03 · Design Resilient Architectures
An application writes user uploads to local instance storage. Users report lost files after scaling events. What is the resilient fix?
- AStore uploads in Amazon S3 (or Amazon EFS for shared file semantics) instead of instance storage
- BDisable Auto Scaling so instances are never replaced
- CIncrease the instance store size
- DTake EBS snapshots more often
Show answer and explanation
Answer: A) Store uploads in Amazon S3 (or Amazon EFS for shared file semantics) instead of instance storage
- ADurable shared storage decouples data from any single instance so scale-in or replacement does not lose files.
- BThat trades away elasticity and still loses data on any instance failure.
- CInstance store is still ephemeral regardless of size.
- DInstance store is not EBS, and snapshots do not make active writes durable in real time.
Where this comes up on the exams
SAA-C03 tests storage choice under both high-performing architectures (IOPS, throughput, shared access) and resilient architectures (keeping data off single instances and single AZs). CLF-C02 asks you to match each service to its storage type and use case.
- SAA-C03: practice exams · Design High-Performing Architectures questions · Design Resilient Architectures questions · SAA-C03 cheat sheet
- CLF-C02: practice exams · Cloud Technology and Services questions · CLF-C02 cheat sheet
Related: RDS Multi-AZ vs read replicas and security groups vs NACLs (which also guard EFS mount targets).
Sources
- What is Amazon EBS?: volume types, snapshots, durability figures.
- Amazon EBS volumes: same-AZ attachment, persistence.
- EBS Multi-Attach: io1/io2 only, up to 16 Nitro instances in one AZ, clustered file systems.
- What is Amazon EFS?: NFS, Regional and One Zone types, elastic capacity, Windows not supported.
- What is Amazon S3?: objects, buckets, keys, consistency model.
- Instance store data persistence: what survives reboot, stop and terminate.
Facts checked against the AWS documentation on November 14, 2026.
Frequently asked questions
What is the difference between EBS and EFS?
EBS is block storage: a volume attached to an EC2 instance in one Availability Zone, like a hard drive. EFS is a managed NFS file system that many Linux instances and containers can mount at the same time, across Availability Zones, and it grows automatically.
Can multiple EC2 instances share an EBS volume?
Only with EBS Multi-Attach, which works on Provisioned IOPS io1 and io2 volumes, for up to 16 Nitro-based instances in the same Availability Zone, and needs a clustered file system or application that coordinates writes. For general file sharing, use EFS.
Can I mount S3 like a file system?
S3 is object storage accessed through its API, not a mounted file system. When servers need to read and write the same files with normal file semantics, use EFS (Linux) or FSx (Windows and other file systems).
Does EFS work with Windows?
No. AWS documents that EFS is not supported on Windows-based EC2 instances. Use Amazon FSx for Windows File Server for SMB shares.