EBS Flashcards
What is EBS?
Is a network drive that you can attach to your instances while they run, allowing instances to persist data, even on termination. An EBS is locked to an AZ
If you want to keep the data of a EC2 instance even after termination, what you need to do?
Disable the default delete on termination behavior on EBS.
How can you bring an EBS from an AZ to another?
You can make a snapshot of the EBS, that will copy all data in it, and move it to the other AZ
What are some features of EBS snapshots?
You can move to an “archive tier”, where it takes 24 to 72 hours to restore, but is cheaper.
There is a recycle bin, where the snapshot is retained even after deleted. Retention period is configurable
Fast Snapshot Restore - force full initialization of snapshot
What is AWS AMI?
AMI is a customization of a EC2 instance. You can add your own software, monitoring, etc…
It is possible to create an AMI of a running instance
What is a good case to use EC2 instance store?
When you need better I/O performance, since the disk is attached to the instance, there is no network latency.
When the data is ephemeral. When the instance is terminated, the data is lost
What are the 3 EBS volume types?
- General Purpose SSDs: cost effective storage, low-latency
- Provisioned IOPS: great for database workloads, sustained IOPS performance
- HDD
Is it possible to attach a single EBS volume to many EC2 instances?
Yes, using EBS multi-attach, since the EC2 instances are in the same AZ.
What if you want to access the same data over EC2 instances that are in different AZs?
You can use EFS (Elastic File System), it is a managed NFS, that allows to mount the same file system on many EC2 over different AZs