Which is a reason to host a model on a SageMaker AI endpoint instead of calling a managed API such as Amazon Bedrock?
- Exam domain
- Fundamentals of AI and ML20% of the exam
- Difficulty
- Medium
- In this mock
- 20 questions on this domainPractise this domain
Why the exam asks this
Task Statement 1.3: Describe the AI/ML development lifecycle.
Objective in the exam guide: Describe methods to use a model in production (for example, managed API service, self-hosted API).
Running endpoints you do not need costs money every hour, while a managed API you outgrow limits you. Teams revisit this choice as products grow, so the exam checks the tradeoff.
Why B is the answer
You need a specific model the managed service does not offer, and control over how it is hosted
Self-hosting earns its extra work when you need a model or hosting control a managed API cannot give.
Remember: Self-host for a model or control you cannot get from a managed API; otherwise use the managed API.
How it works
There are two main ways to use a model in production. A managed API service such as Amazon Bedrock gives model access with no servers to run, billed per use.
A self-hosted API, such as a SageMaker AI endpoint, runs a model you choose on instances you pick. You get more control and more work.
Self-hosting makes sense when you need a model the managed service does not offer, or control over hosting such as instance type or networking.
Clues in the question
The words that point to the answer, and what each one tells you.
- Instead of calling a managed API
- The question asks for the reason to take on more work.
- A reason to host
- Look for a need the managed API cannot meet.
In detail
- A managed API is serverless and billed per use. A self-hosted endpoint runs instances you choose and pay for while they run.
- Both are valid ways to use a model in production; the exam asks you to pick by need.
Side by side with look-alikes
| Need | Managed API | Self-hosted endpoint |
|---|---|---|
| Fastest start | Yes | No |
| No servers to run | Yes | No |
| A model the service does not offer | No | Yes |
| Control over hosting | Limited | Yes |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. You want the fastest start with no setupWrong
The managed API is the faster start.
B. You need a specific model the managed service does not offer, and control over how it is hostedRight
Self-host for a model or control you cannot get from a managed API; otherwise use the managed API.
C. You want to avoid managing any infrastructureWrongMost tempting
That is the reason to choose the managed API, not to self-host.
Why it tempts: It sounds like a benefit of AWS in general. But self-hosting adds infrastructure; avoiding it is the case for the managed API.
D. You want to pay only for tokens, with no endpoint to runWrong
Per-token billing with nothing to run describes the managed API.
In practice
- Default to the managed API and move only for a concrete need.
- If you self-host, size and scale the endpoint to real traffic.
Use case
An illustrative scenario, not a real incident.
A team needs a specialist open source model that Bedrock does not list, so it deploys it on a SageMaker AI endpoint.
See how it works
flowchart TD
A{"Does the managed API offer the model you need?"} -->|"No"| S["Host it on a SageMaker AI endpoint"]
A -->|"Yes"| B{"Do you need control over hosting?"}
B -->|"Yes"| S
B -->|"No"| M["Call the managed API"]How to read this chart
- At "Does the managed API offer the model you need?": if "No", go to "Host it on a SageMaker AI endpoint"; if "Yes", go to "Do you need control over hosting?".
- At "Do you need control over hosting?": if "Yes", go to "Host it on a SageMaker AI endpoint"; if "No", go to "Call the managed API".