Skip to content
AWS Certified Machine Learning Engineer – Associate (MLA-C02) Exam Prep

Lesson 5 of 8 · 18 min

x
5/8

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

Video lesson: MLA-C02 21/35: Compute, Endpoints and Inference Strategies

Central question: Where should the model run, and how should requests reach it?

Inference options

OptionLimitsUse
Real-time25 MB payload, 60 s (8 min streaming)Low latency, steady traffic
Serverless4 MB, 60 s; no idle costIntermittent traffic
Asynchronous1 GB, up to 1 hour; scale to zeroLarge or slow requests, queued
Batch transformGBs, daysOffline datasets

Hosting many models

StrategyHowUse when
Multi-model endpointMany models share a fleet and one serving container; models load on demandMany similar models (same framework), mixed traffic; tolerate cold starts
Multi-container endpointUp to several different containers on one endpoint; run as an inference pipeline in sequence, or invoke one directlyDifferent frameworks or pre/post-processing chains
Dedicated endpointOne modelHigh 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

Video lesson: MLA-C02 22/35: Deploying FMs and External Models

Central question: How do you serve foundation models and models trained elsewhere on AWS?

FM deployment options

OptionBillingUse
Bedrock on-demandPer tokenVariable traffic, managed models
Bedrock provisioned throughputHourly per model unitSteady load; guaranteed capacity
Bedrock batch inference~50% lowerOffline jobs
Cross-Region inferenceNo routing chargeMore throughput; geographic or global profiles
SageMaker AI endpointInstance hoursOpen-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

Video lesson: MLA-C02 23/35: Deploying Agents and Agent State

Central question: How do you run agents in production, connect their tools, and keep their state?

Agent infrastructure

NeedAWS
HostingAgentCore Runtime: serverless, isolated sessions, any framework (Strands, LangGraph, CrewAI) and model
ToolsAgentCore Gateway: APIs and Lambda as MCP tools
StateAgentCore Memory: short-term (session) and long-term (cross-session)
Identity and rulesAgentCore Identity, Policy on tool calls
ObservabilityAgentCore 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

Video lesson: MLA-C02 24/35: Knowledge Bases and Retrieval Pipelines

Central question: How do you build, configure and tune a production knowledge base?

Creating a knowledge base

ChoiceOptions
TypeManaged (recommended; connectors, document-level permissions, agentic retrieval) or customer-managed (your vector store)
Vector storeOpenSearch Serverless/managed, Aurora PostgreSQL, Neptune Analytics, S3 Vectors, Pinecone, Redis Enterprise Cloud, MongoDB Atlas
ParsingDefault, Bedrock Data Automation, FM parser
ChunkingDefault, fixed-size, hierarchical, semantic, none, custom Lambda
EmbeddingsE.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

Video lesson: MLA-C02 25/35: 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

  1. MLA-C02 Domain 3 — checked Oct 19, 2026
  2. Inference options — checked Oct 19, 2026
  3. Multi-model endpoints — checked Oct 19, 2026
  4. Multi-container endpoints — checked Oct 19, 2026
  5. Custom Model Import — checked Oct 19, 2026
  6. Provisioned Throughput — checked Oct 19, 2026
  7. Cross-Region inference — checked Oct 19, 2026
  8. AgentCore — checked Oct 19, 2026
  9. Bedrock Agents — checked Oct 19, 2026
  10. Knowledge Bases — checked Oct 19, 2026
  11. KB sync — checked Oct 19, 2026
  12. KB query configuration — checked Oct 19, 2026
  13. SageMaker hosting in a VPC — checked Oct 19, 2026
  14. Deploy models — checked Oct 19, 2026
  15. MLA-C01 vs C02 comparison — checked Oct 19, 2026

Check your understanding

  • Host 1,000 per-customer XGBoost models cheaply?Show answer

    Answer

    Multi-model endpoint.
  • Bring a fine-tuned open model into Bedrock's API?Show answer

    Answer

    Custom Model Import.
  • Serverless hosting with session isolation for a LangGraph agent?Show answer

    Answer

    AgentCore Runtime.
  • SharePoint source with per-document permissions?Show answer

    Answer

    Managed knowledge base.
  • Minimum subnets for a SageMaker model in a VPC?Show answer

    Answer

    Two, in different AZs.
Previous

Progress is saved in this browser.

Next Lesson