SAA-C03Chapter 119 of 189Objective 3.1

EC2 Instance Store Volumes

This chapter covers EC2 Instance Store volumes, a high-performance, ephemeral block storage option directly attached to the physical host of an EC2 instance. Understanding instance stores is critical for the SAA-C03 exam because they appear in questions about high-performance storage, temporary data, and cost optimization. Approximately 10-15% of storage-related exam questions involve instance stores, often testing your ability to differentiate them from EBS and choose the right storage for specific scenarios.

25 min read
Intermediate
Updated May 31, 2026

Instance Store: A Whiteboard vs. EBS: A Notebook

Imagine you're a solutions architect giving a presentation. You have two ways to take notes: a whiteboard and a notebook. The whiteboard is physically attached to the room, incredibly fast to write on, and requires no setup. However, when the presentation ends and you leave the room, the whiteboard is erased — you lose everything. The notebook, on the other hand, is separate from the room. You can carry it with you, and even if the room is closed or the building is locked, your notes remain. Writing in the notebook is slower because you have to open it, find the page, and write by hand, but it's persistent. In AWS terms, the whiteboard is an instance store volume: directly attached to the physical server hosting your EC2 instance, providing ultra-low latency and high throughput, but data is lost when the instance stops, terminates, or the underlying hardware fails. The notebook is an Amazon EBS volume: a network-attached block storage device that persists independently of the instance. EBS volumes survive instance stops and terminations (unless configured otherwise) but have higher latency because data travels over the network. The key trade-off: performance versus persistence. Instance stores excel for temporary, high-speed data like caches, buffers, or scratch data. EBS is for durable, critical data that must survive instance lifecycle events. The exam tests your ability to choose the right storage based on workload requirements for durability, performance, and cost.

How It Actually Works

What is an EC2 Instance Store?

An EC2 Instance Store provides temporary block-level storage for an EC2 instance. It is physically attached to the host computer that runs the instance, offering very high I/O performance and low latency. Unlike Amazon EBS volumes, instance store volumes are ephemeral — their data persists only during the lifetime of the associated instance. If the instance is stopped, terminated, or the underlying hardware fails, all data on the instance store volumes is lost.

Instance stores are ideal for temporary data that changes frequently, such as buffers, caches, scratch data, and temporary files. They are also used for data that can be easily replicated, like a replicated database node or a web server's session data.

How Instance Store Volumes Work Internally

Instance store volumes are NVMe (Non-Volatile Memory Express) or SATA-based SSDs or HDDs, depending on the instance type. They are directly attached to the host server's PCI Express bus, bypassing the network stack entirely. This direct attachment provides significantly lower latency and higher throughput compared to EBS, which is a network-attached storage service.

When an EC2 instance is launched, the instance store volumes are automatically created and attached if the instance type supports them. The volumes are formatted with a filesystem (typically ext4 or XFS) and mounted at specified mount points (e.g., /dev/xvdb, /dev/xvdc). The instance can access these volumes as standard block devices.

The data on instance store volumes is not replicated across multiple physical hosts. If the host fails, the data is lost. AWS does not provide any built-in replication or backup for instance store data. The responsibility for data durability and backup lies entirely with the user.

Key Components, Values, Defaults, and Timers

Instance Types: Not all EC2 instance types support instance store volumes. Supported types include M5d, M6gd, C5d, C6gd, R5d, R6gd, I3, I3en, D2, D3, H1, P3dn, G4dn, and others. The 'd' suffix often indicates instance store support.

Volume Size: Instance store volumes come in fixed sizes determined by the instance type. For example, a c5d.large has 1 x 50 GB NVMe SSD, while an i3.8xlarge has 4 x 1,900 GB NVMe SSD.

Performance: Instance store performance varies by instance type. NVMe SSDs can achieve up to 3.3 million IOPS and 16 Gbps throughput on certain instances.

Persistence: Data persists only during the instance's lifetime. If the instance is stopped (not terminated), instance store data is lost. If the instance is rebooted, data persists.

Encryption: Instance store volumes can be encrypted at rest using an encryption key stored in the instance's memory. This is handled by the operating system or application, not by AWS. AWS does not provide native encryption for instance stores.

