Perform Evaluation, Error Analysis, and Tuning
This domain tests your ability to define what success looks like for agentic AI tasks, measure it using signals and tooling, diagnose failures from artifacts and traces, and act on those findings to improve agent behavior. It accounts for 18% of the exam, making it one of the largest weighted domains. Questions will ask you to select the right evaluation signal for a scenario, classify a failure type from a trace excerpt, or choose the correct tuning action given a described symptom.
Specifying Expected Outcomes and Operational Constraints for Agent Tasks
Expected outcomes are the explicit, measurable results an agent task must produce. Operational constraints bound how the agent may pursue those results — covering latency, cost, tool access, iteration limits, and safety thresholds.
Outcome Specification
Every agent task specification must include three elements:
| Element | Description | Example |
|---|---|---|
| Goal condition | The terminal state the agent must reach | "A pull request is opened with passing CI" |
| Acceptance criteria | Measurable properties of the output | "Summary is ≤ 150 words, references only cited files" |
| Boundary conditions | States that constitute failure | "Agent must not delete files outside /tmp" |
Operational Constraints
Hard constraints halt execution if violated (e.g., maximum tool call budget, forbidden file paths). Soft constraints generate warnings but allow continuation (e.g., preferred response format). GitHub Copilot agent mode and GitHub Models both expose constraint surface through system prompts, agent instructions files (.github/copilot-instructions.md), and workflow-level environment guards.
Key constraint categories the exam tests:
- Iteration/step limits: Maximum number of agentic loop turns before forced termination. Default in GitHub Copilot agent mode is implementation-defined but questions assume you know that unbounded loops are a misconfiguration.
- Tool access scope: Which MCP servers or built-in tools an agent may invoke.
- Output schema: Structured output requirements that define correctness of form independent of content.
- Confidentiality constraints: Which context the agent may include in responses (e.g., no secrets, no internal URLs in public-facing output).
Common Traps
- Confusing goal conditions (what to achieve) with acceptance criteria (how to verify achievement). Both are required.
- Treating soft constraints as equivalent to hard constraints in failure analysis — the exam distinguishes them.
- Omitting boundary conditions from the spec and then being unable to classify an out-of-scope action as a failure.
- Assuming the
.github/copilot-instructions.mdfile controls all constraints — it controls instruction-level behavior, not tool-level access scoping (that is MCP server configuration).
Identifying Qualitative and Quantitative Evaluation Signals
Evaluation signals are the evidence sources used to judge whether an agent task met its expected outcomes. The exam distinguishes between signals that produce numeric scores and those that require human or model judgment.
| Signal Type | Subtype | Examples | Tooling |
|---|---|---|---|
| Quantitative | Deterministic | Pass/fail on unit tests, file diff size, build exit code | CI logs, GitHub Actions step outputs |
| Quantitative | Statistical | BLEU, ROUGE, exact-match rate, F1 over a dataset | Azure AI Evaluation SDK, custom scripts |
| Qualitative | Human | Relevance rating, coherence score, preference vote | GitHub Issues feedback, manual rubrics |
| Qualitative | Model-as-judge | GPT-4o scoring a response against a rubric | Azure AI Evaluation SDK evaluate() with built-in evaluators |
Key Evaluators in GitHub/Azure AI Tooling
The Azure AI Evaluation SDK (used alongside GitHub Models and GitHub Copilot pipelines) provides built-in evaluators:
RelevanceEvaluator— model-as-judge; scores how relevant the response is to the query (1–5 scale).CoherenceEvaluator— model-as-judge; scores logical flow and consistency.GroundednessEvaluator— model-as-judge; scores whether claims are supported by retrieved context. Critical for RAG agents.FluencyEvaluator— model-as-judge; scores language quality.SimilarityEvaluator— requires a ground-truth answer; computes semantic similarity.F1ScoreEvaluator— token-overlap F1 against ground truth; fully deterministic.ViolenceEvaluator,HateEvaluator,SexualEvaluator,SelfHarmEvaluator— Azure AI Content Safety evaluators for safety signal generation.
Exam rule: If a question asks which evaluator requires a ground-truth answer, the answer is
SimilarityEvaluatororF1ScoreEvaluator. Model-as-judge evaluators do not require ground truth.
Common Traps
- Selecting
GroundednessEvaluatorfor a task that has no retrieved context — it is only meaningful when a context/document is supplied. - Treating CI test results (binary pass/fail) as qualitative signals — they are quantitative/deterministic.
- Assuming model-as-judge scores are reproducible at exact values — they are stochastic and should be averaged over multiple runs.
- Confusing
SimilarityEvaluator(semantic, model-based, needs ground truth) withF1ScoreEvaluator(token overlap, deterministic, needs ground truth).
Unlock with a paid plan
9 more sections (about 3,065 words) continue below. Every paid plan unlocks all GH-600 study guides, the full question bank and mock exams, from $4.97/month.