Section 7: EC2 Instance Storage Flashcards
What is EBS?
A network drive that you can attach to instances while they run
How many instances can EBS volumes be mounted to?
Only one and only bound to a specific availability zone.
What is EBS snapshot?
It is a back up of your EBS volume
Can transfer between region
What is EBS snapshot archive?
Move data to archive tier - 75% cheaper
Takes 24 - 72 hours to restore
What is EBS recycle bin?
Set up rules to retain accidently deleted snapshots
Retention 1 day - 1 year
What is AMI?
Amazon Machine Image
Customization of a EC2 instance
Built for specific region
Can you make your own AMI?
Yes and you can also use AWS provided ones.
What is a EC2 Instance store?
High performance hardware disk instead of EBS.
Better I/O performance
Is EC2 Instance storage better for long or short term?
Short term - lose their storage if stopped
good for cache
What are drawback of EC2 instance store?
Risk of data lost if hardware fails
Back up and replications are you responsibility
What are the EBS volume types?
gp2/gp3
io1/io2
st1
sc1
The difference between GP2 and GP3
GP2 - size of volume and IOPS is linked
GP3 - Iops and throughput can be increased independently
What is the advantage for GP2/3
Low cost, low latency
Advantage of io1/2
critical business application with sustained IOPs
Great for database workloads
can be boot volume
What do you get in an encrypted EBS volume
- Data at rest is encrypted
- Data moving between instance and volume is encrypted
- Snapshots are encrypted
- Volumes created from the snapshot
- Handled already you don’t have to do anything
What do you get in an encrypted EBS volume
- Data at rest is encrypted
- Data moving between instance and volume is encrypted
- Snapshots are encrypted
- Volumes created from the snapshot
- Handled already you don’t have to do anything
What is EFS - Elastic File System
- Managed NFS (network file system)
- Can be mounted to any EC2
- Scalable available and expensive
Use cases of EFS?
- Content management
- Web serving
- data sharing
- word press
What is EFS compatible with?
- Linux based AMI not windows
How is access controlled in EFS?
- Security groups
What file system does EFS use?
- POSIX - linux standard file api
How does EFS scale?
- Scales automatically
- pay per use
What are the two performance modes in EFS?
- Gerneral purpose - latency-sensitive use cases (web server, cms)
- Max I/O - higher latency, highly parallel (big data)
What are the two throughput modes in EFS
- Bursting
- Provisioned - set your throughput regardless of storage size
What are the two throughput modes in EFS
- Bursting
- Provisioned - set your throughput regardless of storage size
What are the two storage tiers for EFS (lifecycle management feature - move file are N days)
- Standard: for frequently accessed files
- Infrequent access: cost to retrieve files, lower price to store.
What are the classes for Availability and durability of EFS
- standard: Multi AZ, great for prod
- One Zone: One AZ, for dev, back enabled by default. ( gives you 90% discount is you use EFS one zone-IA)
Difference between EBS vs EFS?
- EBS only one AZ - will need to take snapshot to another AZ
- EFS - Can mount to 100s of instance across AZ