Cost: Instance store volumes are included in the instance price — there is no additional charge for them. However, you pay for the instance regardless of whether you use the instance store.

Configuration and Verification Commands

To list instance store volumes on a Linux instance, use:

lsblk

This shows all block devices, including instance stores (e.g., /dev/nvme0n1, /dev/nvme1n1).

To check the filesystem type and mount point:

df -h

To mount an instance store volume (if not auto-mounted):

mkfs -t ext4 /dev/nvme1n1
mkdir /mnt/instancestore
mount /dev/nvme1n1 /mnt/instancestore

To verify NVMe device details:

nvme list

Interaction with Related Technologies

EBS: Instance stores are often used in conjunction with EBS. For example, an instance might boot from an EBS volume (root volume) and use instance store volumes for high-performance temporary data.

Auto Scaling: Auto Scaling groups can be configured to launch instances with instance store volumes. However, because instance store data is lost on instance termination, it is critical to design applications to not rely on persistent state in instance stores.

Elastic Load Balancing: For web servers, session data can be stored in instance stores if the load balancer uses sticky sessions. However, if an instance is replaced, sessions are lost. A better practice is to use ElastiCache or DynamoDB.

Amazon S3: Instance stores can be used as a cache for data stored in S3. For example, a data processing job might download data from S3 to instance store for fast processing.

Amazon RDS: RDS does not use instance stores for database storage. It uses EBS volumes. However, some RDS instance types (like db.r5d) use NVMe SSDs for temporary storage.

Exam-Relevant Details

Instance store data is lost if the instance is stopped, terminated, or the underlying host fails.

Instance store data persists across reboots.

Instance store volumes cannot be detached and reattached to another instance. They are fixed to the physical host.

The number and size of instance store volumes vary per instance type. You cannot add instance store volumes after launch; you must choose an instance type that supports them.

Instance store volumes are included in the instance price.

For high I/O requirements, instance stores are often the best choice, but they require data replication or backup strategies for durability.

On Nitro-based instances, instance store volumes are NVMe and are automatically enumerated. On Xen-based instances, they appear as /dev/xvd* devices.

Walk-Through

1

Select an instance type with instance store

When launching an EC2 instance, you choose an instance type that supports instance store volumes. For example, a c5d.large has one 50 GB NVMe SSD. The instance type determines the number, size, and performance of the instance store volumes. You cannot add instance store volumes later; they must be included at launch. The instance type is selected based on workload requirements. For high I/O workloads, choose an instance type with sufficient instance store capacity. The instance store volumes are automatically created and attached when the instance is launched.

2

Instance launches and instance store volumes attach

When the instance launches, the hypervisor (Nitro or Xen) automatically creates the instance store volumes on the physical host. These volumes are directly attached to the instance via the PCI bus. The operating system detects them as block devices (e.g., /dev/nvme0n1). On Nitro-based instances, the volumes are NVMe and support advanced features like multiple queues for high performance. On Xen-based instances, they appear as /dev/xvdb. The volumes are unformatted and unmounted initially.

3

Format and mount the instance store volumes

After launch, the instance must format and mount the instance store volumes. This can be done manually or via user data scripts. For example, a user data script can create a filesystem (e.g., ext4) and mount the volume at a desired mount point (e.g., /mnt/scratch). It is critical to format the volume before use. If the instance is rebooted, the volume remains formatted and mounted. However, if the instance is stopped or terminated, the data is lost. Therefore, any data that must persist should be backed up or stored elsewhere.

4

Use the instance store for high-performance I/O

Once mounted, applications can read and write to the instance store volume. The volume provides extremely low latency (microseconds) and high throughput (up to 16 Gbps for some types). This is ideal for temporary data that requires fast access, such as database replication logs, cache data, or intermediate processing results. The application must be designed to handle data loss if the instance is stopped or fails. For example, a distributed system might replicate data across multiple instances to tolerate instance failure.

5

Instance termination or stop causes data loss

When the instance is stopped or terminated, the instance store volumes are destroyed. The underlying physical storage is released and may be reused for another instance. If the instance is rebooted, the data persists because the instance remains on the same host. However, if the host fails, the data is lost. AWS does not provide any mechanism to recover instance store data after termination or host failure. Therefore, any critical data must be backed up to durable storage (e.g., S3, EBS) before the instance is stopped or terminated.

