Two candidate assistants sit on the same dashboard. Both answer the sample questions. Both look fluent. Finance wants one number by Thursday, and \”looks good\” is not a number anyone will sign. That is the moment Databricks agent evaluation stops being a nice-to-have and becomes the skill the Generative AI Engineer Associate actually tests: turning an impression into a measured judgment, then keeping that judgment alive after the agent ships.
In my book I call the instruments a Judgment Stack. Cheap counts sit at the bottom. LLM judges sit above them. Custom scorers encode your own definition of good. Calibrated humans sit on top. Evaluation is the half you run before release. Monitoring is the half you run on live traffic. Same scorers, different population, and the exam loves to blur them.
If you are mapping the full exam first, start with my Databricks Generative AI Engineer Associate study guide. This post zooms into judges, ground truth, tracing, and AI Gateway.
Where Evaluation and Monitoring sits in the exam
According to the official certification page, Evaluation and Monitoring is 12% of the exam. Application Development is 30%, Assembling and Deploying Apps is 22%, Design Applications and Data Preparation are 14% each, and Governance is 8%. The exam has 45 scored questions in 90 minutes, and the fee is US$200. Check the official exam page before you book, because those details can change.
Twelve percent looks small until you notice how many objectives sit under it, and how often the same ideas show up when you choose a model or compare lifecycle phases in Application Development. You do not need dumps for this section. You need to recognize which instrument answers which question.
Why \”looks good\” is not a metric
A generative answer has no single correct string. BLEU, ROUGE, and exact match measure how much wording overlaps a reference you supply. That is useful when the task really does have one stable reference, like translation or summarization against an editor’s gold summary. For an open-ended support reply, overlap grades coincidence of phrasing, not faithfulness, relevance, or safety. A fluent wrong answer can score high. A correct answer worded differently can score low.
So evaluation is not one number. It is a stack:
- Deterministic metrics: cheap counts of what can be counted.
- LLM judges: models that read an answer for groundedness, relevance, safety, or correctness.
- Custom scorers: your own rules, in code or as a small judge with your rubric.
- Human experts: the people who decide what good meant before any instrument went looking.
Climb only as far as the question forces you. Finance did not ask for a Friday labeling party. They asked for a defensible choice between two models on quality, latency, and cost measured on your task. That is an experiment, not a leaderboard. I covered logging those runs under Unity Catalog in MLflow + Unity Catalog for GenAI.
Tracing is the flight log, scoring is the grade
MLflow tracing records what the agent did: tool calls, retrieved passages, model steps, final answer. A full Traces tab is invaluable for debugging. It is not evaluation. A traced hallucination and a traced correct answer look equally complete. Tracing captures. Scoring judges.
On Databricks, the harness is mlflow.genai.evaluate. You hand it a dataset, a traced predict_fn, and a list of scorers. It runs the agent per row, then the scorers read each resulting trace and attach feedback. Agent-specific scorers can grade the path, not only the destination: whether the right tools were called, and whether the path was efficient. That matters because an agent can luck into a correct answer down a wasteful path.
A compact shape looks like this:
import mlflow
from mlflow.genai.scorers import (
RetrievalGroundedness,
RelevanceToQuery,
Safety,
)
# Each row is one test case. Add expectations only when a judge needs ground truth.
# eval_dataset = [{"inputs": {"question": "..."}, "expectations": {"expected_facts": [...]}}, ...]
result = mlflow.genai.evaluate(
data=eval_dataset,
predict_fn=support_agent,
scorers=[
RetrievalGroundedness(),
RelevanceToQuery(),
Safety(),
],
)
The same scorers you attach here are the ones you later register over production. Evaluation builds the grader. Monitoring gives it the live feed. For where serving endpoints fit the lifecycle, see Model Serving vs ai_query.
Databricks agent evaluation: which judges need ground truth
This is the flashcard the exam almost writes for you. Sort every built-in judge by one question: what does it compare the answer against?
Two judges need a supplied correct answer, usually as expected_response or expected_facts on the evaluation row:
- Correctness: is the answer right against the expected answer or facts?
- RetrievalSufficiency: did retrieval bring back enough context to produce those expected facts?
The rest grade against material already in the run and need no labeled answer key:
- RetrievalGroundedness: are the claims supported by the retrieved context?
- RelevanceToQuery: does the answer address the question?
- Safety: is the text free of harmful content?
- Guidelines: does the answer meet natural-language rules you wrote?
- RetrievalRelevance and ToolCallEfficiency: also reference-free; ToolCallCorrectness needs expectations.
Confirm the current list in the built-in LLM judges docs. Names and arguments can shift, but the ground-truth split is the skill.
Two ambushes sit next to that split. Groundedness is not correctness. An answer can be perfectly supported by bad or incomplete sources and still be wrong. And there is no built-in \”PII judge\” that replaces prevention. Leaked personal data is a perimeter failure you stop with masking and guardrails, not a quality score you compute after the fact. I covered that perimeter in Databricks GenAI guardrails.
Custom scorers and the human layer
Built-in judges cover general notions of quality. They do not know your house rules: a required price disclaimer, a forbidden competitor name, a tone your brand insists on. Those belong in a custom scorer, either a deterministic Python check or a small LLM judge given your rubric, dropped into the same scorers list.
When domain experts disagree on the same answers, do not average the scores, drop the disputed cases, or hand the whole job to a model. Divergent ratings mean the standard is still ambiguous. Write a shared rubric, calibrate the experts until they converge, and use their aligned labels as expectations. Those expectations are exactly the ground truth correctness and sufficiency were missing. On Databricks, labeling sessions and the Review App are how that feedback becomes an evaluation dataset rather than a noisy spreadsheet.
This is the kind of judgment I drill in the free course, one short 30-60 minute session at a time, because it is about reading the requirement, not memorizing a feature list. If that helps you, the Generative AI Engineer Associate course is right there.
Evaluation vs monitoring: the inputs stop being yours
Databricks names the phases offline evaluation and production monitoring. Monitoring is described as running evaluation on sampled production traces. Same instruments. Different population.
In evaluation you chose the inputs and attached expectations. In monitoring the inputs choose you. That is why a passing curated suite can coexist with a support queue that says quality slipped. Growing the eval set enrols more cases you thought of. It cannot enrol the case nobody imagined. Production is the only phase that can surface that failure.
Not every scorer crosses. Production traces carry inputs and outputs, not expectations, so judges that need ground truth stay offline. Reference-free judges such as Safety, RelevanceToQuery, RetrievalGroundedness, Guidelines, and ToolCallEfficiency can run over live traffic. Correctness comes back out of band: sample interesting traces, label them, promote them into an evaluation dataset, then run Correctness offline. Monitoring is not a replacement for evaluation. It is the supply of cases evaluation could not invent.
Production monitoring is currently in Beta. You register a scorer against the experiment your app traces into, then start it with a sampling rate. Critical safety checks often run at full coverage. Expensive judges usually sample a fraction, because every sampled trace is a judge call you pay for. Read the current production monitoring docs before you promise a coverage number.
Inference tables, traces, and AI Gateway
Deploying an agent typically switches on two parallel records. An inference table in Unity Catalog holds one row per request that crossed the endpoint: identifiers, timing, status, raw request and response. MLflow traces hold what happened inside: retriever spans, tool calls, model steps. Production quality monitoring reads the traces. The table is an audit record. Nothing scores it on your behalf.
That \”and\” in \”inference tables and monitoring\” is a conjunction, not a pipeline. The table answers what was said. The trace answers why. If a past complaint cannot be reproduced, you locate the interaction in the table, then open the matching trace and read the retriever span. Relevance failing means retrieval missed. Relevance passing while groundedness fails means retrieval worked and generation went beyond the evidence. For the retrieval pieces the exam tests, see RAG on Databricks.
Recording is automatic. Judging is not. Tables and traces can fill for months with zero quality scores if you never register a scorer. \”We have monitoring\” is only true once you can name the scorer that is running.
AI Gateway is the control plane sitting in front of model traffic: usage tracking, rate limiting, and inference logging as one geometry rather than four separate projects. Databricks has been evolving per-endpoint AI Gateway and Unity AI Gateway side by side, with different schemas and preview labels, so read the current AI Gateway docs rather than trusting an old screenshot. A rate limit caps throughput per minute. It is not a monthly budget. A budget is denominated in money over a billing period. Confusing those two is a classic trap when spend is the complaint.
The traps to rehearse
These are the ambushes I would rehearse in a 30-60 minute session:
- Looks good versus measured. Fluency is not a metric.
- Trace versus score. A full Traces tab is capture, not a verdict.
- Ground truth versus no ground truth. Correctness and sufficiency need a key; groundedness, relevance, and safety do not.
- Groundedness versus correctness. Supported by sources is not the same as actually right.
- Average versus calibrate. Divergent experts need a rubric, not a mean.
- Evaluated versus monitored. A green curated suite is not evidence about wild traffic.
- Recorded versus evaluated. Tables and traces without scorers are storage, not monitoring.
- Rate limit versus budget. Per-minute throughput is not a spend ceiling.
A quick way to practice: take any scenario, ask where the inputs came from and what the judge must compare against, then check that the option you like can actually run on that data. If it asks for expectations you do not have, or claims a curated suite proves production quality, that option is the trap.
FAQ
How much of the exam is Evaluation and Monitoring?
The official certification page lists Evaluation and Monitoring at 12%. Related model-selection and lifecycle-comparison ideas also appear in Application Development, so the topic shows up more often than the weight alone suggests.
Which judges require ground truth?
Correctness and RetrievalSufficiency need expected answers or expected facts. ToolCallCorrectness also needs expectations. Groundedness, relevance, safety, guidelines, and ToolCallEfficiency do not. Always confirm against the current docs.
Is enabling tracing the same as evaluating an agent?
No. Tracing records what happened. Evaluation runs scorers over those traces through mlflow.genai.evaluate or production monitoring. Capture is the input. Judgment is the separate act.
Can Correctness run on live production traffic?
Not directly. Live traces have no expectations field. Sample production traces, label them, promote them into an evaluation dataset, then run Correctness offline.
Judge it before you trust it, watch it after you ship it
If you take one idea from this post, make it this: evaluation measures the inputs you chose, and monitoring measures the inputs that chose you. Climb the Judgment Stack only as far as the question demands, know which judges need a key, and register reference-free scorers over production so the failures nobody curated can still be seen. You do not need dumps for this. You need to recognize the trap when the exam sets it.
If you want a structured path with short daily sessions built around these traps, my free Databricks Generative AI Engineer Associate course walks you through every section of the exam.

Leave a Reply