EC2 Instance Storage Flashcards
Describe EBS (Elastic Block Store) volumes?
EBS is a network drive you attach to your instances while they run. Allows you to persist data in instances, even after they’re terminated. Think of them as a network drive. Uses the network to communicate, so some latency.
Can only be be mounted to one instance at a time, except for multi-attach instances.
EBS is bound to one AZ. To move EBS data across to another AZ, you must use a snapshot.
What is the “Delete on Termination” attribute on EBS?
Controls the EBS behavior when an EC2 instance is terminated. Can be used to preserve root volume when instance is terminated.
By default, root BES volume is deleted, another others aren’t deleted.
Describe EBS snapshot
Snapshots make a backup (snapshot) of your EBS volume at a point in time.
You can copy snapshots across AZ or Region.
True or False
You must first detach an EBS volume to create a snapshot.
False.
But it is recommended.
What are Amazon Machine Images (AMI)?
Customized EC2 instances that can have their own software, configuration, OS, monitoring, etc.
Will have faster boot / config time since all software is pre-packaged.
Can be launched from a public AMI, your own AMI, or an AWS Marketplace AMI.
Describe EC2 instance stores
a high-performance hardware disk physically attached to an EC2 instance
List some pros and cons of using an instance store vs EBS volumes
Instance store pros:
- better I/O performance
- good for buffers / caches / scratch data / temp content
Cons:
- loses it’s data when instance is stopped (ephemeral)
- risk of data loss if hardware fails
- backups and replication are your responsibility
Describe EBS gp2/gp3 general purpose SSDs
cost effective storage, low-latency
system boot volumes, virtual desktops, dev and test env
1-16 TB
gp3
- 3k iops and throughput of 125 mb/s
- to 16k iops and throughput of 1000 mb/s
gp2
- older version of gp3
- the size of volume and iops are linked
Describe EBS provisioned IOPS (PIOPS) SSD (io1/io2)
For critical business apps that require sustained IOPS performance, or those that need more than 16k IOPS
Great for database workloads (sensitive to storage perf and consistency)
io1 - 64k IOPS for nitro, otherwise 32k
io2 block express - sub-ms latency and 256k max IOPS
Describe EBS hard disk drives (st1, sc1)
can’t be a boot volume
125mb to 16tb
st1 - throughput optimized
- max 500 IOPS, max throughput 500mb/s
- good for data warehouses, big data, log processing
sc1 - cold storage
- max 250 IOPS, max throughput 250mb/s
- best for infrequently accessed data
- where low cost is important
True or False
EBS multi-attach is within the io1/io2 family of EBS storage.
True.
What does EBS multi attach allow you to do?
Attach the same EBS volume to multiple EC2 instances within the same AZ.
Each instance will have full read write permissions, and must use file system that is cluster aware.
Best for:
- higher application availability in clustered Linux applications
- apps must be able to manage concurrent write operation
What data is encrypted on an EBS encrypted volume?
All is encrypted:
- data at rest
- in flight data moving between instance and volume
- all snapshots
- all volumes created from snapshot
True or False
Encrypting an EBS volume has a high impact on latency.
False. Using EBS encryption has minimal impact on latency.
EBS encryption leverages keys from where?
KMS (AES-256)