EC2 Instance Storage Flashcards
(25 cards)
What’s an EBS volume?
Network drive you can attach to your instances while they run, allows your instances to persist data even after termination
If you have an EBS volume in one AZ, can you move it to a different AZ?
No
What is an EBS snapshot?
Backup of your EBS volume at a point in time, can copy snapshots across AZ region
EBS snapshot archive
Move a snapshot to an archive tier that is 75% cheaper
Recycle Bin for EBS snapshots
Rules to retain deleted snapshots so you can recover them after accidental deletion (1 day to 1 year retention)
Fast snapshot restore
Forces full initialisation of snapshot to have no latency on first use (costs lots of money)
What is AMI?
Amazon Machine Image (customisation of EC2 instance, add your own software, config, OS )
AMI process
- Start EC2 instance and customise
- Stop the instance for data integrity
- Build an AMI (this will create snapshots)
- Launch instances from other AMIs
EC2 Instance store
- high performance hardware disk
- better I/O performance
- lose their storage if they’re stopped (ephemeral)
What are EC2 instance stores good for?
- Buffer, cache, scratch data, temporary content
- high performance I/O
How are EBS volume types characterised?
Size, throughput, IOPS
Which EBS volume types can be used as boot volumes?
gp2/gp3 and io1/io2 block express
General purpose SSD (gp2/gp3)
- cost effective storage, low latency
- system boot volumes
- gp3 is newer version (can independently set IOPS whereas gp2 its linked together)
Provisioned IOPS (PIOPS) SSD (io1/io2)
- critical business applications with sustained IOPS performance
- great for database workloads sensitive to storage performance
- support EBS multi attach
Hard Disk Drives (HDD) (st1/sc1)
- cannot be a boot volume
- st1 = throughput optimised HDD for big data, data warehouses, log processing
- sc1 = cold HDD for data infrequently accessed, low cost
EBS multi attach
attach same EBS volume to multiple EC2 instances in the same AZ (only available io1/io2)
EBS multi attach use case
achieve higher application in clustered linux applications (must be in same AZ, up to 16 instances)
Amazon EFS (elastic file system)
Managed network file system that can be mounted on many EC2, works with EC2 instances in multi-AZ
EFS use cases
Content management, web serving, data sharing, wordpress
EFS performance classes
- EFS scale (scale up and down automatically)
- Performance mode
- Throughput mode
EFS storage classes
- Standard (frequently accessed files)
- Infrequent access (cost to retrieve files)
- Archive (rarely accessed data)
EBS volumes
- one instance (except multi attach io1/io2)
- locked to AZ level
- gp2: IO increases if disk size increases
- gp3/io1 can increase IO independently
Migrate EBS volume across AZ
- take a snapshot
- restore snapshot to another AZ
- EBS backups use IO and you shouldn’t run them while application is handling traffic
True or false? Root EBS volumes of instances get terminated by default if EC2 instance gets terminated
True but you can disable it