Skip to main content
StorageBeginnerPriority: high

Differences between S3, EBS, and EFS, explained for beginners

Organizes the differences between Amazon S3, Amazon EBS, and Amazon EFS — representative AWS storage services — along with exam-relevant points and how to use each in practice.

Published: 2026-06-01/Updated: 2026-06-21
CLF-C02SAA-C03

Services compared

Click a service name to review it on the term detail page.

Conclusion

Amazon S3, Amazon EBS, and Amazon EFS are all AWS storage services, but the situations in which they are used differ significantly.

A simple way to remember them is shown below.

ServiceIn one sentenceMain use cases
Amazon S3Object storage for keeping filesImages, videos, logs, backups, static sites
Amazon EBSA virtual disk attached to an EC2 instanceOS volumes for EC2, disks for applications
Amazon EFSFile storage that can be shared from multiple EC2 instancesShared file location for multiple servers

When in doubt, use the following rules of thumb.

  • You want to store images or static files for a website: S3
  • You want to use it as a disk for an EC2 instance: EBS
  • You want to share the same files from multiple EC2 instances: EFS

Comparison Table

ItemS3EBSEFS
Full nameAmazon Simple Storage ServiceAmazon Elastic Block StoreAmazon Elastic File System
TypeObject storageBlock storageFile storage
Main use casesFile storage, static sites, backups, log storageA disk for EC2A shared file system between multiple EC2 instances
What it connects toApps, browsers, AWS servicesAn EC2 instance in principleMultiple EC2 instances
Access methodsHTTP API, SDK, CLI, consoleRecognized by the OS as a diskMounted via NFS
Multi-server sharingPossible, but not a file systemGenerally attached to a single EC2 instancePossible
Capacity expansionEffectively automaticVolume size is specifiedAutomatic
AvailabilityHighly durable across multiple AZsA volume within a single AZAccessible from multiple AZs
Representative exam keywordsObject, bucket, durability, storage classEC2, block, volume, snapshotNFS, shared files, multiple EC2
Use in this projectStoring static site filesNot used in MVPNot used in MVP

Beginner-Friendly Explanation

Amazon S3

S3 is a service that stores files as "objects".

It can store images, PDFs, HTML, CSS, JavaScript, log files, backup files, and similar content.

In this project, we use a setup that places statically exported Next.js files in S3 and delivers them through Amazon CloudFront.

Amazon EBS

EBS is a disk that you attach to an EC2 instance for use.

It is similar to the "built-in SSD" or "external disk" of a local PC.

When running applications on EC2, EBS is used to store the OS and the application files.

Amazon EFS

EFS is used when you want multiple EC2 instances to share the same files.

It is used in cases such as having multiple web servers reference the same uploaded files.

Unlike S3, EFS can be mounted and used as a file system, which is its defining feature.

Points That Often Appear in the Exams

Points likely to appear on CLF-C02

  • S3 is object storage
  • EBS is block storage attached to EC2
  • EFS is file storage that can be shared from multiple EC2 instances
  • S3 can be used for static website delivery and backups
  • EBS can be backed up using snapshots
  • EFS is used for file sharing on Linux systems

Points likely to appear on SAA-C03

  • The standard pattern for delivering static content is S3 + CloudFront
  • Use EBS for persistent disks on EC2
  • Consider EFS when handling shared files from EC2 instances across multiple AZs
  • Use different S3 storage classes for frequent access, infrequent access, and archive
  • EBS is tied to an AZ, so it cannot be attached as-is to an EC2 instance in a different AZ
  • EFS can be accessed from multiple AZs, which makes it suitable for shared use cases

Practical Use Cases

When to choose S3

  • You want to publish a static website
  • You want to store images and PDFs
  • You want to store log files
  • You want to store backups
  • You want to deliver static content in combination with CloudFront

In this project, S3 is required.

When to choose EBS

  • You build a web server using EC2
  • You need an OS disk for EC2
  • You build a database on EC2
  • You want to attach a high-performance disk to a specific EC2 instance

The MVP for this project does not use EC2, so EBS is not used either.

When to choose EFS

  • You want multiple EC2 instances to share the same files
  • You want to use shared storage over NFS from Linux servers
  • You need a shared file system that spans multiple AZs

The MVP for this project does not use a multi-EC2 configuration, so EFS is not used either.

Common Mistakes

Mistake 1: Thinking that S3 can be used as a disk for EC2

S3 is object storage.

When you want the EC2 OS to handle storage directly as a regular disk, use EBS.

Mistake 2: Thinking that EBS can be easily shared across multiple EC2 instances

EBS is, in principle, block storage attached to a single EC2 instance.

When you want to share files across multiple EC2 instances, consider EFS.

Mistake 3: Using EFS for static website delivery

For static website delivery, the standard choice is S3 + CloudFront.

EFS is intended for file-sharing use cases and is not the first choice for static web delivery.

Mistake 4: Memorizing S3, EBS, and EFS all as a single "place to put files"

This kind of memorization leads to confusion on the exam.

  • S3: object
  • EBS: block
  • EFS: file

Organize them with these three words.

Related Terms

Related Questions

Summary

S3, EBS, and EFS are the fundamentals of AWS storage.

First, remember them with the following sentence.

S3 is for file storage, EBS is the disk for EC2, and EFS is a shared file system for multiple EC2 instances.

What to learn next

After understanding the differences in this comparison, review related terms and practice questions. AWS exams often test how to choose between similar services.