Domain 3: Deployment and Orchestration of ML and AI Workflows (Part 1 of 2)
This lesson covers 5 exam topics: Compute, Endpoints and Inference Strategies, Deploying FMs and External Models, Deploying Agents and Agent State, Knowledge Bases and Retrieval Pipelines, Provisioning: Containers, IaC and VPC Endpoints. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Compute, Endpoints and Inference Strategies
Central question: Where should the model run, and how should requests reach it?
Inference options
| Option | Limits | Use |
|---|---|---|
| Real-time | 25 MB payload, 60 s (8 min streaming) | Low latency, steady traffic |
| Serverless | 4 MB, 60 s; no idle cost | Intermittent traffic |
| Asynchronous | 1 GB, up to 1 hour; scale to zero | Large or slow requests, queued |
| Batch transform | GBs, days | Offline datasets |
Hosting many models
| Strategy | How | Use when |
|---|---|---|
| Multi-model endpoint | Many models share a fleet and one serving container; models load on demand | Many similar models (same framework), mixed traffic; tolerate cold starts |
| Multi-container endpoint | Up to several different containers on one endpoint; run as an inference pipeline in sequence, or invoke one directly | Different frameworks or pre/post-processing chains |
| Dedicated endpoint | One model | High TPS or strict latency |
Compute targets (skill 3.1.1; general background)
SageMaker AI endpoints (CPU, GPU, Inferentia), Bedrock (managed FMs), Lambda (light models), ECS/EKS containers (custom stacks). Orchestrators: SageMaker Pipelines, Step Functions, MWAA (Airflow).
Exam traps
- Real-time endpoint for nightly scoring.
- Multi-model endpoint for models with very different frameworks or strict latency.
- Serverless for 100 MB payloads.
2. Deploying FMs and External Models
Central question: How do you serve foundation models and models trained elsewhere on AWS?
FM deployment options
| Option | Billing | Use |
|---|---|---|
| Bedrock on-demand | Per token | Variable traffic, managed models |
| Bedrock provisioned throughput | Hourly per model unit | Steady load; guaranteed capacity |
| Bedrock batch inference | ~50% lower | Offline jobs |
| Cross-Region inference | No routing charge | More throughput; geographic or global profiles |
| SageMaker AI endpoint | Instance hours | Open-weight or custom models, full control of GPU, container, scaling |
Models built outside AWS (skill 3.1.5; verified)
- Bedrock Custom Model Import: import supported models customized elsewhere (e.g. in SageMaker AI) and invoke them on demand with InvokeModel.
- SageMaker AI: upload model artifacts to S3 and deploy with a framework or large-model-inference container.
Hosting and resource allocation (skill 3.1.7; general background plus guide)
Size GPU memory for model weights plus KV cache; choose tensor parallelism across GPUs for large models; set max concurrent requests; use SageMaker inference components to place several models on one endpoint and allocate accelerators per model.
Exam traps
- Self-hosting a model Bedrock already offers without a reason.
- Provisioned throughput for occasional traffic.
- Rebuilding infrastructure to serve an externally trained model that Custom Model Import supports.
3. Deploying Agents and Agent State
Central question: How do you run agents in production, connect their tools, and keep their state?
Agent infrastructure
| Need | AWS |
|---|---|
| Hosting | AgentCore Runtime: serverless, isolated sessions, any framework (Strands, LangGraph, CrewAI) and model |
| Tools | AgentCore Gateway: APIs and Lambda as MCP tools |
| State | AgentCore Memory: short-term (session) and long-term (cross-session) |
| Identity and rules | AgentCore Identity, Policy on tool calls |
| Observability | AgentCore Observability (OpenTelemetry traces) |
Bedrock Agents is now Agents Classic, closed to new customers (verified).
Agent communication protocols
AgentCore Runtime supports MCP (agent-to-tool) and A2A (agent-to-agent) protocols.
State management (skill 3.2.9; design guidance)
- Session state in AgentCore Memory (or DynamoDB for custom stacks), with TTL for expiry.
- Long workflows in Step Functions so progress survives failures.
- Keep state small: summarise history; store large artefacts in S3 by reference.
Exam traps
- Agents Classic for a new deployment.
- Stateless agent that forgets context between turns.
- Unbounded state growing every turn.
4. Knowledge Bases and Retrieval Pipelines
Central question: How do you build, configure and tune a production knowledge base?
Creating a knowledge base
| Choice | Options |
|---|---|
| Type | Managed (recommended; connectors, document-level permissions, agentic retrieval) or customer-managed (your vector store) |
| Vector store | OpenSearch Serverless/managed, Aurora PostgreSQL, Neptune Analytics, S3 Vectors, Pinecone, Redis Enterprise Cloud, MongoDB Atlas |
| Parsing | Default, Bedrock Data Automation, FM parser |
| Chunking | Default, fixed-size, hierarchical, semantic, none, custom Lambda |
| Embeddings | E.g. Titan Text Embeddings V2 |
Indexing and refresh
Sync is incremental (added, modified, deleted documents only); direct ingestion applies changes in one step for S3 and custom sources.
Retrieval configuration (skills 3.1.8, 3.2.8)
- Search type: SEMANTIC or HYBRID (RDS, OpenSearch Serverless, MongoDB with a filterable text field).
- Number of results, metadata filters, reranking, query decomposition.
- Retrieve-only (Retrieve API) or retrieve-and-generate (RetrieveAndGenerate API), per business need.
Exam traps
- Hybrid search on an unsupported store.
- Forgetting to sync deletions.
- Customer-managed KB when the managed type's connectors and permissions fit.
5. Provisioning: Containers, IaC and VPC Endpoints
Central question: How do you provision ML infrastructure repeatably, privately and cost-effectively?
On-demand vs provisioned (skill 3.2.1; verified where linked)
Bedrock on-demand vs provisioned throughput; SageMaker serverless vs provisioned real-time endpoints; Spot for training. Steady load favours provisioned or committed capacity; spiky load favours on-demand or serverless.
Infrastructure as code (skill 3.2.2; general background)
AWS CloudFormation and AWS CDK define endpoints, roles and pipelines; stacks pass values with outputs and exports (cross-stack references); orchestration (Step Functions, SageMaker Pipelines) triggers provisioning.
Containers (skill 3.2.3)
Store images in Amazon ECR; start from AWS Deep Learning Containers or SageMaker framework containers; pin versions; scan images (Amazon Inspector) (design guidance). Bring-your-own-container is no longer an explicit MLA-C02 objective (verified, guide comparison).
SageMaker endpoints in a VPC (skill 3.2.4; verified)
- Set VpcConfig (subnets and security groups) on CreateModel; SageMaker attaches network interfaces in your VPC.
- Use at least two subnets in different Availability Zones, even with one instance.
- Add VPC interface endpoints (PrivateLink) for SageMaker API/runtime, and an S3 gateway endpoint so containers reach model artifacts without internet access.
Programmatic deployment (skill 3.2.5)
SageMaker Python SDK (model.deploy()), Boto3 (CreateModel → CreateEndpointConfig → CreateEndpoint), or the AWS CLI (verified: SageMaker supports SDK, Boto3 and CLI deployment).
Exam traps
- One subnet for a VPC-hosted endpoint.
- No S3 endpoint in a private VPC, so model artifacts can't load.
- Manual console clicks for production infrastructure.
References
- MLA-C02 Domain 3 — checked Oct 19, 2026
- Inference options — checked Oct 19, 2026
- Multi-model endpoints — checked Oct 19, 2026
- Multi-container endpoints — checked Oct 19, 2026
- Custom Model Import — checked Oct 19, 2026
- Provisioned Throughput — checked Oct 19, 2026
- Cross-Region inference — checked Oct 19, 2026
- AgentCore — checked Oct 19, 2026
- Bedrock Agents — checked Oct 19, 2026
- Knowledge Bases — checked Oct 19, 2026
- KB sync — checked Oct 19, 2026
- KB query configuration — checked Oct 19, 2026
- SageMaker hosting in a VPC — checked Oct 19, 2026
- Deploy models — checked Oct 19, 2026
- MLA-C01 vs C02 comparison — checked Oct 19, 2026
Check your understanding
Host 1,000 per-customer XGBoost models cheaply?Show answerHide answer
Answer
Multi-model endpoint.Bring a fine-tuned open model into Bedrock's API?Show answerHide answer
Answer
Custom Model Import.Serverless hosting with session isolation for a LangGraph agent?Show answerHide answer
Answer
AgentCore Runtime.SharePoint source with per-document permissions?Show answerHide answer
Answer
Managed knowledge base.Minimum subnets for a SageMaker model in a VPC?Show answerHide answer
Answer
Two, in different AZs.