EC2 Instance Storage Flashcards
What is EBS Volume?
Elastic Block Store
What does EBS do?
A network drive you can attach to your instances while they run
Why use EBS?
Allow your instances to persist data, even after their termination
How many instances can an EBS be mounted to?
One instance at a time
They are bound to a specific availability zone?
True
Can be attached to more then one instance?
Only after detaching from one can it be connected to another. Can be done quickly.
How can they be moved across zone?
Take a snapshot, restore snapshot to another AZ
Why do you need to provision capacity?
You get billed for that provision capacity. Capacity can be increased over time
You can attacked two EBS Volumes to one instance?
True
EBS Volumes can be left unattached an attached on demand?
True
By default, what happens a EBS when an ECS instance terminates?
The root EBS Volume is deleted
&
Any other attached EBS Volume is not deleted
What is a “snapshot”?
Make a backup (snapshot) of your EBS volume at a point in time
It necessary to detach volume to do a “snapshot”.
False. But it is recommended
What are 3 snapshot features?
- EBS Snapshot Archive
- Recycle Bin for EBS Snapshots
- Fast Snapshot Restored
What does “EBS Snapshot Archive” do?
- Move a snapshot to an “archive tier” that is 75% cheaper
- Takes within 24 to 72 hours for restoring the archive
What does “Recycle Bin for EBS Snapshots” do?
- Setup rules to retain deleted snapshots so you can recover them from an accidental deletion
- Specify retention form 1 day to 1 year
What does “Takes within 24 to 72 hours for restoring the archive” do?
- Force full initialization of snapshot to have no latency on the first use ($$$)
- Particularly helpful if snapshot is big and need to initialize an EBS volume or needs to instance out of it very quickly
- This feature costs a lot of money
What is AMI?
Amazon machine image
What does AMI do?
Customization of an EC2 instance
What is the purpose of AMI?
- You add your own software configuration, operating system, monitoring…
- Faster boot / configuration time all your software is prepackaged
AMI are built (unique) for specific region?
True but can be copied across regions.
3 different kinds of AMIs?
- A Public AMI: AWS provided
- Your own AMI: you make and maintain yourself
- An AWS Marketplace AMI: an AMI someone else made ( and potentially sells)
Where can you launch EC2 instances from?
AMIs
AMI Process (from an EC2 instance)
- Start an EC2 instance and customize it
- Stop the instance (for data integrity)
- Build an AMI - this will also create EBS snapshots
- Launch instances from other AMIs
EBS volumes are …………. with good but ………. performance.
network drives, “limited”
If you need high-performance hardware disk, use..
EC2 Instance Store
Features:
- Better I/O performance
- EC2 Instance Instance Store lose their storage if they’re stopped (ephemeral)
- Good for buffer, cache, scratch data, temporary content
- Risk of data loss if hardware fails
- Backups and Replication are your responsibility
ECS Instance Store
from an exam perspective anytime you see very high performance hardware attached volume for your EC2 Instances, think
local EC2 Instance Store.
EBS volumes comes in 6 type:
- gp2 / gp3 (SSD):
- io1 / io2 Block Express (SSD)
- st1 (HDD)
- sc1 (HDD)
General purpose SSD volume that balances price and performance for a wide variety of workloads
gp2 / gp3 (SSD)
Highest-performance SSD volume mission-critical low-latency or high-throughput workloads
io1 / io2 Block Express (SSD)
Low cost HDD volume designed for frequently accessed throughput intensive workloads
st1 (HDD)
Lowest cost HDD volume designed for less frequently accessed workloads
sc1 (HDD)
What is EBS Multi-Attach?
Attach the same EBS volume to multiple EC2 instances in the same AZ
What is Amazon EFS?
Elastic File System
What is EFS for?
Managed NFS (network file system) that can be mounted on many EC2
EFS works with EC2 instances in multi-AZ?
True