EC2 Flashcards
What does EC2 stand for?
Elastic Cloud Compute
What is EC2?
A web service that provides resizable compute capacity in the cloud
What are the benefits of EC2? (2)
- Reduces the time required to obtain and boot new server instances to minutes
- Scale capacity as your computing requirements change
What are the five EC2 pricing models? (5)
- On Demand
- Reserved
- Spot
- Savings Plans
- Dedicated Hosts
What are the features of the EC2 On Demand pricing model? (2)
- Pay a fixed rate by the hour (or second) with no commitment
- No up-front payment
Which use cases work well under the EC2 On Demand pricing model? (2)
- Applications with short term, spiky or unpredictable workloads that cannot be interrupted
- Applications being developed or tested on Amazon EC2 for the first time
What are the features of the EC2 Reserved pricing model? (3)
- Provides a capacity reservation
- Offers a significant discount on the hourly charge for an instance
- Contract terms of 1 or 3 years
Which use cases work well under the EC2 Reserved pricing model? (3)
- Applications with steady state or predictable usage
- Applications that require reserved capacity
- Users able to make upfront payments to reduce their total computing costs
What are the three types of EC2 Reserved pricing? (3)
- Standard reserved instances
- Convertible reserved instances
- Scheduled reserved instances
What are the features of standard reserved instances? (2)
- Offer up to 75% off On-Demand instances
- Standard RIs can only be modified, not exchanged
What are the features of convertible reserved instances? (2)
- Offer up to 54% off On-Demand instances
- Convertible RIs can be exchanged for different Convertible RIs of equal or greater value
What are the attributes of a Reserved Instance? (4)
- Instance type (CPU, memory, storage, networking capacity)
- Platform description (operating system)
- Tenancy (runs on shared hardware/single-tenant hardware/Dedicated Host)
- Availability zone (optional)
What are the features of scheduled reserved instances? (2)
- Available to launch within the time windows you reserve
- Use case: capacity matching to a predictable recurring schedule that only requires a fraction of a day/week/month
What are the features of the EC2 Spot pricing model? (2)
- Allows you to request spare EC2 computing capacity for up to 90% off the On-Demand price
- Bid whatever price you want for instance capacity
Which use cases are suited to the EC2 Spot pricing model? (3)
- Applications that have flexible start and end times
- Applications that are only feasible at very low compute prices
- Users with urgent computing needs for large amounts of additional capacity
What are the features of the EC2 Savings Plans pricing model?
Offers low prices on EC2 usage in exchange for a commitment to a consistent amount of usage ($ per hour) for a 1 or 3 year term
How do Reserved Instances provide a capacity reservation?
By assignment to a specific Availability Zone
What happens when you terminate an EC2 Spot instance vs when EC2 terminates it? (2)
- If a Spot instance is terminated by EC2, you will not be charged for a partial hour of usage
- If you terminate the instance yourself, you will be charged for any hour in which the instance ran
What are the features of the EC2 Dedicated Host pricing model? (3)
- A physical EC2 server is dedicated for your use
- Reduce costs by allowing you to use existing server-bound software licenses
- Can be purchased On-Demand or as a Reservation
Which use cases are suited to the EC2 Dedicate Host pricing model? (2)
- Regulatory requirements which do not support multi-tenant virtualisation
- Licensing which does not support multi-tenancy or cloud deployment
What are the differences between a Dedicated Host and a Dedicated Instance? (2)
- A Dedicated Host gives you additional visibility and control over how instances are placed on a physical server
- With a Dedicated Host, can consistently deploy your instances to the same physical server over time
What is the default status of Termination Protection for an EC2 instance?
Termination Protection is turned off by default
By default, what happens to the root EBS volume when an EBS-backed instance is terminated?
On an EBS-backed instance, the default action is for the root EBS volume to be deleted when the instance is terminated
What does the root device volume contain?
The image used to boot the instance
What is an AMI?
An Amazon Machine Image provides the information required to launch an instance
Can root and non-root device volumes be selected for encryption during an instance launch? If not, how can the volume be encrypted after launch (3)
- The root device volume cannot be encrypted during an instance launch
- After launch, a snapshot must be taken, copied, this snapshot encrypted, an encrypted volume created from this & the existing volume then replaced with the encrypted volume
- A non-root device volume can be encrypted during launch or after launch
Are security groups stateful or stateless?
Security groups are stateful
What does stateful mean?
When you create an inbound rule allowing traffic in, an outbound rule is created automatically which allows the traffic back out again
What are the default properties of a security group? (2)
- All inbound traffic is blocked
- All outbound traffic is allowed
Can you block a particular port or IP address with security groups?
No, you can’t block a particular port or IP address with security groups
How can you block a particular port or IP address?
With Network Access Control Lists
What is the maximum number of EC2 instances within a security group?
Unlimited
Can an EC2 instance have multiple attached security groups?
Yes
What can you specify using a security group? Allow rules, deny rules, or both
You can specify allow rules, but not deny rules using security groups