Sub topic 1
The On-Demand baseline and why discounts exist
Prerequisites
Assume you know that an EC2 instance is a virtual server, that instance types describe its hardware, and that AWS Regions contain Availability Zones. You should also understand that cloud billing charges for resources as you use them.
The On-Demand baseline and why discounts exist
On-Demand pricing charges for compute capacity by time, with no long-term contract. You can start or stop instances whenever needed. This flexibility makes On-Demand the baseline price for comparing other options.
AWS offers lower prices when you accept a constraint. A commitment gives AWS more predictable demand. Spot pricing lets AWS use spare capacity but can interrupt your instance. The discount compensates you for accepting commitment or operational risk.
Trading commitment for a lower price
Commitment pricing lowers the rate for usage that meets defined conditions. Before buying, identify the steady part of your workload. A commitment that is larger than your steady usage can waste money.
The main commitment choices are Reserved Instances (RIs) and Savings Plans. Both can reduce the cost of predictable compute usage, but they apply discounts differently.
Reserved Instances: how they work
A Reserved Instance is a billing discount for matching EC2 usage during a selected term. It is not necessarily a specific server that AWS holds for you. Your running instances receive the discount when their attributes match the reservation.
An RI can specify an instance family, Region or Availability Zone, tenancy, and operating system. The exact matching rules depend on the RI scope and configuration. Capacity reservation is a separate concern from the billing discount.
Standard vs Convertible RIs, terms, and payment options
A Standard RI usually provides the largest discount but offers less flexibility. A Convertible RI usually provides a smaller discount, but you can exchange it for another configuration when your requirements change.
Both types commonly have one-year or three-year terms. Payment options affect cash flow and the effective price:
| Payment option | How payment works | Typical trade-off |
|---|---|---|
| All Upfront | Pay the full term at purchase | Lowest effective cost, highest initial payment |
| Partial Upfront | Pay part initially and the remainder over time | Middle ground |
| No Upfront | Pay through the term | Lowest initial payment, often a higher effective cost |
Exercise
Which RI type better fits a steady workload whose instance family may change?
Show answer
A Convertible RI, because it provides exchange flexibility at the cost of a usually smaller discount.