What This Looks Like on the Job

Enterprise Scenario 1: High-Performance Database Caching

A large e-commerce company runs a MySQL database on an RDS instance. To improve read performance, they deploy a caching layer using Memcached on EC2 instances with instance store volumes. The Memcached instances use instance store SSDs for extremely low latency data access. The cache data is temporary and can be rebuilt from the database if lost. The company uses Auto Scaling to manage the cache cluster. When an instance is terminated, the cache is lost, but the load balancer directs traffic to remaining instances. The cache is repopulated as new requests come in. This design provides high performance at low cost because instance store volumes are included in the instance price. The key consideration is that the cache must be stateless from a durability perspective.

Enterprise Scenario 2: Video Transcoding Scratch Space

A media processing company uses AWS Batch to transcode video files. Each job runs on an EC2 instance with instance store volumes. The source video is downloaded from S3 to the instance store, transcoded, and the output is uploaded back to S3. The instance store provides the high throughput needed for reading and writing large video files. After the job completes, the instance is terminated, and the instance store data is lost. This is acceptable because the source and output are stored in S3. The company uses instance types like c5d.4xlarge with NVMe SSDs to achieve fast processing. The cost is minimized because instance store volumes are free. The main challenge is ensuring that the instance store has enough capacity for the largest video files.

Enterprise Scenario 3: Real-Time Analytics with Spark

A financial services firm runs Apache Spark clusters on EC2 for real-time fraud detection. The Spark executors use instance store volumes for intermediate shuffle data. Shuffle data is temporary and can be recomputed if lost. Using instance store SSDs dramatically reduces shuffle times compared to EBS. The firm uses I3 instances with high-performance NVMe SSDs. The cluster is managed by Amazon EMR, which automatically configures instance store volumes for HDFS and shuffle. If an instance fails, the data is lost, but Spark's fault tolerance recomputes the lost partitions. The firm monitors instance health and uses Spot Instances to reduce costs. The key trade-off is performance versus the risk of losing shuffle data, but Spark's design handles this gracefully.

How SAA-C03 Actually Tests This

SAA-C03 Exam Focus: EC2 Instance Store

The SAA-C03 exam tests your understanding of instance stores primarily in the context of storage performance, durability, and cost. The relevant objective is Domain 3: High Performance, Objective 3.1: Determine high-performing and/or scalable storage solutions. Questions often require you to choose between instance store and EBS based on workload requirements.

Common Wrong Answers and Why Candidates Choose Them: 1. 'Instance store volumes persist when the instance is stopped.' This is wrong because instance store data is lost on stop. Candidates confuse 'stop' with 'reboot'. The exam emphasizes this distinction. 2. 'Instance store volumes can be detached and reattached to another instance.' This is false; they are physically attached to the host. Candidates think they behave like EBS volumes. 3. 'Instance store volumes are replicated across multiple Availability Zones.' This is false; they are not replicated at all. Candidates may think AWS provides durability by default. 4. 'Instance store volumes are charged separately.' They are included in the instance price. Candidates might think they are similar to EBS in billing.

Specific Numbers and Terms That Appear on the Exam: - The term 'ephemeral storage' is used synonymously with instance store. - Instance types with 'd' suffix (e.g., m5d, c5d, r5d) indicate NVMe instance store. - Instance store volumes are NVMe or SATA SSDs/HDDs. - Data persists on reboot but not on stop/termination/host failure. - Instance store volumes are included in the instance price.

Edge Cases and Exceptions: - Some instance types (e.g., i3) have NVMe instance store that supports hardware encryption. However, AWS does not manage encryption; it must be done at the OS level. - On Nitro-based instances, instance store volumes are NVMe and are automatically named /dev/nvme0n1, /dev/nvme1n1, etc. On Xen-based instances, they appear as /dev/xvdb, /dev/xvdc. - If an instance is stopped and started, it may be placed on a different physical host, resulting in data loss. However, if the instance is stopped and then started again, the instance store volumes are new and empty.

