Domain 3: Evaluate, Optimize, and Monitor Multi-Agent Solutions (Part 2 of 2)
This lesson covers 3 exam topics: Reliability and SLA Monitoring, Token Usage and Cost Management, Tracing in Foundry. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Reliability and SLA Monitoring
Central question: How do you know the agents are healthy, reliable and within SLA?
Facts
- Agent Monitoring Dashboard (Monitor tab): token usage, latency, success rates, evaluation and red-teaming results; reads from the connected Application Insights.
- Continuous evaluation runs evaluators on sampled production traffic to catch quality regression and drift.
- Insights (preview) groups recurring behavior with representative traces, affected versions, likely cause and recommended action.
- Traces correlate steps across agents and services using W3C Trace Context; correlate evaluation run IDs with trace data.
Design guidance
- Define SLOs per user journey (availability, p95 latency, task success) and alert on burn rate; include dependency health (models, tools, search).
- Automated remediation: retry or fail over to another deployment, roll back an agent version, or disable a failing tool, with runbooks.
Exam traps
- Uptime only while answers silently degrade.
- No per-version view, hiding a bad release.
- Alert storms without SLO-based thresholds.
2. Token Usage and Cost Management
Central question: How do you control tokens and charge costs back to teams?
Facts
- Foundry project-level chargeback (preview): every project's usage carries a project tag automatically; filter Cost Management by it (Models sold by Azure only).
- Cost Management: budgets, alerts, cost analysis filtered by deployment and user-defined tags; roles Cost Management Reader and Foundry User.
- API Management llm-emit-token-metric sends prompt, completion and total token metrics to Application Insights with up to 5 custom dimensions (for example team or subscription); llm-token-limit enforces per-key rates and quotas.
- Prompt caching and smaller models reduce input cost; bounded loops and tool-call limits stop runaway agents.
Design guidance
- Allocate quotas per team or product; show token use per agent, tool and step from traces.
Exam traps
- Manual tags when project tags already exist.
- Too many unique dimension values (each dimension is limited to 100 values).
- No loop or tool-call limits.
3. Tracing in Foundry
Central question: How do you trace and alert on multi-agent execution in Foundry?
Facts
- Tracing captures user inputs and outputs, tool calls and results, token consumption, and duration and latency; viewable in Foundry and Application Insights.
- Prerequisites: tracing enabled with a connected Application Insights resource; Log Analytics Reader to view traces; telemetry storage incurs Application Insights costs.
- OpenTelemetry GenAI semantic conventions (Development status) plus multi-agent conventions; traces, spans (with child spans) and attributes; best practice: consistent span attributes across agents.
- Server-side tracing for prompt and hosted agents with no code changes; client-side instrumentation for app code.
Design guidance
- Propagate one correlation ID (trace context) from the user request through every agent, tool and A2A call; alert on error rate, latency, token spikes and evaluation scores.
Exam traps
- Logging sensitive prompt content without controls.
- Separate trace IDs per agent, breaking correlation.
- Missing Log Analytics Reader for people who must view traces.
References
- AI-500 study guide — checked Oct 22, 2026
- Agent Monitoring Dashboard — checked Oct 22, 2026
- Insights in Foundry — checked Oct 22, 2026
- Agent tracing overview — checked Oct 22, 2026
- Plan and manage costs — checked Oct 22, 2026
- llm-emit-token-metric — checked Oct 22, 2026
- llm-token-limit — checked Oct 22, 2026
- Set up tracing — checked Oct 22, 2026
Check your understanding
Quality drop in production?Show answerHide answer
Answer
Continuous evaluation.Split shared Foundry spend by project?Show answerHide answer
Answer
Project tag chargeback.Role to view traces?Show answerHide answer
Answer
Log Analytics Reader.Group recurring failures from traces?Show answerHide answer
Answer
Insights.Token metrics per team via gateway?Show answerHide answer
Answer
llm-emit-token-metric.