EC2 Instance Storage Flashcards
What is EBS?
Elastic Block Store. It’s a network drive that you can attach to EC2 instances. You have to provision size and IOPS in advance.
How many EC2 instances can an EBS be attached to?
Typically one, though some have a multi-attach feature (IOPS provisioned instances).
When is an EBS volume deleted?
Either manually by you, or if “delete on termination” attribute is set, it’s deleted when the attached instance is. This is the default for a root volume.
How can I move a volume across AZ or region?
Snapshot it then move the snapshot. It’s recommended to detach the volume first for snapshotting, but it’s not required.
AMI vs Snapshot?
AMI is an image of an EC2 instance. It includes snapshots of attached drives (by creating hidden EBS snapshots of them), and the instance store if it has one.
“Snapshot” typically refers to an EBS volume.
How can I get an AMI?
There’s public AMI available for free; you can create an AMI from an EC2 instance; there’s a 3rd party marketplace that you can purchase them from.
What is EC2 instance store? How does it compare to EBS?
EBS volumes are network drives that have limited performance because they run over a network.
If you need a high-performance hardware disk, use EC2 instance store, it has significantly higher I/O performance. The trade-off is that it’s EPHEMERAL, you lose it if the hardware fails. Backups and replication are your responsibility. Works well for caching, scratch data, temporary content - stuff that you can rebuild if it’s lost.
What are the four EBS volume types?
- Gp2 / gp3 (SSD): general purpose SSD that balances price and performance. GP means “general purpose”. Good for a broad range of workloads.
- Io1 / io2 (SSD): highest-performance SSD for mission-critical low-latency or high-throughput workloads. IO means “provisioned iops”
- St1 (HDD): low cost HDD designed for frequently accessed, throughput-intensive workloads.
- Sc1 (HDD): lowest cost HDD drive for less frequently accessed workloads. “c” stands for “cold”.
What EBS volume type should I get if I need frequently accessed, throughput-intensive workloads + cost savings?
ST1
What EBS volume type should I get for infrequently accessed, high-throughput workloads + cost savings?
SC1
What EBS volume should I get if I need the highest possible performance?
IO2/IO1
What’s a good general purpose EBS volume type?
GP2/GP3
Can any drive be used as a boot volume?
No, only SSD drives.
Good EBS volume type for:
- low latency interactive apps
- development and test environments
gp2/gp3
Good EBS volume type for:
- big data
- data warehouses
- log processing
st1