Section 6 - EBS (Elastic Block Store) Flashcards
What is EBS Volume?
- EBS (Elastic Block Store ) is a network drive.
- Locked to an availability zone
- provisioned storage (size in GBs and IOPS) billed for all provision capacity
Is EBS Multi-Attach possible (CCP answer)?
For CCP (Certified Cloud Practitioner) , one EBS can be only mounted to one EC2 instance. For associate level, multi-attach feature for some EBS.
What happens to EBS when the associated EC2 is terminated?
By Default, root EBS volume is deleted and other attached EBS volume is not deleted. Deletion on termination is an attribute used to control the behavior.
What does the Delete on Termination attribute on EBS do?
Controls the EBS behavior when an EC2 instance terminates. By default, root EBS is deleted and others are not deleted.
What is EBS snapshots?
EBS snapshots are a backup (snapshot) of your EBS volume at a point in time. Once snapshotted, it can be copy across AZ or Regions?
Do you need to detach an EBS volume to do a EBS Snapshot?
Although recommended to detach your EBS volume before snapshot, it is not necessary to detach volume.
How can an EBS volume be used in other AZ or Regions?
EBS Volume can’t be used directly in other AZ or Regions. EBS Snapshot needs to be taken and then restored into another region or AZ.
What is an AMI?
- AMI ( Amazon Machine Image) are customized EC2 instances with software , configuration , os, setup as you like.
- AMI allows for faster boot / configuration time
- AMI are built for a specific region
What are the types of AMI from you can launch EC2 instance from?
- A public AMI: AWS provided
- Your own AMI: you make and maintain them yourself
- AWS Marketplace AMI: an AMI someone else made ( and potentially sells)
How does the AMI work from start to end?
- Start an EC2 instance
- Customize it
- Stop the instance ( for data integrity)
- Build an AMI - this will also create EBS snapshots
- Launch instance from other AMIs
What is EC2 Image Builder?
EC2 Image Builder is used to automate the creation of Virtual Machines or container images.
- automate the creation, maintain, validate and test EC2 AMIs
- can be scheduled
- Free service ( only pay for the underlying resources)
- Use case: build monthly patched AMI
What is the basic EC2 Image Builder flow?
EC2 Image Builder -(create)-> builder EC2 Instance -(create)-> New AMI -> Test EC2 instance → AMI is distributed (can be multiple regions)
- builder EC2 Instance
- build components applied
- Test EC2 Instance
- Test suite is run
What is EC2 Instance Store?
- EC2 Instance Store is a high-performance hardware disk.
- EBS volumes are network drives with good but “limited” performance
What are the attributes of EC2 Instance Store?
- Better I/O performance
- EC2 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
- i3 → types
- i3.large, i3.xlarge, etc…
What is EFS?
EFS (Elastic File System) is a managed NFS (network file system) that can be mounted on 100s of EC2…. Linux, multi-AZ, expensive, HA