📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials AWS Solutions Architect EBS — Storage for EC2 Instances

EBS — Storage for EC2 Instances

4 min read Quiz at the end
Understand EBS volume types, when to use SSD versus HDD, EBS snapshots, and the difference between EBS and instance store.

EBS — Elastic Block Store

EBS provides persistent storage volumes for EC2 instances — like a hard drive that you attach to your virtual server. When you stop an EC2 instance, the data on EBS survives.

Teacher Note: Think of EBS like a USB hard drive plugged into your computer (EC2). You can unplug it from one computer and plug it into another. The data stays on the drive even when the computer is turned off.

EBS Volume Types

TypeTechnologyIOPSBest ForCost
gp3SSD (General Purpose)3,000-16,000Web servers, dev environments — DEFAULT choiceLow ($0.08/GB)
io2 Block ExpressSSD (Provisioned IOPS)Up to 256,000Critical databases — Oracle, SAP HANAHigh
st1HDD (Throughput)Sequential onlyBig data, Kafka logs, data warehousesLow ($0.045/GB)
sc1HDD (Cold)Sequential onlyInfrequently accessed archivesLowest ($0.015/GB)

Key EBS Facts

  • EBS volumes are locked to ONE Availability Zone — cannot attach to EC2 in a different AZ
  • Snapshots copy EBS volume data to S3 — incremental and cross-region copyable
  • Encryption at rest uses KMS keys — encrypting an existing unencrypted volume requires: create snapshot, copy snapshot with encryption, create new volume from encrypted snapshot
  • gp3 is the recommended default — independent IOPS and throughput from size

Instance Store vs EBS

FeatureInstance StoreEBS
PersistenceLOST when instance stops/terminatesSurvives stops and restarts
SpeedVERY fast (physically attached NVMe)Fast (network-attached)
Use caseTemp files, caches, scratch spaceDatabases, application files, OS
CostIncluded in instance priceSeparate charge per GB/month
Exam Tip: The exam tests: EBS is AZ-locked. To move an EBS volume to another AZ: create a snapshot, copy it to the new AZ, create a new volume from it. Remember: gp3 lets you scale IOPS independently of size — gp2 does not.
Topic Quiz · 2 questions

Test your understanding before moving on

1. A company needs to move an EBS volume from us-east-1a to us-east-1b. What is the correct process?
💡 EBS volumes are AZ-locked. The only way to move between AZs is to snapshot and create a new volume in the target AZ.
2. Which EBS volume type should you choose for a production database requiring 50,000 IOPS?
💡 io2 Block Express supports up to 256,000 IOPS for high-performance, mission-critical databases.