Lesson 1 of 5 ML Infrastructure and Containers

Balancing On-Demand and Provisioned Capacity

This lesson explains how to balance capacity allocated per request against capacity reserved in advance for ML and AI workloads, for both performance and cost.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the trade-off between on-demand and provisioned resources.
  • Find the break-even point for committed capacity.
  • Design a mixed workload.

The trade-off

On-demand resources follow the load: Bedrock on-demand tokens, SageMaker serverless inference, asynchronous endpoints that scale to zero and automatically scaled real-time endpoints. They avoid paying for idle capacity, but they are subject to quotas, can be throttled at peaks, and may add cold-start latency when capacity is added.

Provisioned resources are reserved in advance: Bedrock Provisioned Throughput and the Reserved tier, SageMaker serverless provisioned concurrency, minimum instance counts on real-time endpoints and training plans. They guarantee capacity and steady latency, but they cost money whether or not they are used, so they pay off only when utilisation is high and predictable.

Sort into groups

On demand or provisioned?

Exam skills 3.2.1

Choose between on-demand and provisioned or committed capacity for each workload.

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

Finding the break-even point

Provisioned or committed capacity becomes cheaper than on-demand capacity when utilisation is high and steady, because committed capacity is paid for whether it is used or not. A practical approach is to cover the baseline load, the minimum traffic seen through most of the day, with provisioned capacity, and to serve the peaks with on-demand or automatically scaled capacity.

Actual utilisation should be measured in CloudWatch over several weeks before committing, and reviewed regularly, because usage patterns change as applications grow or models are replaced.

The following table summarises the provisioned options and when they pay off.

Provisioned optionGuaranteesPays off when
Bedrock Provisioned ThroughputDedicated model unitsSteady high token volume; required for some custom models
Bedrock Reserved tierTokens-per-minute for 1 or 3 monthsPredictable volume; overflow to Standard
Serverless provisioned concurrencyWarm capacity, no cold startsPredictable bursts on a serverless endpoint
Minimum instance countBaseline capacity always readyLatency-critical endpoints
SageMaker training plansAccelerated capacity for a time windowPlanned large training runs

The following diagram shows a customer-service assistant's token volume over a day against its reserved capacity.

Tokens per hour for the customer-service assistant over a day. The Reserved tier covers the steady 40 million tokens per hour of business hours; spikes to 70 million overflow automatically to the Standard tier, with a cross-Region inference profile adding throughput; and at night all traffic runs on Standard on-demand.
The scenario is illustrative.
Fill in the value

Break even

Exam skills 3.2.1 · 4.2.6

Calculate when committed capacity becomes cheaper than on demand.

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

A mixed workload

A customer-service assistant on Bedrock processes a steady 40 million tokens per hour during business hours, with occasional spikes to 70 million, and almost nothing at night. Throttling occurs during spikes.

  • Reserve capacity for the steady business-hours volume with the Reserved tier, which overflows automatically to Standard during spikes.
  • Use a cross-Region inference profile so on-demand overflow can draw on several Regions.
  • At night, traffic runs entirely on Standard on-demand, so nothing is paid for idle reserved capacity beyond the commitment.

Reserving for the 70-million peak would pay for unused capacity most of the day, and staying fully on-demand would keep the throttling.

Check yourself

How are cold starts removed on a serverless endpoint?

Show answer

With provisioned concurrency.

Exam Tips

Remember for the exam

  • Cover steady baseline load with provisioned capacity; serve peaks on demand.
  • Cold starts on a serverless endpoint: provisioned concurrency.
  • Steady high FM volume or some custom models: Provisioned Throughput.
  • Measure utilisation before committing to provisioned capacity.
  • On-demand avoids idle cost but is subject to quotas and throttling.