AWS Builder Center
EBS vs EFS vs S3: how I pick storage for a workload (and the practice question I got wrong)

EBS vs EFS vs S3: how I pick storage for a workload (and the practice question I got wrong)

Last week I finished the AWS Educate course Getting Started with Storage while preparing for the Cloud Practitioner exam. The course sorts storage into three types: block, file and object. On paper that is easy. Picking one for a real workload is where I slipped, so this is the short decision guide I wish I had on day one.

Computer Science student · Aspiring Cloud & AI Engineer.

The three types in one table


Amazon EBS
Amazon EFS
Amazon S3
Type
Block
File (shared folders)
Object
Think of it as
A hard disk attached to one server
A network drive many servers share
A bucket you reach by URL or API
Scope
One Availability Zone, normally one instance at a time
Many instances across several AZs
A Region
Capacity
You provision a size (you can resize it)
Grows and shrinks on its own
Practically unlimited
Changing data
Only the changed block
Normal file edits
The whole object is replaced

How I decide, in three questions

  1. Does one EC2 instance need a fast disk it owns? Boot volumes and databases (MySQL, PostgreSQL, MongoDB…) point to EBS. Snapshots are incremental and stored in S3, so backups stay cheap.
  1. Do several servers need to read and write the same files at the same time? A shared directory, a CMS, a content folder: EFS. It is Linux-only (NFS); the Windows counterpart is Amazon FSx.
  1. Is it files that applications fetch over HTTP: images, backups, logs, a static site, a data lake? S3. It is the default answer when nothing needs a mounted disk.
If none of the three clearly fits, I go back and write down the requirement: workload, security needs, expected performance. The choice usually becomes obvious once the requirement is on paper.

The practice question I got wrong

The course gave a case: video thumbnails that must stay available for a year, are rarely opened after 60 days, but must open quickly when someone needs them.
I picked S3 One Zone-IA, reasoning that thumbnails can be regenerated, so losing them would be acceptable. The course marked it wrong. The expected answer was S3 Standard-IA, plus a lifecycle rule to move them to archive after 60 days.
What I took from it:
  • One Zone-IA is cheaper because it stores data in a single AZ. If that AZ fails, the data is gone. It fits data that is easy to replace and where the question says losing it is acceptable. The case never said that.
  • When a question says "infrequent access, but fast when needed", the default is Standard-IA.
  • My "they can be regenerated" was my own assumption. In a certification (and in design reviews), answer with what the requirement states, not with what you assume.
The other two cases in the lab had clear patterns: long-term backups you can wait a few hours for point to Glacier Flexible Retrieval, and an exam-season app with unpredictable traffic points to Intelligent-Tiering.

Cold storage is cheaper to keep and slower to get back

A rule that helps with every S3 class: the colder the class, the cheaper to store and the more expensive and slower to retrieve. Infrequent-access classes also charge per retrieval and have a minimum storage duration, so "cheap" depends on how often you actually touch the data.

What I'm doing with this

I'm working on a thesis platform (a multi-agent traffic simulation and a web app to analyse it) and on a data project with Parquet files. The data lake and static frontend parts point to S3; anything needing a database disk would use EBS. I haven't deployed these on AWS yet, so I'm treating this as a design exercise until I do.
If you are studying for CLF-C02: do you memorize the storage classes by access pattern, or by price? I'm curious which one stuck for you.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article