An engineer must deploy a trained model to a SageMaker AI endpoint from a CI/CD script rather than the console. What does that use?
- Exam domain
- Deployment and Orchestration of ML and AI Workflows24% of the exam
- Difficulty
- Easy
- In this mock
- 22 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Skill 3.2.5: Deploy and host models programmatically (for example, by using the SageMaker AI SDK for Python, AWS CLI, Boto3).
CI/CD needs deployments that run without a person clicking. Knowing the programmatic path is basic MLOps.
Why A is the answer
The SageMaker AI SDK for Python, Boto3 or the AWS CLI to create the model, endpoint configuration and endpoint
Models can be deployed programmatically with the SageMaker AI SDK, Boto3 or the AWS CLI.
Remember: Automate deployments with the SageMaker AI SDK, Boto3 or the CLI.
How it works
SageMaker AI endpoints can be created from code with the SageMaker Python SDK, Boto3 or the AWS CLI.
A deployment creates a model, an endpoint configuration with instance settings, and the endpoint itself.
Running these from a pipeline makes deployments repeatable.
Clues in the question
The words that point to the answer, and what each one tells you.
- From a CI/CD script
- Programmatic deployment.
In detail
- A SageMaker deployment has three parts: a model, an endpoint configuration and the endpoint.
- Scripted deployments are repeatable and reviewable.
Side by side with look-alikes
| Method | Automatable? |
|---|---|
| SageMaker SDK, Boto3, CLI | Yes |
| Console clicks | No |
| Email to Support | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The SageMaker AI SDK for Python, Boto3 or the AWS CLI to create the model, endpoint configuration and endpointRight
Automate deployments with the SageMaker AI SDK, Boto3 or the CLI.
B. Clicking through the console during each releaseWrongMost tempting
Manual console steps are not automatable.
Why it tempts: The console is the easiest way to learn deployment. But it cannot run inside an automated pipeline.
C. Emailing the model file to AWS SupportWrong
AWS Support does not deploy models.
D. Amazon PollyWrong
Polly turns text into speech.
In practice
- Deploy to staging first, run tests, then promote.
Use case
An illustrative scenario, not a real incident.
A pipeline step calls the SDK to deploy each approved model version to a staging endpoint.
See how it works
flowchart LR M["Model: artifact and container"] --> C["Endpoint configuration: instances"] C --> E["Endpoint"]
How to read this chart
- Read it in order: Model: artifact and container, then Endpoint configuration: instances, then Endpoint.