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
Central question: What does each agent remember, for how long, and who shares it?
Facts
| Memory type (Foundry) | Holds | Retrieve |
|---|---|---|
| User profile | Durable preferences and personal context | Near the start of each conversation |
| Chat summary | Distilled summaries of prior topics | Per turn, from current messages |
| Procedural | Reusable how-to routines | When 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
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
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
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
- AI-500 study guide — checked Oct 22, 2026
- Memory in Foundry Agent Service — checked Oct 22, 2026
- Context providers — checked Oct 22, 2026
- Toolbox overview — checked Oct 22, 2026
- AI gateway — checked Oct 22, 2026
- Agent identity — checked Oct 22, 2026
- Secure agentic AI systems — checked Oct 22, 2026
- Hosted agents — checked Oct 22, 2026
- Agent tracing overview — checked Oct 22, 2026
- Agent Monitoring Dashboard — checked Oct 22, 2026
- Insights in Foundry — checked Oct 22, 2026
- CI/CD with azd — checked Oct 22, 2026
Check your understanding
Remember a user's seat preference next month?Show answerHide answer
Answer
Long-term (user profile) memory.One endpoint for shared tools?Show answerHide answer
Answer
Foundry Toolbox (MCP).Custom LangGraph code on Foundry?Show answerHide answer
Answer
Hosted agent.Standard for cross-agent traces?Show answerHide answer
Answer
OpenTelemetry with W3C Trace Context.Ground on HR policies?Show answerHide answer
Answer
Foundry IQ knowledge base.