Chapter 7 - Elastic Block Storage (EBS) and Elastic File System (EFS) Flashcards
What is EBS?
EBS (Elastic Block Store) volumes are virtual disk in the cloud that you can attach to your EC2 instances.
How do you use EBS volumes?
Use them the same way you would use any system disk: Create a file system Run a database Run an operating system Store data Install applications
What does “IOPS” stand for?
Input / Output Operations Per Second
What are the use cases and fundamental characteristics of EBS volumes?
Production Workloads
Designed for mission-critical workloads.
Highly Available
Automatically replicated within a single Availability Zone to protect against hardware failures.
Scalable
Dynamically increase capacity and change the volume types with no downtime or performance impact to your live systems.
What is the difference between IOPS and Throughput?
IOPS is optimized for transactional speed. Generally associated with SSDs.
Throughput is optimized for large amounts of data transfer. Generally associated with HDDs.
IOPS
- Measures the number of read and write operations per second
- Important metric for quick transactions, low-latency apps, transactional workloads.
- The ability to action reads and writes very quickly.
- Choose Provisioned IOPS SSD (io1 or io2)
Throughput
- Measures the number of bits read or written per second (MB/s).
- Important metric for large datasets, large I/O sizes, complex queries.
- The ability to deal large datasets.
- Choose Throughput Optimized HDD (st1).
What is the break point between General Purpose SSDs and Provisioned IOPS SSDs?
16,000 IOPS
What are Volumes?
It is a virtual hard disk.
You need a minimum of 1 per EC2 instance, which is the Root Device Volume.
This is where the OS is installed.
What are Snapshots?
A “photograph” of the virtual disk/volume, which is stored in S3.
Snapshots are a point in time.
Snapshots are incremental.
The first Snapshot may take some time to create as there is no previous point-in-time copy.
What are 3 Tips for Snapshots?
Consistent Snapshots
- Snapshots only capture data that has been written to your Amazon EBS volume, which might exclude any data that has been locally cashed by your application or OS.
- For a consistent Snapshot, it is recommended you stop the EC2 instance and take a snap.
Encrypted Snapshots
- If you take a snapshot of an encrypted EBS volume, the snapshot will be encrypted automatically.
Sharing Snapshots (Changing the location of an EC2 instance)
- You can share snapshots, but only in the region in which they were created.
- To share to other regions, you will need copy them to the destination region first.
- How to move EC2 instances from one region to another is a common question on the exam. Using a snapshot is how that is done.
What to Know about EBS Volumes?
Location
- EBS volumes will always be in the same AZ as the EC2 it is attached to.
Resizing
- EBS volumes can be resized on the fly.
- They do not need to be stopped and restarted.
- However, you will need to extend the file system in the OS so the OS can see the resized volume.
Volume Type
- EBS volume types can be switched on the fly. You do not need to stop or restart the instance.
What are the fundamental characteristics of EBS Encryption?
Data at rest is encrypted inside the volume.
All data in flight moving between the instance and the volume is encrypted.
All snapshots are encrypted.
All volumes created from the snapshot are encrypted.
The encryption is end-to-end.
What are the steps required to encrypt existing unencrypted EC2 instances?
Take a snap
Copy that snap and encrypt while copying
Create an AMI from the encrypted snap
Launch and EC2 instance from that AMI
What is EC2 Hibernation?
Hibernating an EC2 instance tells the operating system to perform hibernation aka suspend-to-disk)
Hibernation saves the contents from the instance memory (RAM) to the associated Amazon EBS volume.
The instance’s Amazon EBS root and attached data volumes persist.
What are the benefits o starting an EC2 instance out of hibernation?
The instance boots much faster.
The operating system does not need to reboot because the in-memory state (RAM) is preserved.
This is useful for:
- Long-running processes
- Services that take time to initialize
What are the limitations of EC2 Hibernation?
Instance RAM must be less than 150 GB.
Instance families include: C3, C4, C5, M3, M4, M5, R3, R4, R5
Available for Windows, Amazon Linux 2 AMI, and Ubuntu
Instances can’t be hibernated for more than 60 days.
Available for On-Demand instances and Reserved Instances