Domain 2: Implementation and Integration (Part 1 of 2)
This lesson covers 5 exam topics: Agent Architectures: Memory, Reasoning and Coordination, Safeguarded Agents and Human Review, Tool Integration and MCP Servers, Model Deployment Strategies, Enterprise Integration Architectures. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Agent Architectures: Memory, Reasoning and Coordination
Central question: How do you build agents that remember, reason step by step, and coordinate?
Building blocks (skill 2.1.1)
| Need | AWS / open source (verified where linked) |
|---|---|
| Agent framework | Strands Agents (open-source SDK, Apache-2.0; agents-as-tools, swarm, graph, workflow patterns) |
| Multi-agent orchestration | AWS Agent Squad (open-source, Apache-2.0: manages multiple agents and complex conversations) |
| Run agents in production | Amazon Bedrock AgentCore: Runtime, Memory (short- and long-term), Gateway, Identity, Policy, Observability |
| Agent–tool interaction | MCP |
| Managed agents (legacy) | Bedrock Agents multi-agent collaboration: supervisor plus collaborator agents — now Agents Classic, closed to new customers |
Structured reasoning (skill 2.1.2)
- ReAct (reason + act): the model alternates thinking, calling a tool and observing the result (general background).
- Chain-of-thought: reason step by step before answering.
- The guide pairs both with Step Functions to make each reasoning step an explicit, observable state.
Model coordination (skill 2.1.4; design guidance)
- Specialised FMs per sub-task (a small model for classification, a strong one for synthesis).
- Ensembles with custom aggregation logic (vote, pick best by a judge).
- Model selection frameworks that route by task type.
Exam traps
- Proposing Bedrock Agents for a new build. Use AgentCore (or Strands on AgentCore Runtime).
- One general agent for everything when specialists plus a supervisor fit.
- No memory design: replaying full history every turn.
2. Safeguarded Agents and Human Review
Central question: How do you stop agents from running away, and keep people in the loop?
Safeguards (skill 2.1.3)
| Safeguard | AWS |
|---|---|
| Stopping conditions (max steps, goal reached) | Step Functions state machine limits |
| Timeouts | Lambda timeouts; Step Functions task timeouts |
| Resource boundaries | IAM policies: least privilege per tool |
| Circuit breakers | Stop calling a failing tool or model; fall back |
| Tool-call rules | AgentCore Policy: deterministic rules on which tools, actions and conditions, enforced at the Gateway (verified) |
Human collaboration (skill 2.1.5)
- Step Functions orchestrates review and approval: pause with a task token until a person approves (callback pattern; general background).
- API Gateway endpoints collect feedback.
- Human augmentation patterns: the agent drafts, the person decides on high-impact actions.
- Amazon Augmented AI (A2I) added human review for low-confidence predictions — no longer open to new customers (verified).
Exam traps
- Unbounded agent loops with no step limit or timeout.
- One IAM role with broad permissions shared by every tool.
- Recommending A2I to a new customer without noting it is closed.
3. Tool Integration and MCP Servers
Central question: How do you give models reliable tools, and serve them in a standard way?
Reliable tools (skill 2.1.6; design guidance plus guide examples)
- Standardised function definitions: clear name, description, typed parameters (JSON schema) so the model calls tools correctly.
- Strands APIs to implement custom tool behaviours.
- Lambda for parameter validation and error handling: reject bad inputs, return clear error messages the model can act on.
- Idempotent tools, so retries don't double-charge or double-send.
MCP servers (skill 2.1.7)
| Server type | Host | When |
|---|---|---|
| Stateless, lightweight tools | AWS Lambda | Quick lookups, simple actions |
| Complex tools (long-running, stateful, heavy dependencies) | Amazon ECS (containers) | Larger tool suites |
| Existing APIs | AgentCore Gateway converts APIs and Lambda functions into MCP tools (verified) | No rewrite |
Use MCP client libraries so every agent accesses tools the same way. MCP is an open standard for connecting AI applications to tools, data and workflows (verified).
Exam traps
- Vague tool descriptions, so the model picks the wrong tool.
- No validation: the model passes malformed parameters straight to a production API.
- Hosting a heavy, stateful tool server on Lambda when ECS fits better.
4. Model Deployment Strategies
Central question: Where and how should the model run for this workload?
Matching deployment to need (skill 2.2.1)
| Need | Option |
|---|---|
| Spiky, on-demand calls | Lambda calling Bedrock on-demand |
| Steady, high volume, guaranteed capacity | Bedrock provisioned throughput (hourly per model unit; custom models use it or an on-demand custom model deployment) |
| Open-weight or custom model, full control | SageMaker AI endpoints (real-time, serverless, async, batch) |
| Hybrid | Bedrock for general tasks + SageMaker AI for a specialised model |
Why LLM deployment differs (skill 2.2.2; general background plus guide)
- Large memory footprint for weights; GPU utilisation; throughput measured in tokens.
- Container-based deployment tuned for these (SageMaker AI large model inference containers), with model loading strategies such as sharding the model across GPUs.
Balancing performance and cost (skill 2.2.3)
- Pick the smallest model that meets the bar; use smaller pre-trained models for narrow tasks.
- Model cascading: send routine queries to a cheap model, escalate hard ones to a stronger model (API-based cascade).
Exam traps
- Provisioned throughput for occasional traffic.
- Self-hosting on SageMaker AI when Bedrock already offers the model.
- One large model for every query when a cascade would cut cost.
5. Enterprise Integration Architectures
Central question: How do you plug GenAI into existing systems without tight coupling?
Connectivity patterns (skill 2.3.1; guide examples, design guidance)
- API-based integration with legacy systems: wrap them behind APIs the GenAI layer calls.
- Event-driven architecture: systems publish events; GenAI components react, loosely coupled.
- Data synchronisation: keep knowledge bases and caches aligned with systems of record.
Enhancing existing applications (skill 2.3.2)
| Building block | Use |
|---|---|
| Amazon API Gateway | Microservice integration; one managed front door for AI features |
| AWS Lambda | Webhook handlers (CRM, ticketing, chat platforms) |
| Amazon EventBridge | Event-driven integration: route events (new ticket, new document) to AI processing |
| Amazon SQS / SNS | Buffer and fan out work; decouple producers from slow model calls |
Example: a new support ticket → EventBridge rule → Lambda summarises with Bedrock → writes back to the CRM (design guidance).
Exam traps
- Synchronous calls from a legacy system straight to an FM, blocking on slow responses.
- Point-to-point integrations everywhere instead of events.
- No queue, so traffic spikes hit model quotas.
References
- AIP-C01 Domain 2 — checked Oct 19, 2026
- AgentCore — checked Oct 19, 2026
- Strands Agents — checked Oct 19, 2026
- Agent Squad — checked Oct 19, 2026
- Bedrock multi-agent collaboration — checked Oct 19, 2026
- Step Functions — checked Oct 19, 2026
- Amazon A2I — checked Oct 19, 2026
- Model Context Protocol — checked Oct 19, 2026
- Provisioned Throughput — checked Oct 19, 2026
- SageMaker AI inference options — checked Oct 19, 2026
- SageMaker large model inference — checked Oct 19, 2026
- Amazon EventBridge — checked Oct 19, 2026
- Amazon API Gateway — checked Oct 19, 2026
Check your understanding
Open-source SDK to write agents in Python with MCP tools?Show answerHide answer
Answer
Strands Agents.Pause a workflow until a manager approves a refund?Show answerHide answer
Answer
Step Functions with a callback task token.Lightweight stateless MCP server?Show answerHide answer
Answer
Lambda.Predictable high-volume traffic needing guaranteed capacity on Bedrock?Show answerHide answer
Answer
Provisioned throughput.Trigger AI summarisation whenever a ticket is created?Show answerHide answer
Answer
EventBridge rule → Lambda → Bedrock.