EC2 Flashcards
What are the different EC2 pricing models?
- On-Demand - allows paying fixed rate by the hour (or even second)
- Reserved - provides you with a capacity reservation and offers a significant discount to the hourly charge (contract terms are 1-3 years)
- SPot - enables you to bid whatever price you want for instance capacity, providing even greater savings if your applications have flexible start and end times
- Dedicated Hosts - physical ec2 instances dedicated to you
What is on demand EC2 useful for?
- Users that want the low cost and flexibility of ec2 without any up-front payment tor long-term commitment
- application with short term, spiky, or unpredictable workload that cannot be interrupted
- applications that are being developed or tested on ec2 for the first time
What is reserved pricing useful for?
- applications with steady state or predictable usage
- apps that require reserved capacity
- users able to make upfront payments to reduce their total computing costs even further
What is spot pricing useful for?
- apps that have flexible start and end times
- apps that are only feasible at very low compute prices
- users with urgent computing needs for large amounts of additional capacity
What are dedicated hosts useful for?
- Useful for regulatory requirements that may not support multi-tenant virtualization
- great for licensing which does not support multi-tenancy or cloud deployments
- can be purchased hourly (on-demand)
- can be purchased as reservation for up to 70% off on-demand price
What is the mnemonic for all the EC2 instances? Not needed for the test, but helpful to know
F - for FPGA
I - for IOPS
G - graphics
H - high disk throughput
T - cheap general purpose, think T2 micro
D - for density
R - for RAM
M - main choice for general-purpose apps
C - for compute
P - graphics (think pics)
X - extreme memory
Z - extreme memory AND CPU
A-arm based workloads
U - bare metal
True or False. If you turn off a spot instance you will not get charged.
False. You will get charged for that run. You will not get charged if AWS turns off the instance.
How many different types of hard drives can the root volume launch on? List them.
2
- Magnetic
- SSD (General, Provisioned)
What are security groups?
Virtual firewall, how you direct various types of traffic.
Can you encrypt root device volume on EC2?
Yes
True or False. Termination protection is turned off by default.
True. You must turn it on.
True or False. On an EBS backed instance, the default action is for the root EBS volume to be deleted. Additionally, all additional volumes default action is to be deleted as well.
Partially True, but overall False. The additional volumes default action is not to be deleted.
True or False. EBS Root Volumes DEFAULT AMIs CAN NOT be encrypted.
False. They can be encrypted.
How long does it take for a security group change to take place?
It happens instantanously.
Can you block individual addresses using security groups?
Not really. Can’t explicitly block any IP, but can not allow it. Nothing is allowed until you allow it.
True or False. All outbound traffic is allowed on security groups.
True. Outbound traffic is stateful.
True or False. You can have any number of EC2 instances within a security group.
True.
True or False. You can have multiple security groups attached to EC2 instances.
True.
What does STATEFUL mean?
Means that if you create an inbound rule for something, an outbound rule is automatically created for it.
True or False. You can block specific IP addresses using Security Groups.
False. You cannot block specific IP addresses using Security groups, instead you need to use Network Access Control Lists.
True or False. You can deny rules in a security group.
False. You cannot do that in security groups but can do it in Network Access Control Lists.
What is EBS?
Elastic Block Storage. Essentially a virtual hard disk in the cloud.
What are the differences in the types of EBS drives?
- General Purpose SSD (gb2) - 16,000 iops/volume
- Provisioned Purpose SSD (io1) - 64,000 iops /volume
- Throughput Optimized HDD (st1) - 500 iops / volume
- Cold HDD (sc1) - 250 iops / volume
- EBS Magnetic (Standard) - 40-200 iops / volume
What are the use cases for General Purpose SSD?Description?
Most Work Loads. Up to 16,000 IOPS.
Description: General purpose SSD volume that balances price and performance for a wide variety of transactional workloads.