CertificationTestPrep Free diagnostic

AWS · explainer · checked November 4, 2026

EBS vs EFS vs S3: block, file and object storage on AWS

Amazon EBS is block storage: a volume you attach to an EC2 instance in the same Availability Zone and use like a hard drive. Amazon EFS is a shared file system that many Linux clients mount over NFS. Amazon S3 is object storage: you store and fetch whole objects by key through an API. Pick by how the data is accessed, not by size.

Side by side

Amazon EBSAmazon EFSAmazon S3
Storage typeBlockFile (NFS)Object
How you reach itAttach a volume to an EC2 instance and use it like a local hard driveMount it over NFSv4.1 or NFSv4.0HTTP-based API, the console, the AWS CLI or an SDK, addressed by bucket and key
Who can use it at onceOne instance; up to 16 Nitro instances in the same Availability Zone with Multi-Attach on io1 or io2Many clients at once, from EC2, Amazon ECS, Amazon EKS, AWS Lambda and AWS Fargate, and from on-premises servers over Direct Connect or Site-to-Site VPNAny client you grant access to
Where the data livesOne Availability Zone, replicated across multiple servers in itRegional: multiple Availability Zones. One Zone: a single Availability ZoneS3 Standard: at least three Availability Zones in a Region. S3 One Zone-IA: one
Size and growthYou choose a volume size and can change it with no downtimeGrows and shrinks automatically, to petabytesNo limit on the number of objects in a bucket; one object up to 50 TB by multipart upload

Three ways to organize the same bytes

These services are not rivals for one job. They answer three different questions about how a program wants to read and write data.

  • Block storage gives a program a raw disk. The operating system puts a file system on it and reads and writes small pieces in place. That is Amazon Elastic Block Store (Amazon EBS).
  • File storage gives many programs a shared set of folders and files they open, change and lock. That is Amazon Elastic File System (Amazon EFS).
  • Object storage keeps whole objects, each with a key and metadata, in a bucket. A program uploads or downloads an object through an API instead of editing part of a file. That is Amazon Simple Storage Service (Amazon S3).

Amazon EBS: a disk for an instance

An EBS volume is a block-level device that you attach to an Amazon Elastic Compute Cloud (Amazon EC2) instance. After you attach it, you use it as you would a physical hard drive, for example as the system drive or as storage for a database. The volume and the instance must be in the same Availability Zone, and the volume keeps its data independently of the instance’s running life.

EBS offers SSD-backed and HDD-backed volume types, and you can raise capacity or performance with no downtime. AWS documents 99.999% durability for io2 Block Express volumes and 99.8% to 99.9% for the other types, and says volume data is replicated across multiple servers within the Availability Zone. That protects against a failed component, not against losing the zone, so you back up with EBS snapshots, which can restore volumes in other Availability Zones or Regions.

Sharing is the limit. Multi-Attach lets one io1 or io2 volume attach to up to 16 Nitro-based instances in the same Availability Zone, but AWS warns that standard file systems such as XFS and EXT4 are not built for simultaneous access by several servers and recommends a clustered file system.

Amazon EFS: files many machines share

EFS is a serverless, elastic file system. You mount it over the Network File System (NFS) protocol, and it grows and shrinks as you add and remove files, with no capacity to provision. Instances in several Availability Zones of a Region can use the same file system at the same time, and so can containers on Amazon ECS, Amazon EKS and AWS Fargate, and AWS Lambda functions. On-premises Linux servers can mount it when connected to your VPC with AWS Direct Connect or Site-to-Site VPN.

A Regional file system stores data across multiple Availability Zones and keeps it available if one zone is down. A One Zone file system stores data in one zone, and AWS notes that data can be lost if the zone is lost or damaged. The documentation says using EFS with Windows-based EC2 instances is not supported.

EFS gives you file semantics: strong consistency, file locking and POSIX permissions. Choose it when several servers need the same directory, such as a content-management system, home directories or shared application files.

Amazon S3: objects behind an API

S3 stores data as objects in buckets. An object is a file plus metadata, found by its bucket and key. You reach it through an HTTP-based API, usually by way of the console, the AWS CLI or an SDK, and by default buckets and objects are private.

S3 Standard is designed for 99.999999999% durability and 99.99% availability over a year, and stores objects across at least three Availability Zones. The One Zone-IA class keeps data in one zone and is designed for 99.5% availability. A single upload operation handles an object up to 5 GB, and multipart upload reaches 50 TB. Storage classes, lifecycle rules, versioning, replication and event notifications are built in.

S3 is strongly consistent: a read after a successful write returns the new data. Two limits matter for design. Updates are per key, with no atomic update across keys. And S3 does not lock objects against concurrent writers, so with two simultaneous writes to one key the latest timestamp wins. That is why it fits whole-object workloads such as backups, media, logs, websites and data lakes better than a database file edited in place.

S3 can also be presented as a file system. Amazon S3 Files is a shared file system, built using Amazon EFS, that links to an S3 bucket (or a prefix in it) and mounts on Amazon EC2, AWS Lambda, Amazon EKS and Amazon ECS over NFS 4.2 and 4.1. Writes are synchronized back to the bucket, and the authoritative data stays in S3. It gives file-based tools access to objects; the bucket still holds objects.

How to choose

  • The operating system needs a disk, or a database needs low-latency block storage: EBS.
  • Several servers or containers need to read and write the same files: EFS.
  • You store and retrieve whole objects, serve them to many users or keep them cheaply for a long time: S3.

They also combine. EBS snapshots are point-in-time backups of volumes. A common design runs the application on EC2 with an EBS root volume, shared uploads on EFS, and finished assets and backups in S3.

EC2 vs S3 compares compute with storage

Amazon EC2 provides virtual servers. Amazon S3 stores data. They do different jobs, so “EC2 or S3?” is a mix-up rather than a choice. An EC2 instance runs your program and needs storage of its own: EBS volumes for persistent data, or instance store volumes for temporary data that is deleted when you stop, hibernate or terminate the instance. The program on that instance can then read and write S3 objects over the network. The real storage choice is among EBS, EFS and S3.

On the exams

How certification exams use this

The exam guides ask candidates to pick storage by use case. SAA-C03 task 3.1 asks for storage services with appropriate use cases (Amazon S3, Amazon EFS, Amazon EBS) and for storage types (object, file, block), and task 4.1 asks for cost-optimized storage choices. SOA-C03 task 1.3 covers optimizing EBS volume types and selecting shared storage, and its guide lists Amazon EFS and Amazon S3 Files as examples. CLF-C02 task 3.6 asks candidates to identify object storage, block storage and file services. DOP-C02 task 1.4 lists application storage patterns, and MLA-C02 task 1.1 includes making storage decisions across these services. Watch the wording: “shared by many instances” points at EFS, “boot or database volume” at EBS, and “objects, static content or archive” at S3. The usual wrong answer is using EBS where more than one server must see the same files.

Test yourself

See how well you know it, free.

Each exam’s diagnostic is free, with no sign-in: questions across the whole exam, and a map of what you know and what you don’t.