EC2 101 Flashcards
EC2 High Level Principles, Pricing Models, Pricing Scenarios
How does On Demand Pricing for EC2 instances work?
Pay a fixed rate by the hour (or second) with no time commitment
At a high level, how does Reserved Pricing for EC2 instances work?
Reserved Pricing provides you with a capacity reservation, at a significant discount on the hourly rate.
How long is the contract on a Reserved Instance in EC2?
Can be 1 year or 3 years
A user is developing and testing an application using EC2 for the first time. Which EC2 pricing model best suits their use case?
On Demand Pricing
A user’s application requires a reserved capacity, and they are able to make upfront payments to save money. Which pricing model makes the most sense in this scenario?
Reserved Pricing
What are the three types of Reserved Instances Classes?
- Standard Reserved Instances
- Convertible Reserved Instances
- Scheduled Reserved Instances
What is the key difference between a Standard Reserved Instance and a Convertible Reserved Instance?
- A Convertible Reserved Instance is more flexible on the fly.
- In general, you can change the attributes of a convertible reserved instance as long as the change results in a reserved instance class of equal or lesser value.
What is the best way to purchase compute capacity reservations that do not run continuously, but do recur on a regular schedule (daily, weekly, monthly)
Use Scheduled Reserved Instances
(Source)
How do EC2 Spot Instances work?
When EC2 has unusued capacity, Amazon drops the price of instances, so you can bid whatever price you want for instance capacity (“Free market”)
An application has an urgent computing need that calls for large amounts of additional compute capacity. Which EC2 pricing model makes the most sense for this use case?
Spot Instances
(On-Demand might also work here but will be costlier. Spot is better since we need additional compute. Spot should not handle 100% of your compute capacity)
If a Spot Instance is terminated by Amazon EC2 after you have used it for 2.5 hours, how much are you charged for it?
2 hours at whatever price you bid for it.
If a Spot instance is terminated by EC2 (called a Spot Instance Interruption), you are not charged for the partial hour in which it ran.
If you terminate a spot instance after using it for 2.5 hours, how much do you pay for using the instance?
3 hours at whatever price you bid for it.
If you terminate a spot instance, you are charged for any hour in which the instance ran.
What is a Dedicated Host?
A Dedicated Host is a physical EC2 server dedicated for your use.
A user wants to use an existing server-bound software license to reduce compute costs. Which pricing model makes the most sense for this use case?
Dedicated Hosts
What is the pricing model for Dedicated Hosts?
- Dedicated Hosts can be purchased on-demand (hourly)
- Dedicated Hosts can be purchased as a reservation for up to 70% off the on-demand price.