Skip to content
Microsoft Certified: Multi-Agent AI Solutions Expert (AI-500) Exam Prep

Lesson 6 of 10 · 14 min

x
6/10

Domain 2: Develop Multi-Agent Solutions in Azure (Part 4 of 4)

This lesson covers 4 exam topics: Scaling Agent Spawning and Concurrency, Integrating Existing Agents with A2A and MCP, Orchestration Frameworks, Middleware for Cross-Cutting Concerns. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.

1. Scaling Agent Spawning and Concurrency

Video lesson: AI-500 22/39: Scaling Agent Spawning and Concurrency

Central question: How do you control how many agents run, and how fast?

Facts

  • Concurrent orchestration runs agents in parallel and aggregates results; parallel function calls reduce round trips.
  • The Durable Extension scales durable agents across distributed, stateless workers on demand (Azure Functions or self-hosted), with checkpoints and session TTL cleanup.
  • Hosted agents scale per session and deprovision after the idle timeout; Azure OpenAI deployments have TPM/RPM quotas, and API Management llm-token-limit enforces tokens per minute or quotas per key.
  • Always bound loops (LoopAgent default 10 invocations).

Design guidance

  • Cap fan-out (maximum concurrent subagents), use batching for bulk work (Batch deployments for non-urgent jobs), and queue requests when quotas are near limits.
  • Budget per task: maximum agents spawned, tool calls and tokens; stop and escalate when exceeded.

Exam traps

  • Unbounded spawning of subagents.
  • Real-time deployment for overnight bulk jobs. Use batch.
  • Ignoring 429s under concurrency.

2. Integrating Existing Agents with A2A and MCP

Video lesson: AI-500 23/39: Integrating Existing Agents with A2A and MCP

Central question: How do you bring existing agents into a solution securely?

Facts

  • A2A tool connects a Foundry agent to any A2A-compatible endpoint; the project connection stores auth (key-based, OAuth 2.0, user Entra token, project managed identity).
  • Expose a Foundry agent over A2A by enabling incoming A2A; callers need Foundry Agent Consumer on the target project.
  • If an endpoint requires auth to read its agent card, set send_credentials_for_agent_card to true; otherwise the card is fetched anonymously.
  • Existing tool-style capabilities can be wrapped as MCP servers and governed through API Management or a Foundry Toolbox; Agent Framework includes an A2A integration.

Design guidance

  • Treat remote agents as untrusted: validate their responses, scope what context you send, and apply guardrails on tool responses.

Exam traps

  • Sending full conversation history to a third-party agent.
  • Anonymous agent card fetch when the card is protected.
  • Granting Owner where Foundry Agent Consumer suffices.

3. Orchestration Frameworks

Video lesson: AI-500 24/39: Orchestration Frameworks

Central question: Which framework orchestrates the agents?

Facts

  • Microsoft Agent Framework (Python, .NET; Go preview): agents, graph-based workflows, sessions, context providers, middleware, MCP clients; successor to Semantic Kernel and AutoGen.
  • LangGraph graphs can run as Foundry hosted agents with the langchain_azure_ai.agents.hosting package (Responses or Invocations protocol), deployed with azd or Foundry Toolkit; LangChain can use Foundry Toolbox, memory and tracing.
  • Hugging Face models (Transformers library) can be deployed from the model catalog to Azure Machine Learning managed online endpoints; CPU for testing, GPU for production; third-party license terms apply.
  • Tracing conventions cover Agent Framework, LangChain, LangGraph and OpenAI Agents SDK.

Design guidance

  • Use Hugging Face Transformers for specialized local capabilities (classification, NER, embeddings, small task models) that an agent calls as tools.

Exam traps

  • Rewriting a working LangGraph agent just to host it. Host it as-is.
  • CPU instance for a large production model.
  • Ignoring model license terms from Hugging Face.

4. Middleware for Cross-Cutting Concerns

Video lesson: AI-500 25/39: Middleware for Cross-Cutting Concerns

Central question: Where do logging, authorization and exception handling live?

Facts

  • Agent Framework middleware types: agent run (all runs), function calling (all tool calls), and IChatClient / chat middleware (inference calls); multiple middleware form a chain, each calling next.
  • Middleware implements cross-cutting concerns: logging, security validation, error handling, termination and guardrails (stop processing, enforce policies, limit conversation length), result overrides and shared state.
  • FIDES (experimental, Python) is information-flow control middleware with integrity and confidentiality labels for deterministic prompt-injection defense.
  • A Microsoft Purview middleware integration is available for Agent Framework.

Design guidance

  • Put authorization checks in function-calling middleware so every tool call is checked the same way across agents.

Exam traps

  • Copy-pasted logging and auth code in every agent.
  • Only non-streaming middleware when streaming output must be intercepted.
  • Heuristic prompts when a deterministic control is required.

References

  1. AI-500 study guide — checked Oct 22, 2026
  2. Concurrent orchestration — checked Oct 22, 2026
  3. Durable Extension — checked Oct 22, 2026
  4. llm-token-limit policy — checked Oct 22, 2026
  5. Connect to an A2A endpoint — checked Oct 22, 2026
  6. Agent Framework A2A — checked Oct 22, 2026
  7. Agent Framework overview — checked Oct 22, 2026
  8. Host LangGraph agents — checked Oct 22, 2026
  9. Deploy Hugging Face models — checked Oct 22, 2026
  10. Middleware — checked Oct 22, 2026
  11. Termination and guardrails — checked Oct 22, 2026
  12. Agent security (FIDES) — checked Oct 22, 2026

Check your understanding

  • Limit tokens per minute per team key?Show answer

    Answer

    llm-token-limit policy.
  • Minimum role to invoke another project's agent via A2A?Show answer

    Answer

    Foundry Agent Consumer.
  • Host LangGraph in Foundry?Show answer

    Answer

    Hosted agent via langchain_azure_ai hosting.
  • Check every tool call's permissions?Show answer

    Answer

    Function calling middleware.
  • Run agents reliably across workers?Show answer

    Answer

    Durable Extension.
Previous

Progress is saved in this browser.

Next Lesson