Skip to content
Microsoft Certified: Machine Learning Operations Engineer Associate (AI-300) Exam Prep

Lesson 7 of 8 · 13 min

x
7/8

Domain 4: Implement Generative AI Quality Assurance and Observability

This lesson covers 4 exam topics: Test Datasets and Data Mapping, Quality, Safety and Automated Evaluations, Monitoring Performance and Cost, Tracing, Logging and Debugging. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.

1. Test Datasets and Data Mapping

Video lesson: AI-300 24/31: Test Datasets and Data Mapping

Central question: How do you prepare data for GenAI evaluation?

Facts

  • Evaluation datasets are typically JSONL rows with fields such as query, response, context and ground_truth (or messages for conversations).
  • Data mapping connects dataset fields to evaluator inputs, e.g. {{item.query}}, {{item.messages}}; evaluators need specific inputs (groundedness needs context; completeness needs ground truth).
  • Evaluate existing query-response datasets, or have Foundry generate responses from a model or agent for test queries; evaluate production traces.

Dataset design (design guidance)

Real queries, edge cases, adversarial prompts, multi-turn conversations; ground truth for factual items; versioned in Git.

Exam traps

  • Missing context field for groundedness.
  • No ground truth for completeness/similarity metrics.
  • Happy-path-only datasets.

2. Quality, Safety and Automated Evaluations

Video lesson: AI-300 25/31: Quality, Safety and Automated Evaluations

Central question: Which metrics, and how do you run them automatically?

Facts

  • Quality: coherence (logical flow), fluency (language quality), groundedness, relevance, response completeness, retrieval metrics.
  • Risk and safety evaluators: hate_unfairness, violence, sexual, self_harm, protected_material, indirect_attack, code_vulnerability, ungrounded_attributes, sensitive data leakage, prohibited actions.
  • Custom evaluators for domain rules; agent evaluators (tool call accuracy, task completion).
  • Automation: cloud evaluations via SDK, the evaluation GitHub Action (preview) in CI, and continuous evaluation of production traces.

Exam traps

  • Coherence/fluency to check facts. Use groundedness.
  • No safety evaluation before release.
  • Manual one-off evaluations only.

3. Monitoring Performance and Cost

Video lesson: AI-300 26/31: Monitoring Performance and Cost

Central question: What do you watch in production, and how do you control cost?

Facts

  • Foundry monitoring (Application Insights): token consumption, latency, error rates, quality scores; alerts on thresholds; continuous evaluation of production traffic.
  • Throughput limits: TPM/RPM quotas; 429 when exceeded; PTU utilization metrics.

Cost levers (design guidance on verified features)

Token analytics per app/agent; smaller models or model router; prompt and context trimming; caching; batch for asynchronous work (50% discount); PTU reservations for steady high volume.

Exam traps

  • Average latency only. Track percentiles and per-step latency.
  • No per-feature token tracking.
  • Ignoring 429 trends (capacity planning).

4. Tracing, Logging and Debugging

Video lesson: AI-300 27/31: Tracing, Logging and Debugging

Central question: How do you debug GenAI apps in production?

Facts

  • OpenTelemetry-based tracing in Application Insights: LLM calls, tool invocations, agent decisions, retrieval, latency, exceptions, prompt content.
  • Server-side tracing for prompt and hosted agents once Application Insights is connected (no code changes); client-side instrumentation for your app code; supports Agent Framework, LangChain, LangGraph, OpenAI Agents SDK.
  • Query traces with KQL; evaluate traces.

Debug loop (design guidance)

Find failing or slow traces → inspect spans (retrieval, tool, model, guardrail) → fix → re-evaluate on the same dataset → monitor.

Exam traps

  • Debugging from final answers only.
  • Logging prompts with sensitive data without controls.
  • Proprietary tracing when OpenTelemetry is supported.

References

  1. AI-300 study guide — checked Oct 22, 2026
  2. Evaluate generative AI apps — checked Oct 22, 2026
  3. Cloud evaluation — checked Oct 22, 2026
  4. General-purpose evaluators — checked Oct 22, 2026
  5. Risk and safety evaluators — checked Oct 22, 2026
  6. RAG evaluators — checked Oct 22, 2026
  7. Observability in Foundry — checked Oct 22, 2026
  8. Provisioned throughput — checked Oct 22, 2026
  9. Set up tracing — checked Oct 22, 2026

Check your understanding

  • Map a dataset column to an evaluator input?Show answer

    Answer

    Data mapping, e.g. {{item.query}}.
  • Writing quality regardless of facts?Show answer

    Answer

    Coherence and fluency.
  • Where are GenAI metrics stored?Show answer

    Answer

    Application Insights.
  • Agent traces with no code?Show answer

    Answer

    Connect Application Insights (server-side tracing).
  • Needed for groundedness?Show answer

    Answer

    Context.
Previous

Progress is saved in this browser.

Next Lesson