EC2 - Instance Storages Flashcards
What is EBS?
Elastic Block Store
What is an EBS Volume?
Network drive that can be attached to instances.
Does EBS Volume persists data after instance termination?
Yes it does.
How many instance can use 1 EBS volume?
One volume can connect only to one instance.
What are the EBS Volume restrictions?
It is bound to Availability Zones.
Can you have latency with EBS Volumes?
Yes, because they are network attached.
What does Provisioned capacity means for an EBS Volume?
It means and EBS Volume has a fixed size in GBs and IOPS once its created. Billed by the porvisioned capacity.
What is Delete on Termination attribute?
Controls the EBS behaviour 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)
What is a typical Delete on Termination attribute use case?
Preserve a root volume after termination.
What is EBS Snapshot?
Its a backup of the volume at a point of time.
Whats the usage of Snapshots?
- Can copy snapshots across AZs
- Backuping data
What are the 3 EBS Snapshots features?
- EBS Snapshot Archive
- cheaper “archive tier”, takes 24 to 72 hours to restore
- Recycle Bin for Snapshots
- setup retention rules for snapshot deletion
- Fast Snapshot Restore (FSR)
- force full initialization of a snapshot to have no latency on the first use $$$
How to protect retention rules?
With the rule lock settings: lock, unlock.
What is AMI?
- Amazon Machine Image
- AMI are a customization of an EC2 instance
What are AMI restricitions?
It is bound to a specific region. (Can be copied across regions).
What are the 3 launch type of EC2 instances?
- Public AMI: AWS provided
- Own AMI: you make it, you maintain it
- AWS Marketplace AMI: made by someone else
How to create an AMI?
- Start an instance and do the customizations
- Stop the instance
- Build AMI, this will create an EBS Snapshot
- Launch instances from the AMI
What is EC2 Instance Store?
a high-performance hardware disk
What is the difference in EC2 Instance Store comapred to EBS Volume?
- 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
- very high IOPS
What are the main EBS Volume Types?
- gp2/gp3 : General purpose SSD volume that balances price and performance for
a wide variety of workloads - io1 / io2 (SSD): Highest-performance SSD volume for mission-critical low-latency or
high-throughput workloads - st1 (HDD): Low cost HDD volume designed for frequently accessed, throughput- intensive workloads
- sc1 (HDD): Lowest cost HDD volume designed for less frequently accessed workloads
What are the EBS Volume characterizations?
Size | Throughput | IOPS (I/O Ops Per Sec)
What type of EBS Volumes can be used for boot?
gp2, gp2, io1, io2
What are the uses cases of General Purpose SSD Volumes?
- Cost effective storage, low-latency
- System boot volumes, Virtual desktops, Development and test environments
- 1 GiB - 16 TiB
- gp2 iops and size is linked
- gp3 iops and size is not linked
What are the uses cases of Provisioned IOPS (PIOPS) SSD Volumes?
*Critical business applications with sustained IOPS performance
* Or applications that need more than 16,000 IOPS
* Great for databases workloads (sensitive to storage perf and consistency)
* Supports EBS Multi-attach