EC2 instance storage Flashcards
What is EBS Volume
Elastic Block Store 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
They can only be mounted to one instance at a time
They are bound to a specific availability zone
Essentially a network USB stick
How many GB do you get with EBS (Elastic Block Store) on free tier
30 Gb of EBS storage of type general purpose
What is an EBS delete on termination attribute
Controls the EBS behavior when an EC@ instance terminates
By default, the root EBS volume is deleted(attribute enabled)
By default, any other attached EBS volume is not deleted (attribute disabled)
Why would you use the Delete on Termination attribute
to preserve root volume when instance is terminated
What is a EBS Snapshot
A backup of your EBS volume at a point in time
Not necassary to detach volume to do snapshot, but recommended
Can copy snapshots across region
What does AMI stand for and what does it do?
Amazon Machine Image - Customization of an EC2 instance
add own software, config, operating system, monitoring etc
Faster boot/ confi time because all your software is pre-packaged
What type of AMI are there
Public
Your own AMI
AWS marketplace AMI
Describe the AMI Process (from an EC2 instance)
Start an EC2 instacne and customize it
Stop the instance (for data integrity)
Build an AMI-this will also create EBS snapshots
Launch instances from other AMIs
What is an EC2 image builder
Automates the creation of Virtual Machines or container images
What is an EC2 instance store
Physical hardware attached to a server that you can use
What of the benefits of the EC2 instance store
Better I/O performance
Good for buffer / cache / scratch data / temp content
What are the cons of using EC2 instance store
Risk of data loss if hardware fails
EC2 instance store lose their storage if they’re stopped (ephemeral)
Backups and replication are your responsiblity
What is Elastic File System (EFS)
Managed NFS (Network File System) than can be mounted onto 100s of EC2
Works only on Linux EC2 instances in multi-AZ
Highly available, scalable, expensive, pay per use, no capacity planning
What is EFS infrequent Access (EFS-IA)
Storage class that is cost-optimized for files not accessed every day
Up to 92% lower cost compared to EFS standard
EFS will automatically move your files to EFS-IA based on the last time they were accessed
Enable EFS-IA with a Lifecycle Policy
Transparent to the app accessing EFS
what is Amazon responsibility when it comes to EC2 storage
Replication for data for EBS volumes and EFS drives
Replacing faulty hardware
Ensuring their employees cannot access your data
Infrastructure