Domain 1: Architect Multi-Agent Solutions (Part 1 of 2)
This lesson covers 5 exam topics: Decomposing Goals into Workflows, Agents and Tools, Designing Workflows, Control Loops and HITL, Agent Personas, Autonomy and Tool Boundaries, Communication Protocols: MCP and A2A, Human-AI Experience and Model Selection. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Decomposing Goals into Workflows, Agents and Tools
Central question: What should be a deterministic step, a tool, an agent or a workflow?
Facts
| Use an agent when | Use a workflow when |
|---|---|
| The task is open-ended or conversational | The process has well-defined steps |
| You need autonomous tool use and planning | You need explicit control over execution order |
| A single LLM call (possibly with tools) suffices | Multiple agents or functions must coordinate |
- Agent Framework guidance: if you can write a function to handle the task, do that instead of using an AI agent.
- Agent Framework has agents (LLM plus tools and MCP servers) and graph-based workflows (executors and edges) for explicit multi-agent orchestration; it succeeds Semantic Kernel and AutoGen.
- Foundry portal workflows (preview) retire December 1, 2026; build new workflows with Microsoft Agent Framework.
Design guidance
- Decompose top-down: business goal, then measurable outcomes, then steps; mark each step as deterministic code, a tool call, an agent decision or a human decision.
- Give each agent one clear responsibility; split agents when instructions, tools or permissions differ, not just to look modular.
- Tools wrap actions with clear inputs and outputs; knowledge sources supply grounding; workflows own ordering and state.
Exam traps
- An agent for a deterministic calculation. Write a function.
- One giant agent with every tool. Split by responsibility and permission.
- New orchestration in Foundry portal workflows. They retire December 1, 2026; use Agent Framework.
2. Designing Workflows, Control Loops and HITL
Central question: How do agents, subagents, loops and human steps fit into one workflow?
Facts
- Agent Framework workflows are built from executors connected by edges, run in supersteps; checkpoints are saved at the end of each superstep (executor state, pending messages, pending requests and responses) so long-running workflows can pause, resume and recover.
- Human-in-the-loop in workflows uses a RequestPort: an executor sends a request, the workflow emits a RequestInfoEvent, and an external system (a person) returns the response.
- Function tools can be marked approval-required; the agent run completes with a request for approval instead of a final answer, and the caller passes the decision back in a new run.
- Agent looping re-invokes an agent until a completion condition is met; always bound autonomous loops (LoopAgent default maximum is 10 invocations; experimental).
- Workflows can be exposed as agents and nested as sub-workflows, which is how subagent hierarchies are composed.
Exam traps
- Unbounded loops relying on the model to stop. Set a maximum.
- Human approval by polling a chat message. Use request/response (RequestPort) or tool approval.
- No checkpoints for long-running workflows.
3. Agent Personas, Autonomy and Tool Boundaries
Central question: How much may each agent do, with which tools, as whom?
Facts
- Zero Trust guidance for agentic systems: design agents as microservices with isolated permissions and narrowly scoped tool access; least privilege and least action (start with no permitted actions, enable incrementally); assign each agent a unique, verifiable identity; explicit action schemas (allowed actions, inputs, risk levels, constraints, logging); system messages reinforce roles but must be backed by deterministic controls.
- Foundry agent identity: a Microsoft Entra service principal per agent, governed by an agent identity blueprint; Agent Service exchanges tokens automatically and the downstream service checks the agent identity's RBAC roles.
- MCP tool authentication options: key-based (shared, no user context), Microsoft Entra with agent identity or project managed identity (shared, no secrets, built-in rotation), OAuth identity passthrough (each user's own identity and permissions).
- MCP tool controls: allowed_tools allow list; require_approval (for example always) for high-risk tools that write data or change resources; log approvals and tool calls.
Design guidance
- Autonomy levels: suggest only, act with approval, act within limits, act autonomously; raise autonomy only with evidence from evaluations.
- Persona: role, audience, tone, scope, refusal rules and escalation path, written in the instructions and enforced by tools and guardrails.
Exam traps
- One shared identity for every agent. Per-agent identity limits blast radius.
- Relying on the system prompt alone to stop dangerous actions.
- Key-based auth when each user's permissions must apply. Use OAuth identity passthrough.
4. Communication Protocols: MCP and A2A
Central question: Which protocol connects agents to tools, and agents to agents?
Facts
| Protocol | Connects | Foundry support |
|---|---|---|
| MCP (Model Context Protocol) | Agent to tools and data (client-server) | MCP tool; Toolbox exposes tools through one MCP endpoint |
| A2A (Agent2Agent) | Agent to remote agent | A2A tool (protocol 1.0, GA; JSON-RPC; text only, no streaming) |
| In-process orchestration | Agents in one app | Agent Framework workflows |
- The A2A tool lets a Foundry agent call a remote A2A endpoint; the calling agent keeps managing the conversation and uses the remote agent's response.
- To call a Foundry agent over A2A: enable incoming A2A on the target and grant the calling identity Foundry Agent Consumer (or higher) on the target project.
- Connected Agents from the classic Agents API isn't available in the new Foundry Agent Service: use the A2A tool or workflows.
- A2A connections store authentication: key-based, OAuth 2.0, user Entra token (passthrough) or project managed identity.
- API Management's AI gateway can govern remote MCP servers and A2A agent APIs as well as model APIs.
Exam traps
- MCP to delegate a whole task to another team's agent. That's A2A.
- Connected Agents in new Foundry. Not available; use A2A or workflows.
- Streaming over A2A to a Foundry agent target. Not supported.
5. Human-AI Experience and Model Selection
Central question: How do users stay in control, and which model fits each task?
Facts (verified and general background)
- Zero Trust positioning controls: clear disclosure that users interact with an autonomous AI agent; capability transparency about what it can and can't do, including uncertainty; avoid positioning agents as authoritative or infallible.
- Model-layer controls: intentional model selection (reasoning depth, refusal behavior and tool use matched to autonomy and risk) and capability alignment (avoid over-capable models when simpler ones meet the need).
- Agent Framework supports runtime model routing; switching models mid-conversation works when history is caller-managed (replayed to the new model) or when the service lets the conversation continue with a new model.
- Microsoft's Guidelines for Human-AI Interaction (HAX Toolkit) group 18 guidelines by phase: initially, during interaction, when wrong, over time (general background).
Design guidance
- Match task demands to model families: small fast models for routing and classification, reasoning models for planning and complex tool use, embedding models for retrieval; evaluate on your own tasks.
- Make failures recoverable: show sources, allow undo, ask for clarification, and offer escalation to a person.
Exam traps
- The largest reasoning model for every agent. Match capability to the task.
- Hiding that the user talks to an agent.
- Switching models without considering where history lives.
References
- AI-500 study guide — checked Oct 22, 2026
- Agent Framework overview — checked Oct 22, 2026
- Build a workflow in Foundry — checked Oct 22, 2026
- Workflows: human-in-the-loop — checked Oct 22, 2026
- Checkpoints — checked Oct 22, 2026
- Tool approval — checked Oct 22, 2026
- Agent looping — checked Oct 22, 2026
- Secure agentic AI systems — checked Oct 22, 2026
- Agent identity — checked Oct 22, 2026
- MCP authentication — checked Oct 22, 2026
- MCP tool — checked Oct 22, 2026
- Connect to an A2A endpoint — checked Oct 22, 2026
- Toolbox overview — checked Oct 22, 2026
- AI gateway in API Management — checked Oct 22, 2026
- Runtime model routing — checked Oct 22, 2026
- HAX Toolkit — checked Oct 22, 2026
Check your understanding
Well-defined steps, explicit order?Show answerHide answer
Answer
Workflow.Pause for a human decision in a workflow?Show answerHide answer
Answer
RequestPort / RequestInfoEvent.Preserve each user's permissions on an MCP server?Show answerHide answer
Answer
OAuth identity passthrough.Agent calls another organization's agent?Show answerHide answer
Answer
A2A.Simple intent routing model?Show answerHide answer
Answer
Small, fast model.