EBS and EC2 Storage Flashcards
Requirement of attaching an EBS to EC2
They have to be in the same availability zone
What are the two EBS Volume Types
SSD Volumes and Magnetic Volumes
What are SSD volumes used for?
For transactional workloads, such as database and boot volumes (performance depends mostly on IOPS). Can read and write quickly. Small and random I/O operations.
What is a General Purpose EBS Volume?
(GP2) SSD Volume that balances both pricing and performance.
Ratio 3 IOPs per GB with up to 1000 IOPS and availability to burst up to 3000 IOPS for volumes of 334 GB and above. 6,000 IOPS/volume
What is a Provisioned IOPs EBS Volume?
(IO1) SSD Volume used for extreme performance I/O intensive apps (large relational or NoSQL DB).
Used for mission critical low-latency or high throughput workloads. over 10000 IOPs.
64,000 IOPS/volume
What is a Throughput HHD EBS Volume?
(STI) A HHD volume. Low cost designed for frequent access throughput intensive workloads.
Ex. Big Data, data warehouse, log processing.
500 IPS
CANNOT be a boot volume
What is a Cold HHD EBS Volume?
(SCI) Lowest cost storage for infrequent accessed workloads
Ex. File Server
250 IOPS
CANNOT be a boot volume
What is a Magnetic EBS Volume
It is the standard HHD volume. Used for Legacy. It is the lowest cost per GB of all EBS volume types that IS BOOTABLE.
Good for workloads where data is accessed infrequently and for apps where lowest storage cost is important
Three ways to encrypt root device volume?
1) Can now encrypt upon creation
2) Use OS system level encryption
3) Take a snapshot. Copy snapshot, then create image (go to AMI), and then click launch.
40-200 IOPS
TRUE or FALSE: Once you pick size for EBS volume it can’t be changed
FALSE: you can increase volume size at any time
Do you need to shut down EC2 instance in order to change/upgrade EBS Volume
No, although it is recommended
Can you delete a sanpshot of root device of EBS volume used by a registered AMI?
NO, You must first remove the AMI before you can delete the snapshot
How to protect your EBS from failure
Auto replicate in AZ
How to move an EBS Volume to another AZ
Create a Snapshot of Volume
Turn snapshot into AMI
Make sure Virtualiztion type is Hardware assisted virtualization
See image under AMI
NOTE Snapshots exist in S3
Best practic is to stop instance before taking a snapshot
2 AMI Storage Options for EC2
Instance Store
EBS Backed Volumes
What type of Storage is Instance Store?
Ephemeral Storage
If underlying hardware stops you will lose data
Negatives of using Instance Store as Storage on EC2
Restricts instance types you can choose
Have to be added on EC2 creation
CANNOT stop instance (can only REBOOT and TERMINATE)
Can loose data if underlying hardware stops
Positives of using EBS Backed Volumes on EC2
Persistent storage (can stop instance and data will persist)
Can add more EBS backed volumes to EC2 even after creation
Can tell AWS to keep root device volume when EC2 is deleted
Where are Instance Store volumes created from and where are EBS Backed Volumes created from?
Instance Store = templates stored in S3
EBS = EBS Snapshot
Virtual Network Card for EC2
ENI
Elastic Network Interface