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

Lesson 2 of 10 · 15 min

x
2/10

Domain 1: Architect Multi-Agent Solutions (Part 2 of 2)

This lesson covers 4 exam topics: Memory Architecture and Context Sharing, Integration and Zero Trust Components, State Persistence and Compute Components, Observability, Monitoring and SDLC Tooling. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.

1. Memory Architecture and Context Sharing

Video lesson: AI-500 06/39: Memory Architecture and Context Sharing

Central question: What does each agent remember, for how long, and who shares it?

Facts

Memory type (Foundry)HoldsRetrieve
User profileDurable preferences and personal contextNear the start of each conversation
Chat summaryDistilled summaries of prior topicsPer turn, from current messages
ProceduralReusable how-to routinesWhen a recurring workflow is requested
  • Short-term memory tracks the current session (usually managed by the orchestration framework); long-term memory retains distilled knowledge across sessions.
  • Foundry Agent Service memory (preview) is long-term: extraction, consolidation (LLM merges duplicates, resolves conflicts), retrieval.
  • Use memory for learned user or agent context, a Foundry IQ knowledge base for curated organizational content, and file search for documents a user provides during an interaction.
  • Agent Framework context providers run around each invocation to add context before and process data after; integrations include Foundry, Azure AI Search, Cosmos DB, Redis, Mem0 and Neo4j.

Design guidance

  • Context sharing between agents: pass only what the next agent needs (task, key facts, references), not the whole transcript; keep shared team state in a store both can read.

Exam traps

  • Memory for company policies. Use a knowledge base.
  • Sharing full transcripts between agents. Pass scoped context.
  • Treating session history as long-term memory.

2. Integration and Zero Trust Components

Video lesson: AI-500 07/39: Integration and Zero Trust Components

Central question: Which components route agents to tools, knowledge and each other, under Zero Trust?

Facts

  • Foundry Toolbox: define tools once and expose them through one MCP-compatible endpoint; centralizes authentication, versioning and policy; usable by any MCP client (Agent Framework, LangGraph, custom).
  • API Management AI gateway: governs model APIs, remote MCP servers and A2A agent APIs; token limits, token metrics, semantic caching, load balancing.
  • Agent identity per agent with RBAC on each downstream resource; token audience must match the downstream service (for example https://storage.azure.com), not the MCP server URL.
  • Zero Trust controls also include input and output filtering, agent guardrails, logging and observability, abuse and anomaly detection, model supply chain governance, and red teaming.

Design guidance

  • Prevent lateral movement: separate identities and network paths per agent, no shared secrets, deny by default, and private endpoints between services.
  • Map controls to compliance requirements (for example data residency, audit logging, retention) for regulated deployments.

Exam traps

  • Each agent re-implements the same tool with its own secrets. Use a toolbox.
  • Wrong token audience (the MCP server URL).
  • One identity across agents, enabling lateral movement.

3. State Persistence and Compute Components

Video lesson: AI-500 08/39: State Persistence and Compute Components

Central question: Where does state live, and what compute runs the agents?

Facts

  • Hosted agents: your code (Agent Framework, LangGraph, Semantic Kernel or custom) packaged as a container in Azure Container Registry; Agent Service assigns an agent identity and a dedicated endpoint, and handles scaling and session state.
  • Hosted agents run in per-session VM-isolated sandboxes with a persistent filesystem ($HOME and /files); idle timeout configurable 2–240 minutes (default 15); state is restored when the session resumes (scale to zero with stateful resume).
  • Choose hosted agents over prompt agents to bring your own code, use custom protocols, control CPU and memory, or run stateful and long-lived work.
  • Foundry memory store quotas: up to 100 scopes per store, 10,000 memories per scope; default TTL can be set per store; VNet integration isn't supported for memory stores.

Design guidance

  • Three state tiers: session state (conversation, short-lived), shared team state (workflow or task state readable by cooperating agents, for example Cosmos DB or Redis), long-term semantic memory (memory store or vector index) with TTL and per-tenant scopes.

Exam traps

  • Shared memory scope across tenants. Isolate per tenant or user.
  • Prompt agent for custom code and protocols. Use a hosted agent.
  • No TTL on personal memories.

4. Observability, Monitoring and SDLC Tooling

Video lesson: AI-500 09/39: Observability, Monitoring and SDLC Tooling

Central question: Which observability, monitoring and developer tools does a multi-agent team need?

Facts

  • Foundry tracing uses OpenTelemetry semantic conventions and stores telemetry in Application Insights; it captures inputs, outputs, tool calls and results, tokens and latency; tracing is GA for prompt and hosted agents (workflow and external agents preview).
  • Microsoft and Cisco Outshift contributed OpenTelemetry multi-agent semantic conventions (agent invocations, orchestration, planning), built on W3C Trace Context, integrated in Foundry, Agent Framework, LangChain, LangGraph and OpenAI Agents SDK.
  • Agent Monitoring Dashboard shows token usage, latency, success rates, evaluation and red-teaming results; continuous evaluation scores production traffic; Insights (preview) clusters recurring behavior from traces.
  • Developer tooling: Foundry Toolkit for VS Code (create hosted agents, trace locally), Azure Developer CLI (azd ai agent init/run/invoke, azd up, pipeline config), Bicep or Terraform infrastructure.

Design guidance

  • Dev containers and pinned dependencies make agent environments reproducible; repository AI instructions (for example coding-agent instruction files) document conventions for AI coding assistants.
  • Agent replay: keep traces with inputs, tool results and model versions so a failed run can be reproduced.

Exam traps

  • Proprietary logging per agent. Use OpenTelemetry with shared conventions.
  • Logs without correlation IDs across services.
  • Monitoring only infrastructure, not quality.

References

  1. AI-500 study guide — checked Oct 22, 2026
  2. Memory in Foundry Agent Service — checked Oct 22, 2026
  3. Context providers — checked Oct 22, 2026
  4. Toolbox overview — checked Oct 22, 2026
  5. AI gateway — checked Oct 22, 2026
  6. Agent identity — checked Oct 22, 2026
  7. Secure agentic AI systems — checked Oct 22, 2026
  8. Hosted agents — checked Oct 22, 2026
  9. Agent tracing overview — checked Oct 22, 2026
  10. Agent Monitoring Dashboard — checked Oct 22, 2026
  11. Insights in Foundry — checked Oct 22, 2026
  12. CI/CD with azd — checked Oct 22, 2026

Check your understanding

  • Remember a user's seat preference next month?Show answer

    Answer

    Long-term (user profile) memory.
  • One endpoint for shared tools?Show answer

    Answer

    Foundry Toolbox (MCP).
  • Custom LangGraph code on Foundry?Show answer

    Answer

    Hosted agent.
  • Standard for cross-agent traces?Show answer

    Answer

    OpenTelemetry with W3C Trace Context.
  • Ground on HR policies?Show answer

    Answer

    Foundry IQ knowledge base.
Previous

Progress is saved in this browser.

Next Lesson