How to Eliminate Wrong Answers: - If the question requires data persistence beyond the instance lifecycle, eliminate instance store. - If the question requires high I/O performance with low cost, instance store is often the best choice. - If the question mentions 'temporary data', 'cache', 'scratch', or 'buffer', instance store is likely the answer. - If the question mentions 'replication' or 'durability', EBS or S3 is better.

Key Takeaways

Instance store data is lost when the instance is stopped, terminated, or the underlying host fails.

Data persists across reboots.

Instance store volumes are included in the instance price.

Only certain instance types (e.g., those with 'd' suffix, I3, D2) support instance store volumes.

Instance store volumes cannot be detached and reattached to another instance.

Instance store is ideal for temporary data like caches, buffers, scratch data, and replicated data.

On Nitro-based instances, instance store volumes are NVMe and appear as /dev/nvme*.

AWS does not provide encryption for instance store volumes; encryption must be handled at the OS level.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

EC2 Instance Store

Data is ephemeral; lost on stop, terminate, or host failure

Directly attached to the physical host; very low latency

Fixed size and number determined by instance type

Included in instance price; no additional cost

No built-in replication or backup

Amazon EBS

Data persists independently of instance lifecycle

Network-attached; higher latency than instance store

Size can be changed after creation (modification)

Charged per GB-month and I/O operations

Supports snapshots, replication, and encryption

Watch Out for These

Mistake

Instance store data persists when an EC2 instance is stopped.

Correct

Instance store data is lost when the instance is stopped. Data only persists across reboots. Stopping the instance terminates the instance store volumes.

Mistake

Instance store volumes can be detached and reattached to another instance.

Correct

Instance store volumes are physically attached to the host server and cannot be detached. They are tied to the instance's lifecycle.

Mistake

Instance store volumes are automatically replicated across multiple Availability Zones.

Correct

Instance store volumes are not replicated. They reside on a single physical host. If the host fails, data is lost.

Mistake

Instance store volumes are billed separately like EBS volumes.

Correct

Instance store volumes are included in the instance price. There is no additional charge for them.

Mistake

All EC2 instance types support instance store volumes.

Correct

Only certain instance types (e.g., those with 'd' suffix, I3, D2) support instance store volumes. Most general-purpose types like t2.micro do not.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

Does instance store data persist when I reboot my EC2 instance?

Yes, instance store data persists across reboots. Reboots keep the instance on the same physical host, so the instance store volumes are preserved. However, if you stop and start the instance, the data is lost because the instance may be placed on a different host.

Can I add instance store volumes to an existing EC2 instance?

No, instance store volumes can only be added at launch time. You must choose an instance type that supports instance store volumes. After launch, you cannot attach additional instance store volumes. However, you can attach EBS volumes at any time.

Are instance store volumes backed up automatically?

No, AWS does not automatically back up instance store volumes. You are responsible for backing up any critical data. You can use scripts to copy data to S3 or EBS snapshots periodically.

How do I know which instance types have instance store?

Instance types with a 'd' suffix (e.g., m5d, c5d, r5d) have NVMe instance store. Also, I3, I3en, D2, D3, H1, and some GPU instances have instance store. Check the AWS documentation for specific instance type details.

Can I use instance store volumes as root volumes?

Yes, some instance types allow instance store-backed AMIs where the root device is an instance store volume. However, this is less common. Most modern instances use EBS-backed root volumes. Instance store-backed instances cannot be stopped; they can only be terminated or rebooted.

What is the performance difference between instance store and EBS?

Instance store provides significantly lower latency (microseconds) and higher IOPS (up to millions) because it is directly attached. EBS is network-attached, so it has higher latency (milliseconds) and lower maximum IOPS per volume (up to 256,000 for io2 Block Express).

How do I encrypt data on an instance store volume?

Encryption must be implemented at the operating system level. You can use tools like LUKS (Linux Unified Key Setup) to encrypt the filesystem. AWS does not provide native encryption for instance store volumes.

Terms Worth Knowing

Ready to put this to the test?

You've just covered EC2 Instance Store Volumes — now see how well it sticks with free SAA-C03 practice questions. Full explanations included, no account needed.

Done with this chapter?