AWS SAA – Lecture 66: Amazon EFS (Elastic File System)

Published on
Written by Henry Nguyen

Phase Verbs / Action Phrases

PhraseMeaning
mount (EFS to instances)attach the network file system to EC2 instances
scale (automatically)EFS grows/shrinks its capacity based on actual usage
move (files to storage tier)lifecycle policy migrates infrequently accessed files to cheaper tier
provision (throughput)set a fixed throughput independent of storage size
share (across AZs)multiple instances in different AZs read/write the same EFS filesystem

Technical Vocabulary

TermDefinition
EFS (Elastic File System)AWS managed NFS (Network File System) — a shared network drive for Linux EC2 instances
NFS (Network File System)A protocol that allows files to be shared over a network (like a shared drive)
POSIXA standard for Unix-like file APIs; EFS uses a standard POSIX-compatible API
Security GroupControls access to the EFS mount points
Performance ModeSetting that optimizes EFS for latency (General Purpose) or throughput (Max I/O)
Throughput ModeHow EFS delivers bandwidth: Bursting, Provisioned, or Elastic
Storage TierWhere data is stored: Standard (frequent access), IA (infrequent), Archive (rare access)
EFS-IAEFS Infrequent Access tier — cheaper storage, small fee to retrieve files
Lifecycle PolicyRule that automatically moves files between storage tiers after N days of no access

Key Concepts

What is EFS?

  • Managed NFS — a network file system you can mount to many EC2 instances
  • Unlike EBS (one instance per volume), EFS can be accessed by thousands of instances simultaneously
  • Works across multiple AZs in the same region
  • Linux only (POSIX-compatible) — NOT compatible with Windows
  • No need to provision capacity; EFS scales automatically → pay per GB used
  • ~3x more expensive than gp2 EBS, but eliminates capacity planning

EFS vs EBS Quick Comparison

EFSEBS
Attach toMany instances across AZsOne instance (same AZ)
OSLinux onlyLinux + Windows
CapacityAuto-scalesMust provision
BillingPer GB usedPer GB provisioned
ProtocolNFSBlock storage

Performance Modes (set at creation)

ModeLatencyThroughputUse Case
General Purpose (default)LowModerateWeb servers, CMS, WordPress
Max I/OHigherVery HighBig data, media processing (highly parallel)

Throughput Modes

ModeHow It WorksUse Case
BurstingScales with storage size; can burst beyond baselineVariable workloads
ProvisionedSet fixed throughput regardless of storageThroughput needs exceed what storage size provides
ElasticAuto-scales up/down based on actual I/O; up to 3 GB/s reads, 1 GB/s writesUnpredictable workloads (recommended)

Storage Tiers (Lifecycle Management)

TierAccess FrequencyCost
StandardFrequentHigher storage cost
EFS-IAInfrequentLower storage; retrieval fee
ArchiveRare (few times/year)Lowest storage cost
  • Set up lifecycle policies to auto-move files after N days of no access
  • Up to 90% cost savings by using the right tiers

Availability Modes

ModeAZ CoverageCostUse Case
Standard (Multi-AZ)Replicates across multiple AZsHigherProduction workloads (HA)
One ZoneSingle AZ; still has backupsCheaperDev/test (EFS One Zone-IA available)

Exam Tips

  • EFS = NFS; mounts to many instances across AZs simultaneously
  • Linux-only (POSIX) — not for Windows
  • No capacity planning — pay per use (auto-scales)
  • Performance modes: General Purpose (low latency) vs. Max I/O (high throughput, parallel)
  • Throughput modes: Bursting / Provisioned / Elastic (for unpredictable)
  • Storage tiers: Standard → EFS-IA → Archive; use lifecycle policies to move files
  • Multi-AZ = production; One Zone = dev/test and cheaper