Instance Store — Concept
What it is
Instance Store = physical disk(s) (NVMe SSD or HDD) directly attached to the host of certain EC2 families. Provides the highest possible IOPS / lowest latency but is ephemeral.
Why it exists
Network-attached EBS adds latency; some workloads (high-perf cache, big-data scratch, NoSQL temp store) need millions of IOPS at sub-100 µs.
How it works
- Storage is tied to the host hardware, not the instance.
- Data is lost when:
- The instance is stopped or terminated
- The host fails (hardware retired)
- The instance is hibernated to a non-EBS root (rare)
- Data survives a reboot of the instance.
- Cannot be detached or moved like EBS.
- Cannot be encrypted by you (newer Nitro instances are encrypted with host-managed keys).
When you get it
- Only certain families:
i3,i3en,i4i,d2,d3,h1, somec5d,m5d,r5d,c6gd,g4dn,x1, … - Size is fixed by the instance type (e.g.
i3.16xlarge= 8 × 1.9 TB NVMe). - Free — included in instance hourly cost.
When to use vs alternatives
| Use ... | Instead of ... | When ... |
|---|---|---|
| Instance Store | EBS | You need millions of IOPS / sub-100 µs latency, can rebuild from replica |
| EBS | Instance Store | Data must persist across stop/terminate |
| Instance Store + EBS root | All EBS | Mix: ephemeral scratch on instance store, OS + persistent on EBS |
Common exam scenarios
- "Cassandra / NoSQL cluster, replicas, highest IOPS, lowest cost" → i3 / i4i Instance Store (data sharded across nodes).
- "Big data scratch / temp processing" → Instance Store on
d3/i3en. - "App stores user uploads, needs to persist after stop" → NOT Instance Store; use EBS or S3.
- "What happens to data when EC2 stops?" → Instance Store data is lost, EBS data persists.
Exam tip
The keyword "ephemeral" or "can be lost" = Instance Store. If the question mentions persistence, snapshots, or moving between instances → it's EBS.