AI-500 developing multi-agent solutions
Developing multi-agent solutions in Azure is the biggest AI-500 domain at 30-35% of the exam. It covers advanced prompting, memory and context, tools and MCP, and orchestration. Microsoft’s outline expects you to make implementation choices, not just define terms, so for each topic ask which option fits the scenario and what breaks if you choose the wrong one.
Prompt engineering and fine-tuning
Advanced techniques include examples (few-shot), dynamic context injection, defensive guidelines against manipulation, and prompt lifecycle management (versioning, testing and rolling out prompt changes like code). Context-aware behavior means an agent adapts to the user, task and state. Fine-tuning is a strategy decision about data and frequency: use it when prompting and retrieval cannot reach the quality you need, and plan how often to refresh it.
Context, memory and knowledge
- Context management has four verbs: accumulate, retrieve, inject and compact. Compaction (summarizing or pruning) keeps long runs inside the context window, at the risk of losing detail.
- Memory for one agent or many needs security, compliance, lifecycle, storage and session management.
- Multi-agent RAG: chunking strategy, embedding quality and retrieval precision. Poor chunking returns irrelevant passages; low precision floods agents with noise.
- Knowledge integration: search, RAG, MCP-exposed sources and semantic search so several agents can consume the same knowledge.
Tools and MCP
Function calling, specified tool use and dynamic tool use differ in how much the agent decides. You also build MCP servers and clients, with Azure Functions, Azure Logic Apps and Azure API Management as hosts or front doors. Do not skip reliability: design error handling and fallbacks, and validate tool results before an agent acts on them.
Orchestration
| Pattern | Shape | Use when |
|---|---|---|
| Sequential | A then B then C | Steps depend on earlier output |
| Parallel | Many agents at once | Independent subtasks |
| Hub-and-spoke | A coordinator and specialists | Central control and routing |
| Orchestrator-subagent | A lead agent spawns subagents | Dynamic decomposition |
| Peer-to-peer | Agents talk directly | Flexible collaboration; harder to control |
Other implementation topics: human-in-the-loop approvals and overrides, caching (prompt, semantic and response), controlling spawning, batching and concurrency, integrating existing agents securely with A2A or MCP, frameworks (Agent Framework, LangChain, LangGraph), Hugging Face Transformers for advanced capabilities, and middleware for logging, authorization and exception handling across the solution.
Choosing between options
- Latency versus cost: caching and smaller models reduce both; parallelism cuts latency but multiplies token use.
- Control versus flexibility: hub-and-spoke gives control; peer-to-peer gives flexibility at the price of predictability.
- Reuse versus rewrite: integrate an existing agent through A2A or MCP instead of rebuilding it.
Common traps
- Fine-tuning when the real problem is retrieval quality.
- Letting agents spawn subagents without limits.
- Trusting a tool result without validation.
- Using semantic caching where answers must be exact or user-specific.
Three practice questions
Question 1. Retrieval for a multi-agent assistant returns long, loosely related passages, and answers are vague. Which change should you try first?
- A. Fine-tune the model on all documents
- B. Improve chunking and retrieval precision
- C. Add three more agents that each retrieve
- D. Reduce the context window
Show answer
Answer: B
Chunking and retrieval precision are the usual cause: better chunk boundaries and filtering return focused passages. Fine-tuning does not fix retrieval noise, adding agents multiplies the noise, and lowering the context window makes the situation worse.
Want more questions like this? Full AI-500 practice tests →
Question 2. A team has a mature procurement agent built by another group on a different framework. A new orchestration needs it as one step. What is the best integration approach?
- A. Integrate it securely through A2A or MCP
- B. Rebuild it from scratch in the new framework
- C. Copy its prompt into a new agent and ignore its tools
- D. Call it without authentication to save time
Show answer
Answer: A
Integrating through a standard protocol such as A2A or MCP, with proper authentication, reuses the existing agent securely. Rebuilding wastes effort, copying its prompt loses its tools and data, and bypassing authentication is insecure.
Want more questions like this? Full AI-500 practice tests →
Question 3. An orchestrator spawns a subagent per customer record, and a batch of 5000 records saturates rate limits and costs spike. What should you add?
- A. Unlimited parallel spawning
- B. Remove error handling and retries
- C. Ignore cost until the next quarter
- D. Limits on spawning, batching and concurrency tuned to rate limits and budget
Show answer
Answer: D
Controlling spawning, batching and concurrency, with limits aligned to rate limits and budget, addresses the cause. Unlimited spawning makes it worse, removing retries reduces reliability, and ignoring cost does not solve saturation.
Want more questions like this? Full AI-500 practice tests →