Storage: S3, EBS, EFS & Friends

Object vs block vs file storage, S3 storage classes, and which storage service each scenario calls for.

11 min read

Three kinds of storage

TypeThink of it asAWS serviceAttach to
Object storageAn infinite bucket of files with URLsAmazon S3Accessed over the network by anything
Block storageA virtual hard driveAmazon EBSOne EC2 instance at a time (same AZ)
File storageA shared network driveAmazon EFS (Linux) / FSx (Windows, Lustre)Many instances simultaneously

Amazon S3 essentials

Key points

  • Stores objects in buckets; virtually unlimited capacity; objects up to 5 TB.
  • 11 nines (99.999999999%) durability — data is redundantly stored across multiple AZs.
  • Common uses: backups, data lakes, static website hosting, media storage.
  • Versioning protects against accidental deletion; lifecycle policies move objects between storage classes automatically.
  • Access controlled by bucket policies, IAM, and Block Public Access (on by default).

S3 storage classes

ClassForTrade-off
S3 StandardFrequently accessed dataHighest cost, instant access
S3 Intelligent-TieringUnknown or changing access patternsAuto-moves objects between tiers for you
S3 Standard-IA / One Zone-IAInfrequently accessed but needs fast retrievalCheaper storage, per-GB retrieval fee (One Zone = single AZ, less resilient)
S3 Glacier Instant / Flexible RetrievalArchives (instant, or minutes-to-hours retrieval)Very cheap storage, retrieval costs/time
S3 Glacier Deep ArchiveLong-term archives (7–10 yr compliance)Cheapest of all; retrieval takes ~12+ hours
Exam tip

Storage-class questions hinge on two words: access frequency and retrieval time. "Rarely accessed, must retrieve immediately" → Standard-IA. "Compliance archive, retrieval can wait hours" → Glacier Deep Archive. "Unpredictable access" → Intelligent-Tiering.

Block and file storage

Amazon EBS (Elastic Block Store)

Persistent virtual disks for EC2. Snapshots back them up to S3. An EBS volume lives in one AZ.

EC2 Instance Store

Physically attached, ultra-fast ephemeral disk — data is lost when the instance stops.

Amazon EFS (Elastic File System)

Elastic NFS file system shared by many Linux instances across multiple AZs; grows and shrinks automatically.

Amazon FSx

Managed file systems: FSx for Windows File Server (SMB/Active Directory) and FSx for Lustre (high-performance computing).

AWS Storage Gateway

Hybrid bridge letting on-premises apps use S3-backed cloud storage.

AWS Backup

Central, policy-based backups across EBS, RDS, DynamoDB, EFS, and more.

Tip

Keyword map: shared Linux file system → EFS; Windows file share → FSx for Windows; boot volume / database disk for one instance → EBS; temporary scratch space → instance store; on-prem apps using cloud storage → Storage Gateway.

Knowledge check
Question 1 of 5

Which AWS service provides object storage with 99.999999999% (11 nines) durability?