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

Lesson 8 of 10 · 11 min

x
8/10

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

Video lesson: AI-500 30/39: 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

Video lesson: AI-500 31/39: 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

Video lesson: AI-500 32/39: 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

  1. AI-500 study guide — checked Oct 22, 2026
  2. Agent Monitoring Dashboard — checked Oct 22, 2026
  3. Insights in Foundry — checked Oct 22, 2026
  4. Agent tracing overview — checked Oct 22, 2026
  5. Plan and manage costs — checked Oct 22, 2026
  6. llm-emit-token-metric — checked Oct 22, 2026
  7. llm-token-limit — checked Oct 22, 2026
  8. Set up tracing — checked Oct 22, 2026

Check your understanding

  • Quality drop in production?Show answer

    Answer

    Continuous evaluation.
  • Split shared Foundry spend by project?Show answer

    Answer

    Project tag chargeback.
  • Role to view traces?Show answer

    Answer

    Log Analytics Reader.
  • Group recurring failures from traces?Show answer

    Answer

    Insights.
  • Token metrics per team via gateway?Show answer

    Answer

    llm-emit-token-metric.
Previous

Progress is saved in this browser.

Next Lesson