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
PI SSD (Desc, Use Case, API Name, Volume Size, Max IOPS/Volume)
High performance, Databases, io1, 4 GiB - 16 TiB, 64,000
Throughput Optimized HDD (Desc, Use Case, API Name, Volume Size, Max IOPS/Volume)
Low cost HDD for frequently accessed, throughput intensive workloads, Big Data& Data Warehouses, st1, 500GiB - 16 TiB, 500
Cold HDD (Desc, Use Case, API Name, Volume Size, Max IOPS/Volume)
Lowest cost HDD for less frequently accessed workloads, File Servers, sc1, 500 GiB - 16 TiB, 250
EBS Magnetic (Desc, Use Case, API Name, Volume Size, Max IOPS/Volume)
Prev gen HDD, Workloads where data is infrequently accessed, Standard, 1GiB - 1 TiB, 40-200
EC2 instance and EBS Volume AZ
They have to be in the same AZ to avoid lag
Volumes exist on
EBS (virtual hard disk)
Snapshots
exist on S3; photographs of the disk - point in time copies of Volumes
Snapshots are incremental
only the blocks that have changed since your last snapshots are moved to S3 (deltas)
Creating first snapshot
will take time to create
AMIs can be created from
Volumes and snapshots