Amazon Elastic Block Store (Amazon EBS) provides persistent block storage volumes for use with Amazon EC2 instances. For AWS certification exams, the key is to recognize when a workload needs a block device, how volume performance is selected, and how EBS behaves across Availability Zones, snapshots, and encryption.
What Amazon EBS does
An EBS volume behaves like a virtual disk that you attach to an EC2 instance. You format it with a file system or use it as a raw block device. Unlike instance store, EBS data is designed to persist independently of the host instance, subject to the volume’s lifecycle and DeleteOnTermination configuration.
EBS volumes are created in a specific Availability Zone and can be attached to supported EC2 instances in that same AZ. EBS automatically replicates volume data within its AZ to protect against failure of an individual hardware component; this is not cross-AZ replication.
Choose the right EBS volume type
| Type | Best fit | Exam clue |
|---|---|---|
| gp3 | General-purpose SSD for a broad range of workloads; performance can be provisioned independently of capacity. | Balanced price and performance for boot volumes, development, and many databases. |
| gp2 | Previous-generation general-purpose SSD with performance tied to volume size. | Existing deployments; compare with gp3 for more flexible performance. |
| io2 / io2 Block Express | Provisioned IOPS SSD for demanding, I/O-intensive workloads that need consistently high performance and durability. | Mission-critical databases with very high IOPS requirements. |
| st1 | Throughput-optimized HDD for frequently accessed, large, sequential workloads. | Big-data processing or log workloads where throughput matters more than small random I/O. |
| sc1 | Cold HDD for infrequently accessed, throughput-oriented data. | Lowest-cost HDD option for less frequently accessed data. |
Do not choose an HDD volume for a latency-sensitive transactional database. For IOPS-intensive workloads, compare SSD options and the workload’s actual performance requirements.
Availability Zones, attachment, and Multi-Attach
- An EBS volume belongs to one AZ. An EC2 instance normally must be in that same AZ to attach it.
- To move data to another AZ, create a snapshot and create a new volume from that snapshot in the destination AZ.
- EBS Multi-Attach is supported for specified io1 and io2 volumes and compatible instances; it is not a general feature of every EBS volume type. Applications and file systems must be designed for concurrent access.
- Instance store is physically attached ephemeral storage; EBS is network-attached persistent block storage.
Snapshots and backup
An EBS snapshot is a point-in-time backup of a volume. Snapshots are incremental: after the first snapshot, only changed blocks are newly stored. A snapshot can be used to create new volumes, including in a different AZ. To use a snapshot in another Region, copy the snapshot to that Region first.
Use Amazon Data Lifecycle Manager or AWS Backup to automate backup schedules and retention. A snapshot is not the same as a live, synchronous cross-AZ replica, and restoring a volume from a snapshot may require initialization before it reaches its expected performance.
Encryption with AWS KMS
EBS encryption protects data at rest, data moving between the EC2 instance and EBS, and snapshots created from encrypted volumes. EBS uses AWS KMS keys. You can use the AWS managed key for EBS or a customer managed KMS key when you need control over key policies, rotation, and access auditing.
- Snapshots of encrypted volumes are encrypted.
- Volumes created from encrypted snapshots remain encrypted.
- To encrypt an existing unencrypted volume, create a snapshot and create a new encrypted volume from it, or copy the snapshot with encryption enabled.
- Cross-account or cross-Region encrypted snapshot workflows require the appropriate KMS permissions and key access.
Modify and monitor EBS
Elastic Volumes operations allow supported volume attributes such as size, type, and performance settings to be modified without detaching the volume in many cases. Monitor volume metrics with Amazon CloudWatch and select capacity and performance based on measured workload demand rather than guessing.
Common AWS exam traps
- Need a persistent disk for EC2: consider EBS, not instance store.
- Need a volume in another AZ: snapshot, then create a new volume in the target AZ.
- Need a point-in-time backup: EBS snapshot; use AWS Backup or Data Lifecycle Manager for policy-based automation.
- Need very high, provisioned IOPS: evaluate io2 rather than assuming gp3 is sufficient.
- Need shared concurrent attachment: verify io1/io2 Multi-Attach eligibility and application-level consistency requirements.
- Need encryption: use EBS encryption with KMS and verify key permissions, especially for copied or shared snapshots.
Test yourself
Question: A company must move the data on an EBS volume from one Availability Zone to another. Which approach meets this requirement?
- Attach the existing volume to an instance in the other AZ.
- Create a snapshot and create a new volume from it in the destination AZ.
- Enable Multi-AZ directly on the volume.
- Convert the volume to an S3 bucket.
Show answer and explanation
Correct answer: B. EBS volumes are AZ-scoped. A snapshot can be used to create a new volume in another AZ. Multi-AZ is not a switch that changes an existing volume’s AZ.
Related AWS topics
EBS Snapshots · Instance Store vs EBS · EBS Volume Types · Amazon EFS Storage Classes · AWS Backup