Concept · Builds on SAA-C03
Purchasing options for ML infrastructure
Steady use earns a Savings Plan, interruptible training earns Spot, and a must-have capacity needs a reservation.
You know from Solutions Architect Associate
- Savings Plans trade a dollars-per-hour commitment for lower prices over 1 or 3 years.
- Extra usage above the commitment bills at On-Demand rates.
- SageMaker AI Savings Plans cover SageMaker AI usage.
Steady endpoints and jobs
- Option
- SageMaker AI Savings Plan
- Catch
- Fixed dollars-per-hour commitment
Restartable training
- Option
- Managed Spot
- Catch
- Checkpoints, possible interruption
Unknown or short use
- Option
- On-Demand
- Catch
- Highest unit price
Guaranteed GPUs for a period
- Option
- Capacity reservation
- Catch
- Pay for it even if idle
Base load on self-managed EC2
- Option
- EC2 Savings Plan
- Catch
- Fixed family or Region limits
| Workload | Option | Catch |
|---|---|---|
| Steady endpoints and jobs | SageMaker AI Savings Plan | Fixed dollars-per-hour commitment |
| Restartable training | Managed Spot | Checkpoints, possible interruption |
| Unknown or short use | On-Demand | Highest unit price |
| Guaranteed GPUs for a period | Capacity reservation | Pay for it even if idle |
| Base load on self-managed EC2 | EC2 Savings Plan | Fixed family or Region limits |
1 / 2
Steady endpoints and jobs
- Option
- SageMaker AI Savings Plan
- Catch
- Fixed dollars-per-hour commitment
Restartable training
- Option
- Managed Spot
- Catch
- Checkpoints, possible interruption
Unknown or short use
- Option
- On-Demand
- Catch
- Highest unit price
| Workload | Option | Catch |
|---|---|---|
| Steady endpoints and jobs | SageMaker AI Savings Plan | Fixed dollars-per-hour commitment |
| Restartable training | Managed Spot | Checkpoints, possible interruption |
| Unknown or short use | On-Demand | Highest unit price |
2 / 2
Guaranteed GPUs for a period
- Option
- Capacity reservation
- Catch
- Pay for it even if idle
Base load on self-managed EC2
- Option
- EC2 Savings Plan
- Catch
- Fixed family or Region limits
| Workload | Option | Catch |
|---|---|---|
| Guaranteed GPUs for a period | Capacity reservation | Pay for it even if idle |
| Base load on self-managed EC2 | EC2 Savings Plan | Fixed family or Region limits |
What it is
SageMaker AI Savings Plans give up to 64 percent off for a 1 or 3 year commitment in dollars per hour. They cover eligible instance usage in Studio notebooks, On-Demand notebooks, Processing, Data Wrangler, Training, real-time Inference and Batch Transform, and they apply across instance families and Regions. Use them for steady use. For self-managed ML on EC2, use EC2 Savings Plans or Reserved Instances for the base load.
What it is
Managed Spot training uses spare capacity at up to 90 percent lower cost, but AWS can take the instance back. Turn on checkpointing so the job saves progress to Amazon S3 and resumes after an interruption. Set MaxWaitTimeInSeconds, the total time you will wait for capacity plus run time, larger than MaxRuntimeInSeconds. A managed Spot job does not fall back to On-Demand. Built-in algorithms that do not checkpoint are limited to a wait time of 3,600 seconds. Spot suits training and batch work that can restart, not a real-time endpoint.
What it is
On-Demand has no commitment and fits experiments and spiky load. A capacity reservation, such as an On-Demand Capacity Reservation, an EC2 Capacity Block for ML or a SageMaker AI training plan, guarantees GPUs for a period. A reservation protects availability, and a Savings Plan protects price. You can use both. Pick by how steady and how interruptible the work is.
Remember
- SageMaker AI Savings Plans: up to 64 percent, 1 or 3 years, across families and Regions.
- Managed Spot training: up to 90 percent off, needs checkpoints in S3.
- MaxWaitTimeInSeconds must exceed MaxRuntimeInSeconds.
- Spot does not suit real-time endpoints.
- On-Demand for experiments and unknown load.
Remember
- Reservation guarantees capacity. A Savings Plan lowers price.
On the exam
- “Endpoints run all day for 3 years, lowest cost” points to a SageMaker AI Savings Plan.
- “Fault-tolerant training, cut cost by up to 90 percent” points to managed Spot training with checkpoints.
- “Need 64 GPUs on a fixed week” points to a capacity reservation such as a training plan.
- “Unknown, short-lived experiment” points to On-Demand.
Do not mix it up with
- Cost tools, tags and spending limitsTag everything, activate the tags, then watch spend with Cost Explorer and Budgets. Use inference profiles to split Bedrock costs.
- Capacity, quotas and throttlingQuotas cap how much you can run, throttling caps how fast you can call, and capacity errors mean the Region has none to give.
- Inference Recommender and right-sizingLet a load test pick the instance type, then trim idle capacity by sharing endpoints or going serverless.
In this task · 4.2
- Inference instance families
- Inference Recommender and right-sizing
- CloudWatch metrics and dashboards for ML
- Logs and tracing to troubleshoot ML systems
- Capacity, quotas and throttling
- Cost tools, tags and spending limits
- Purchasing options for ML infrastructure
- FM inference costs and token monitoring
- Reducing FM usage cost