EC2 Flashcards
EC2
Web service that provides resizable compute capacity in the cloud
EC2 Pricing Models
Dedicated, On Demand, Reserved and Spot
Dedicated Hosts
Physical EC2 Server; server-bound software licenses
On Demand
Pay fixed rate by the hour w/no commitment
Spot
Bidding; flexible start and end times
Reserved
Capacity reservation; 1/3 yr contracts
Reserved Pricing Types
Standard, Convertible and Scheduled
Spot instance termination
if terminated by AWS, you will not be charged for a partial hour of usage; if you terminate the instance, you will be charged
Termination Protection
Turned off by default, you must turn it on
What happens to the EBS root volume when instance gets terminated?
Default: Root EBS volume is deleted
What happens to other non root volumes when instances gets terminated?
remains, it has to be deleted manually
Can the EBS Root Volume of your default AMI be encrypted?
No but there are ways to do it
Can additional volumes be encrypted?
Yes
Inbound traffic default behavior
blocked
Outbound traffic default
allowed
When do changes for security groups take effect
immediately
Security group relation to EC2 instances
M:M
Security Group is STATEFUL
If you create an inbound rule, an outbound rule is created automatically (HTTP in, HTTP out). You don’t have to create it explicitly as part of the Security group Outbound rule.
Network Access Control Lists (NACL) are STATELESS
If you create an inbound rule, you have to create the outbound rule explicitly; it will not be created automatically
Blocking IP Addresses in Security Groups
cannot be done; it has to be done via the NACL
Specifying rules in Security Groups
only allow rules, not deny rules
EBS
Elastic Block Store - provides persistent block storage volumes for use with Amazon EC2 instances in the Cloud
Types of EBS Storage
GP (SSD), PI (SSD), Througput Optimised HDD, Cold HDD and Magnetic
GP SSD (Desc, Use Case, API Name, Volume Size, Max IOPS/Volume)
General purpose SSD, most work loads,gp2, 1 GiB- 16 TiB, 16,000