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
| Type | Service | Access | Typical use |
|---|---|---|---|
| Object | S3 | HTTP API, by key | Backups, media, data lakes, static websites |
| Block | EBS | Attached to one EC2 instance | Boot volumes, databases |
| File | EFS / FSx | Shared via NFS or SMB | Shared content, home directories |
S3 storage classes
| Class | Use case | Retrieval | Cost profile |
|---|---|---|---|
| S3 Standard | Frequently accessed data | Milliseconds | Highest storage, no retrieval fee |
| S3 Intelligent-Tiering | Unknown or changing access | Milliseconds | Automatically moves objects between tiers |
| S3 Standard-IA | Infrequent access, multi-AZ | Milliseconds | Lower storage, retrieval fee |
| S3 One Zone-IA | Infrequent, re-creatable data | Milliseconds | Cheaper, one AZ only |
| S3 Glacier Instant Retrieval | Archive needing instant access | Milliseconds | Low storage, retrieval fee |
| S3 Glacier Flexible Retrieval | Archives | Minutes to hours | Very low |
| S3 Glacier Deep Archive | Long-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.
{
"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
| Feature | EBS | EFS | FSx |
|---|---|---|---|
| Type | Block | File (NFS) | File (SMB, Lustre, ONTAP, ZFS) |
| Attach to | One instance (Multi-Attach for some io volumes) | Thousands of instances | Many clients |
| Scope | One AZ | Multi-AZ regional | Depends on deployment |
| Use | Boot disks, databases | Shared Linux content | Windows 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
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
- 1Operating system and database disks use EBS block volumes.
- 2Many instances share content through EFS (or FSx).
- 3Durable objects such as media and backups go to S3.
- 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

