EC2-Instance-Storage Flashcards
An ____ volume is a network drive you can attach to your instances while they run.
It allows your instances to persist data, even after their termination.
Elastic Block Store (EBS)
An EBS volume can only be mounted to one instance at a time (at the CCP level).
They are bound to a specific ____.
availability zone
Because an EBS volume is a network drive:
- it uses the network to communicate with the instance, so there might be some ____.
- it can be detached from an EC2 instance and attached to another quickly
latency
Since a EBS volume is locked to an availability zone, you must create a ____ first if you want to move it across AZs.
snapshot
You must ____ an EBS when you create it by selecting the GBs and IOPS you want.
provision
Because it is provisioned, you get billed for all provisioned capacity.
You can increase the capacity of the volume over time.
EBS - Delete on Termination attribute
It controls the EBS behaviour when an EC2 instance is terminated.
- By default, the ____ EBS volume is deleted (attribute selected)
- By default, ____ EBS volume is not deleted (attribute disabled)
This attribute can be controlled by the ____ / ____.
Use Case: preserve root volume when instance is terminated
root
any other attached
AWS console / AWS CLI
True/False: You can copy EBS snapshots across AZ or Region.
True
It is not necessary to detach a volume to do a ____, but it is recommended.
snapshot
Moving an EBS snapshot to an ____ tier can be 75% cheaper.
archive
Restoring an EBS snapshot from archive can take __ to __ hours.
24 to 72
Using a ____ for EBS snapshots, you can setup rules to retain deleted snapshots.
You can specify a retention from 1 day to 1 year.
recycle bin
Using ____ forces full initialization of a snapshot to have no latency on the first use.
Very useful for restoring very large snapshots, but is expensive.
Fast Snapshot Restore (FSR)
AMI’s are a ____ of an EC2 instance where you can add your own software, configuration, OS, etc.
customization
AMI’s have a faster boot / configuration time because all your software is ____.
pre-packaged
An AMI is built for a specific ____.
region (and can be copied across regions)
What are the 3 types of AMI’s you can launch an EC2 instance from?
- a public AMI: AWS provided
- your own AMI: you make and maintain them
- AWS marketplace AMI: an AMI someone else made (and potentially sells)
The process of building an AMI:
- Start an EC2 instance and customize it (loading software, etc)
- Stop the instance (for data integrity)
- Build an AMI – this will also create EBS snapshots
- Launch instances from other AMIs
If you need a high-performance hardware disk for your EC2, use an EC2 ____ instead of an EBS volume.
instance store - this is a hard drive attached to the physical server where the EC2 is housed
The downside to an EC2 instance store is that it ….?
loses its data when the EC2 instance is stopped. This is called ephemeral storage.
The use cases for EC2 instance ____ are buffers, cache, scratch data, temporary content, etc. (short term use).
stores
One risk of EC2 instance stores is data loss from ____ failures.
Backup and replication are your ____.
hardware
responsibility
EBS Volumes come in 6 types:
- gp2 / gp3 (SSD): General purpose SSD volume that balances price and performance for a wide variety of workloads
- io1 / io2 Block Express (SSD): highest-performance SSD volume for mission-critical low-latency or high-throughput workloads
- st1 (HDD): Low cost HDD volume designed for frequently accessed, throughput-intensive workloads
- sc1 (HDD): Lowest cost HDD volume designed for less frequently accessed workloads
EBS volumes are characterized in Size, Throughput and IOPS.
With EBS volumes, only gp2/gp3 and io1/io2 Block Express can be used as ____ volumes.
boot