Lesson 2 of 7 Cost and Capacity Optimization

Choosing Purchasing Options for ML Workloads

This lesson explains how the way capacity is bought changes its price, and how to choose purchasing options for SageMaker AI and Amazon Bedrock workloads.

Learning outcomes

After completing this lesson, you will be able to:

  • Choose among On-Demand, Spot training and Savings Plans for SageMaker AI.
  • Choose among Bedrock on-demand, Flex, batch and Provisioned Throughput.
  • Combine purchasing options for a mix of workloads.

SageMaker AI options

On-Demand pricing has no commitment and suits variable or short-term use. Managed Spot training runs training jobs on spare EC2 capacity at up to 90% discount; jobs can be interrupted, so they need checkpoints and a max_wait time. SageMaker Savings Plans reduce prices by up to about 64% in exchange for a commitment to a consistent amount of usage (dollars per hour) for 1 or 3 years, and apply automatically across instance families, sizes, Regions and SageMaker AI components such as notebooks, training, processing and inference. Training plans reserve accelerated capacity for planned training windows.

Sort into groups

Choose how to pay

Exam skills 4.2.6

Choose the purchasing option for each SageMaker AI workload.

Log in to try this activity Interactive activities are free with an account.

Amazon Bedrock options

On Bedrock, on-demand pricing per token has no commitment. The Flex tier is discounted for latency-tolerant work, and batch inference is priced below on-demand for bulk jobs. The Reserved tier commits to tokens-per-minute capacity for 1 or 3 months, and Provisioned Throughput can be bought with no commitment (hourly) or with 1-month or 6-month commitments at lower hourly rates.

Match the pairs

Bedrock pricing options

Exam skills 4.2.6 · 4.2.7

Match each Bedrock pricing option with the workload it suits.

Log in to try this activity Interactive activities are free with an account.

Combining options

No single purchasing option suits all machine learning work, so a typical strategy combines them. Steady baseline usage, such as always-on endpoints, is covered with Savings Plans or reserved capacity. Interruptible training jobs run on Spot capacity with checkpointing, at a large discount. Non-urgent foundation model work, such as overnight document processing, moves to batch inference or the Flex tier. Peaks are left on demand, so the organisation does not pay for unused capacity. The following table summarises the options.

OptionDiscount sourceSuits
SageMaker On-DemandNoneVariable or short-term usage
Managed Spot trainingSpare capacity (up to 90%)Interruptible training with checkpoints
SageMaker Savings Plans1- or 3-year usage commitmentSteady usage across instance types
Bedrock batch inference / Flex tierLower priority or offline processingNon-urgent FM work
Bedrock Reserved tier / Provisioned Throughput commitmentCapacity commitmentSteady high FM volume

The following diagram matches three ML workloads to the purchasing option that suits each.

Matching each workload to a purchasing option. The steady endpoint spend of about USD 40 an hour is covered up to USD 35 an hour by a one-year SageMaker Savings Plan, leaving headroom for change; weekly GPU training moves to managed Spot with checkpoints; and 20 million non-urgent documents a month move to Bedrock batch inference.
The scenario is illustrative.
Worked example

A year of ML spend

A company spends steadily on SageMaker AI endpoints (about USD 40 per hour around the clock), runs weekly training jobs on GPUs and processes 20 million documents a month through a Bedrock model, none of them urgent.

  • Buy a 1-year SageMaker Savings Plan covering about USD 35 per hour of the steady endpoint usage, leaving headroom for change.
  • Switch weekly training to managed Spot with checkpoints.
  • Move the document processing to Bedrock batch inference.

Each workload gets the option that matches its pattern. Committing to Savings Plans for the full peak would risk paying for unused commitment if endpoints are later consolidated.

Check yourself

Which purchasing option suits steady SageMaker usage across instance types?

Show answer

SageMaker Savings Plans.

Exam Tips

Remember for the exam

  • Interruptible training: managed Spot with checkpoints (up to 90% savings).
  • Steady SageMaker usage across instance types: SageMaker Savings Plans.
  • Non-urgent FM work: Bedrock batch inference or Flex tier.
  • Steady high FM volume: Reserved tier or Provisioned Throughput commitments.
  • Commit to baseline usage, not peaks.