AWS Certified Cloud Practitioner / EC2 Instance Storage

Amazon EFS Overview

πŸ“‚ Amazon EFS (Elastic File System)

EBS attaches to one EC2 instance at a time. EFS solves the opposite problem: a fully managed, shared network file system that many Linux EC2 instances can mount and access simultaneously β€” like a shared network drive in the cloud.


🌐 How It Works

Built on NFS (Network File System) β€” storage accessed over the network, not attached locally.

  • Every connected instance sees the same folders, files, and directory structure

  • One instance's changes are instantly visible to all others

  • No copying, no snapshots needed just to share files


πŸš€ Key Features

  • πŸ“‚ Shared storage β€” 2, 20, or hundreds of instances can mount the same file system

  • 🌍 Multi-AZ β€” accessible across Availability Zones in the same Region (EBS is single-AZ)

  • πŸ“ˆ Auto-scales β€” grows and shrinks with your files, no capacity planning

  • πŸ’³ Pay-per-use β€” billed only for storage actually consumed

  • 🐧 Linux only β€” Windows uses Amazon FSx for Windows File Server instead

πŸ’‘ Cost note: EFS runs roughly 3Γ— the price of a gp2 EBS volume β€” the premium buys shared access, multi-AZ resilience, and auto-scaling.


βš–οΈ EBS vs EFS

Feature

πŸ“€ EBS

πŸ“‚ EFS

Storage type

Block storage

Shared network file system

Multi-instance access

❌ (one at a time)

βœ…

Availability Zone

Single AZ

Multiple AZs

OS support

Linux & Windows

Linux only

Auto-scaling

❌

βœ…

Best for

Individual instance storage

Shared file storage

πŸ’‘ Beginner tip: EBS = your own personal hard drive. EFS = one shared network folder everyone works from.


πŸ—„οΈ Storage Classes

  • πŸ“‚ EFS Standard β€” default, best performance, for frequently accessed files

  • πŸ’° EFS Infrequent Access (EFS-IA) β€” for rarely touched files, up to 92% cheaper than Standard


πŸ”„ Lifecycle Management

Automatically moves files between classes based on access patterns β€” no manual work, fully transparent to your application.

Example policy: move files untouched for 60 days into EFS-IA.

  • File accessed daily β†’ stays in Standard

  • File untouched 60+ days β†’ auto-moves to EFS-IA

  • File reopened later β†’ auto-moves back to Standard

Your app reads files the same way regardless of which class they're in.


🎯 Exam Cheat Sheet

  • EFS = fully managed NFS, Linux-only

  • Multiple instances, multiple AZs, simultaneous access

  • Auto-scales, pay-as-you-go

  • ~3Γ— cost of gp2 EBS

  • Standard vs IA (up to 92% cheaper), moved automatically via Lifecycle Management

  • Exam clue "shared storage, multiple instances, multiple AZs" β†’ EFS

  • Quick rule: EBS = one instance, one volume. EFS = many instances, one shared file system.