Udemy Lecture 4: EC2 Instance Storage Flashcards
What is an EBS (Elastic Block Store) Volume ?
is a network drive you can attach to your instance while they run
What does EBS do for you?
It allows your instance to persist data even after their termination
What are some rules that apply to EBS?
-They can only be mounted to one instance at a time (at the CCP level (certified cloud practitioner level, one -EBS can be only mounted to one EC2 instance))
-EBS volume are bound to a specific availability zone (to move a volume across you first need to snapshot it)
-Analogy: think of them as a “network USB stick”
EBS volume uses the ________ to communicate the instance, which means there might be a bit of latency
network
What are some aspect of EBS delete on termination attribute?
-It controls the EBS behavior when an EC2 instance terminates
-By default the root EBS volume is deleted (attribute enabled)
-By default any other attached EBS volume is not deleted (attribute disabled)
-This can be controlled by the AWS console / AWS CLI
-You can preserver the root volume when an instance is terminated with it
What is an EBS snapshot?
Make a backup (snapshot) of your EBS volume at a point in time
Can copy ______ across AZ or region (to setup a new EBS volume in a different AZ or region)
snapshots
What are the two EBS snapshots features?
- EBS snapshot archive
- Recycle Bin for EBS snapshots
What are some aspects of EBS snapshot archive?
- Allow you to move a snapshot to an “archive tier” that is 75% cheaper
- Takes within 24 to 72 hours for restoring the archive
What are some aspects of recycle bin for EBS snapshots?
-Setup rules to retain deleted snapshots so you can recover them after an accidental deletion
-Specifiy retention (from 1 day to 1 year)
What does AMI stand for?
amazon machine image
AMI are a ___________ of an EC2 instance
customization
-You add your own software, configuration, operating system, monitoring
-Faster boot/ configuration time because all your software is pre-packaged
AMI are built for a specific ______ & can be copied across _______
regions
What are the different AMIs that you can launch an EC2 from?
- A public AMI: like AWS provided
-Your own AMI: you make & maintain them yourself - An AWS marketplace AMI: an AMI someone else made (& potentially sells)
What is the AMI process from an EC2 instance?
-Start an EC2 instance & customize it
-Stop the instance (for data integrity)
-Build an AMI - this wil also create EBS snapshots
-Launch instances from other AMIs