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
What is EC2 image builder?
Used to the creation of virtual machines or container images
-Automate the creation, maintain, validate & test EC2 AMIs
-Can be run on a schedule (weekly, or whenever packages are updated,etc)
EBS volumes are network drives with good but “______]” performance
limited
If you need a high performance hardware disk use _________
EC2 instance store
-Can be used for better I/O performance
-EC2 instance store lose their storage once the EC2 is terminated (so they are ephemeral storage- not good for long term data storage)
-Good for buffer/cache/ scratch data/ temporary content
-If the hardware fails then the data will be loss (so backup & replication are your responsibility)
When an instance has very high read & write IOPS (like 100,000 or millions) means it has local ________
EC2 instance store
What is EFS?
is managed NFS (network file system) that can be mounted on 100s of EC2
EFS works with linux EC2 instances with _________
multi-AZ
What is the difference between EBS & EFS?
EBS volume can only attach to one instance in one AZ & if you wanted to move the EBS into another AZ then need to create a snapshot of your EBS & restore that snapshot into a new AZ
EFS shares everything that is mounted to it so if you have many instances in different AZ, you still mount to the same EFS (& see the same files) with the EFS mount target
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 file to EF-IA based on the last time they were accessed
-Can enable EFS-IA with lifecycle policy
Ex. can set it to move files that havent been accessed for 60 days to EFS-IA
What is AWS responsible for related to EC2 storage?
-Infrastructure
-Replication for data for EBS volumes & EFS drives
-Replacing faulty hardware
-Ensuring their employee dont have access to your data
What are you responsible for related to EC2 storage?
-Setting up backup/ snapshot procedures
-Setting up data encryptions
-Responsibility for nay data on the drives
-Understanding the risk of using EC2 instance store
What are the two different 3rd party high performance file system on AWS?
- FSx for lustre
- FSx for windows file server
What is Amazon FSx?
A fully managed, highly reliable & scalable window native shared file system
-Built on windows file server
-Supports SMB protocol & windows NTFS
Integrated with mircosoft active directory & can be access from AWS or your on premise infrastructure
What is FSx for lustre?
A fully managed, high performance, scalable file storage for high performance computing (HPC
-Can run machine learning, analytics, video procressing, financial modeling, etc
-Scales up to 100s GB/s millions of IOPS, sub-ms latencies
You cannot use AMls to add ___________. IP addresses are added to an instance as you create it.
your own IP addresses.
EC2 Instance Store has a better I/O performance, but data is lost if: ______________, or when the underlying disk drive fails.
the EC2 instance is stopped or terminated