EC2 Pricing models Flashcards
Define the pricing model for On-Demand Instances:
Hourly rate based on OS, size, options, etc.
Billed in seconds (60s minimum) or hourly (depending on the OS used).
What is the default pricing model?
On-Demand Instances
Is there any commitment when using on-demand instances?
No long-term commitments or upfront payments
In which cases is recommendable to use on-demand instances?
- When having New or uncertain application requirements.
- Short-term, spiky, or unpredictable workloads which can’t tolerate disruption.
Define the pricing model for spot Instances:
- Up to 90% off on-demand, but depends on the spare capacity of that instance type in particular region and AZ.
- You can set a maximum hourly rate in a certain AZ in a certain region.
- If the max price you set is above the spot price, you pay only that spot price for the duration that you consume that instance.
- As the spot price increases, you pay more.
- Once this price increases past your maximum, it will terminate the instance.
In which cases is recommendable to use spot instances?
- Great for data analytics when the process can occur later at a lower use time.
Define the pricing model for reserved Instances:
- Up to 75% off on-demand.
- The trade off is commitment.
- You’re buying capacity in advance for 1 or 3 years.
- Flexibility on how to pay
What are the different paying methods when using reserved instances?
- All up front
- Partial upfront - you pay some amount of money up front, and then you pay a reduced hourly rate regardless of if an instance is running or not.
- No upfront
How can you achieve the best discounts when using reserved instances?
Best discounts are for 3 years all up front.
What types of reservation can you do when using reserved instances?
Reserved in region, or AZ with capacity reservation.
You can perform scheduled reservation when you can commit to specific time windows.
In which cases is recommendable to use reserved instances?
Great if you have a known steady state usage, email usage, domain server.
Cheapest option with no tolerance for disruption.
For example, reserved instances can be used to have servers that need to be running all the time, these could coordinate and spin up other servers like spot instances when the price is down and operate in a very cost efficient way.