EC2 Instance Storage Flashcards
What is an EBS
Elastic Block Store
EBS Volume is a network drive you can attach to your EC2 instance while they run
What does an EBS allow?
For instance data to persist after termination
In how many instances can EBS volumes be attached at the same time?
Only one
Are EBS bound to specific AZ?
Yes
EBS Analogy?
Network USB stick
Why is there latency for an EBS volume?
Because it is a network drive
Benefit of using an EBS volume and many EC2 instances?
Can detach & attach quickly to different EC2
Downside of EBS in regard to AZ?
They are locked to 1 AZ at a time.
If you want to move it to another AZ you need to snap shot it and use the snap shot
How do you get billed for EBS volumes?
Provisioned Capacity (size in GBs & IOPS)
Can increase capacity over time
EBS and different EC2
Cannot attach 1 EBS to 2 instances at a time but can attach 2 EBS to 1 instance.
Do EBS have to be attached?
No, they can remain unattached
Delete on Termination attribute
Root volume is deleted by default when EC2 is terminated.
Any other EBS (other than root) is not
EBS Snapshot
Backup at point in time
Can you copy snapshots across AZ or Regions?
Yes
How do you transfer an EBS volume from one AZ or Region to another?
Snapshot it first
What is EBS Snapshot Archive?
You archive your snapshot (tier) and it is 75% cheaper
How long does EBS Snapshot Archive take to restore?
24 to 72 hours
What is Recycle Bin for EBS Snapshots
Rule to retain deleted snapshots for recovering them later
How long can you retain EBS Snapshots in Recycle Bin?
1 day to 1 year
What is Fast Snapshot Restore (FSR)
Force full initialisation of snapshot to have no latency on first use ($$$)
When do you use Fast Snapshot Restore (FSR)?
If your snapshot it big and it takes time to initialise
What does AMI mean?
Amazon Machine Image
What is an AMI?
Customisation of an EC2 instance
What can you control with AMI?
OS, config, monitoring
What are some benefits of using an AMI when building an EC2 machine?
Faster boot / config time - everything is pre packaged
What do you do if you want to move an AMI across region?
First you create it to a specific region, and then copy it across another region
Which AMI can you lunch instances from?
Public AMI (AWS Provided)
Own AMI (make and maintain it)
Marketplace AMI (someone else made it)
AMI Process (from EC2)
Start EC2 and customise it
Stop instance
Build AMI - creates EBS snapshots
Lunch instance from other AMI
What is EC2 Instance Store?
It is a physical storage drive that can be attached to your EC2’s physical hardware
What is EBS performance?
It is limited
Which storage do you use if you want high performance?
EC2 Instance Store
Unlike EBS (Elastic Block Store) what happens to EC2 Instance store when the instance is terminated?
It loses all their storage (ephemeral)
The physical drive gets detached and released so it can be attached to a new EC2 instance
Good use case for EC2 Instance Store?
Buffer
Cache
Scratch data
temporary content
Which is better for longterm storage? EBS or EC2 instance store?
EBS
What is a risk that EC2 instance store has?
Data loss if hardware fails
How many types of EBS are there?
6
What are gp2 / gp3 (SSD) EBS volumes used for?
General purpose SSD volume that balances price and performance a wide variety of workload
What are io 1 / io2 (SSD) EBS volumes used for?
Highest-performance SSD volume for mission-critical low-latency or high-throughput workloads
What is st 1 (HDD) EBS volume used for
low cost HDD volume designed for frequently accessed, throughput-intensive workload
What is sc 1 (HDD) EBS volume used for
lowest cost HDD volume designed for less frequently accessed workloads
What are EBS Volumes characterised in?
Size
Throughput
IOS (I/O Ops Per Sec)
Which EBS volume types can be used as boot volumes?
gp2/gp3 & io1/io2 ONLY
gp2/gp3 use cases
Coste efective storage, low-latency
System boot volumes, VMs, Dev and test env
Storage size of gp2/gp3
1 GiB - 16 TiB
What is the baseline of IPS and throughput of gp3?
3000 IOPS and 12 MiB/s throughput
How high can IOPS and Throughput go for gp3?
16000 IOPS, and 1000 MiB/s throughput
What is the baseline of IPS and throughput of gp2?
3000
Is size of volume and IOPS linked or independent for gp2?
Linked, with max IOPS of 16000
what does 3 IOPS per GB mean at 5,334 GB for gp2?
max IOPS it can do
What are provisioned IOPS used for?
Critical business applications with sustained IOPS performance