Lesson 1 of 4 Deploying Foundation Models

Choosing Between Bedrock and Self-Hosted Foundation Models

This lesson explains how to evaluate consuming foundation models as a serverless API on Amazon Bedrock against hosting them on infrastructure you choose, weighing control, cost, capacity and operations.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the Bedrock consumption options.
  • Identify the self-hosted options such as SageMaker JumpStart.
  • Decide between the options with a sequence of questions.

Amazon Bedrock options

On-demand inference charges per input and output token with no infrastructure; requests share quotas (tokens and requests per minute). Each request can choose a service tier: Standard, Priority (faster, premium price) or Flex (discounted, lower priority); the Reserved tier guarantees tokens-per-minute capacity for 1 or 3 months. Cross-Region inference profiles route requests to Regions in a geography, or globally, to raise throughput and absorb peaks. Batch inference processes JSONL files at a lower price. Provisioned Throughput buys model units of dedicated capacity by the hour, with optional 1- or 6-month commitments, and is required for some custom models.

Scenario questions

Bedrock capacity options

Exam skills 3.1.4 · 4.2.7

Choose a Bedrock consumption option for each workload.

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

Self-hosted options

SageMaker JumpStart deploys open-weight models (and some proprietary ones from model providers) to SageMaker AI endpoints in your account with tuned containers. Bedrock Marketplace deploys additional models to managed SageMaker AI endpoints while using Bedrock APIs. Self-managed hosting on SageMaker AI, EKS or EC2 with open-source serving such as vLLM gives full control of model versions, quantisation, networking and hardware, but you manage capacity, scaling and patching, and pay for instances whether or not they are busy.

The following table compares the options.

OptionPay forControlBest for
Bedrock on-demandTokensLowVariable traffic, least operations
Bedrock Priority / Flex tiersTokens at premium / discountLowLatency-critical / non-urgent requests
Bedrock batch inferenceTokens at lower priceLowBulk offline jobs
Bedrock Provisioned Throughput / ReservedCapacity per hour or termLowSteady high volume, guaranteed capacity, some custom models
SageMaker JumpStart endpointInstance hoursHighOpen models in your VPC, custom settings
Self-managed on EKS / EC2InstancesHighestExisting platform, specialised serving

Deciding between the options

The decision usually follows a short sequence of questions. The first is availability: if the required model is in the Bedrock catalogue, or can be brought in with Custom Model Import, the serverless options are possible; if not, the model must be hosted on SageMaker AI or self-managed infrastructure. The second is control: requirements for a specific quantisation, a custom serving container, custom pre-processing code or a particular GPU type point to self-hosting, because Bedrock manages the serving stack itself.

The third question is the traffic shape, which decides cost. Low or unpredictable traffic favours per-token pricing, because self-hosted instances are paid for while idle. Very high, steady traffic can make dedicated capacity cheaper, either Provisioned Throughput and the Reserved tier on Bedrock or well-utilized SageMaker AI instances. Work that tolerates delay, such as nightly processing, belongs in batch inference or the Flex tier whatever the hosting choice.

The last questions concern operations and integration. Bedrock removes capacity planning, patching and scaling, and integrates directly with Knowledge Bases, Agents, Guardrails, Prompt Management and model evaluation. Self-hosting requires the team to provide these capabilities, for example by calling ApplyGuardrail for a model on a SageMaker AI endpoint. A team that already runs a mature Kubernetes platform may accept that work in exchange for consistency; a team without one usually should not.

The following diagram matches three foundation model workloads to the deployment option that suits each.

Three FM deployment decisions. A chat assistant with unpredictable traffic uses Bedrock on-demand with a cross-Region inference profile; an open-weight model with custom quantisation in a private VPC under steady load uses a SageMaker AI endpoint; and nightly classification of 5 million tickets uses Bedrock batch inference.
The scenario is illustrative.
Sort into groups

Bedrock or self-hosted?

Exam skills 3.1.4

Decide whether each requirement points to Amazon Bedrock or a self-hosted model on SageMaker AI.

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

Three deployment decisions

Three teams describe their FM needs.

NeedOptionReason
Chat assistant with unpredictable traffic, minimal operationsBedrock on-demand with a cross-Region inference profilePay per token; extra throughput at peaks
Open-weight model with custom quantisation, private VPC only, steady loadSageMaker AI endpoint (JumpStart or custom LMI container)Control over model and network
Nightly classification of 5 million support ticketsBedrock batch inferenceLower price, no orchestration of millions of calls

Using Provisioned Throughput for the chat assistant would pay for capacity during quiet periods, and self-hosting it would add GPU operations that Bedrock removes.

Check yourself

Which Bedrock option guarantees steady capacity?

Show answer

Provisioned Throughput or the Reserved tier.

Exam Tips

Remember for the exam

  • Least operations and variable traffic: Bedrock on-demand.
  • Throttling at peaks: cross-Region inference profiles.
  • Guaranteed steady capacity: Provisioned Throughput or Reserved tier.
  • Bulk offline FM work: Bedrock batch inference.
  • Full control of an open model: SageMaker JumpStart or self-managed hosting.