SkillSprout
Chapter 4 · Lesson 2
Beginner
5 min read

Storage: S3, EBS, EFS and More

Overview

AWS provides three main kinds of storage: object, block and file. Choosing the right one is a core exam skill.

Imagine a filing system. Object storage (S3) is a huge warehouse where each item has a label and you retrieve whole items by name. Block storage (EBS) is a hard drive attached to your computer. File storage (EFS, FSx) is a shared network drive that many computers can open at once.

Amazon S3 is the most important of these, offering almost unlimited, durable storage in several storage classes that trade cost against access speed. Learn those classes and the one-line purpose of each other service.

Key Concepts

  • Amazon S3 is object storage in buckets; objects can be up to 5 TB, and S3 offers 11 nines (99.999999999%) durability.
  • S3 storage classes include Standard, Intelligent-Tiering, Standard-IA, One Zone-IA and the Glacier family for archives.
  • Amazon EBS provides block volumes for a single EC2 instance (in one AZ); data persists independently of the instance.
  • Amazon EFS is a scalable, shared NFS file system for Linux workloads across many instances and AZs.
  • Amazon FSx offers managed file systems such as Windows File Server, Lustre, NetApp ONTAP and OpenZFS.
  • AWS Storage Gateway connects on-premises applications to cloud storage; AWS Backup centralises and automates backups.
  • S3 Lifecycle policies move objects between classes or expire them automatically; versioning and replication protect data.
  • Instance store is temporary storage physically attached to the host and is lost when the instance stops or terminates.

Detailed Notes

Three storage types

TypeServiceAccessTypical use
ObjectS3HTTP API, by keyBackups, media, data lakes, static websites
BlockEBSAttached to one EC2 instanceBoot volumes, databases
FileEFS / FSxShared via NFS or SMBShared content, home directories

S3 storage classes

ClassUse caseRetrievalCost profile
S3 StandardFrequently accessed dataMillisecondsHighest storage, no retrieval fee
S3 Intelligent-TieringUnknown or changing accessMillisecondsAutomatically moves objects between tiers
S3 Standard-IAInfrequent access, multi-AZMillisecondsLower storage, retrieval fee
S3 One Zone-IAInfrequent, re-creatable dataMillisecondsCheaper, one AZ only
S3 Glacier Instant RetrievalArchive needing instant accessMillisecondsLow storage, retrieval fee
S3 Glacier Flexible RetrievalArchivesMinutes to hoursVery low
S3 Glacier Deep ArchiveLong-term retention (7-10+ years)Hours (up to ~12h)Lowest

S3 features worth knowing

  • Versioning: keeps previous versions to recover from deletes or overwrites.
  • Lifecycle rules: transition objects to cheaper classes or delete after a period.
  • Cross-Region / Same-Region Replication: copy objects to another bucket.
  • Static website hosting: serve a website directly from a bucket, ideally via CloudFront.
  • Block Public Access and bucket policies control exposure; objects are encrypted by default.
json
{
  "Rules": [{
    "ID": "ArchiveLogs",
    "Status": "Enabled",
    "Filter": { "Prefix": "logs/" },
    "Transitions": [
      { "Days": 30, "StorageClass": "STANDARD_IA" },
      { "Days": 180, "StorageClass": "GLACIER" }
    ],
    "Expiration": { "Days": 730 }
  }]
}

EBS, EFS and FSx

FeatureEBSEFSFSx
TypeBlockFile (NFS)File (SMB, Lustre, ONTAP, ZFS)
Attach toOne instance (Multi-Attach for some io volumes)Thousands of instancesMany clients
ScopeOne AZMulti-AZ regionalDepends on deployment
UseBoot disks, databasesShared Linux contentWindows shares, HPC

EBS volumes are backed up with snapshots stored in S3 and can be copied across AZs and Regions.

Hybrid and data protection

  • Storage Gateway: file, volume and tape gateways for on-premises access to AWS storage.
  • AWS Backup: policy-based backup across EBS, RDS, DynamoDB, EFS and more.
  • AWS DataSync and Transfer Family: move data and offer SFTP into S3 or EFS.

CLI quick start

bash
aws s3 mb s3://my-unique-bucket-2025
aws s3 cp report.pdf s3://my-unique-bucket-2025/ --storage-class STANDARD_IA

Real World Example

A video production company stores raw footage in S3 Standard while editors work on it, uses a lifecycle rule to move it to Glacier Flexible Retrieval after 60 days and Deep Archive after a year to meet seven-year retention at minimal cost.

Editing workstations on EC2 use EBS volumes for fast local scratch space, while shared project assets are placed in FSx for Windows File Server so editors can open the same files over SMB.

Architecture Diagram

Choosing storage by access pattern
Architecture
AWS Cloud
EC2 instances
EBSOne AZ
EFSMulti-AZ NFS

Amazon S3

Standard
Glacier archive
  1. 1Operating system and database disks use EBS block volumes.
  2. 2Many instances share content through EFS (or FSx).
  3. 3Durable objects such as media and backups go to S3.
  4. 4Lifecycle rules move cold objects to Glacier to save cost.

Best Practices

  • ✓Use S3 lifecycle rules or Intelligent-Tiering to match cost to access patterns.
  • ✓Turn on versioning and Block Public Access for important buckets.
  • ✓Snapshot EBS volumes regularly, using AWS Backup for automation.
  • ✓Choose EFS for shared Linux files and EBS for single-instance block storage.
  • ✓Encrypt everything; use KMS keys where audit and control are needed.

Common Interview Questions

Exam Tips

CLF-C02 focus

  • "Object storage, static website, backups" = S3; "virtual hard drive" = EBS; "shared file system for Linux" = EFS.
  • "Unknown or changing access pattern" = S3 Intelligent-Tiering.
  • "Lowest-cost archive, hours to retrieve" = Glacier Deep Archive.
  • One Zone-IA is single-AZ, so not suitable for critical-only copies.

Finished this lesson?

0 of 43 lessons done · 0% of the course