Generative AI Engineer Associate · Domain 6: Evaluation and Monitoring · 12% of the exam
Task 6.2: Evaluate agent performance using MLflow scoring and tracing; Identify evaluation judges that require ground truth; Use Databricks custom Scorers for evaluating agents and LLMs; Incorporate SME feedback to improve agent performance
mlflow.genai.evaluate with evaluation datasets, judges that need expectations and judges that do not, code-based scorers and custom judges, and the Review App with labeling sessions.
Study it
MLflow evaluation: judges, ground truth and custom scorers
SME feedback with the Review App and labeling sessions
Lesson coming
Sample questions
Try each one before opening the answer. Every option is explained, with the Databricks documentation page that proves it.
Question 1 · choose 2
An evaluation dataset holds 300 real questions with no expected answers or facts yet. Which TWO built-in judges cannot be used until expectations are added? (Choose TWO.)
ACorrectness
BRetrievalGroundedness
CRelevanceToQuery
DRetrievalSufficiency
ESafety
Show the answer and why
ACorrectness
Correct
Correctness compares the response with the provided ground truth, so it needs expectations.
BRetrievalGroundedness
Incorrect
Groundedness compares the response with the retrieved context and needs no ground truth.
CRelevanceToQuery
Incorrect
Relevance compares the response with the request and needs no ground truth.
DRetrievalSufficiency
Correct
RetrievalSufficiency checks whether the context contains the ground-truth facts, so it needs expectations.
ESafety
Incorrect
Safety inspects the content itself and needs no ground truth.
Among built-in judges, Correctness, RetrievalSufficiency and ToolCallCorrectness require ground truth in expectations. RelevanceToQuery, RetrievalRelevance, Safety, RetrievalGroundedness and Guidelines need only inputs and outputs.
Every response must be JSON with an answer and a citations list, and each cited chunk_id must be one the retriever returned in that request. The check must be deterministic and give identical results on reruns. Which scorer should the engineer build?
AA Guidelines judge stating that each answer must be JSON citing chunks the retriever returned
BA custom judge built with make_judge that reads the full trace of each request
CA code-based @scorer that parses the output and checks its citations against the retriever span
DThe Correctness judge with the expected citations stored as expectations per row
Show the answer and why
AA Guidelines judge stating that each answer must be JSON citing chunks the retriever returned
Incorrect
Guidelines judges use an LLM to grade natural-language rules, so results are not deterministic and ids are not checked against the trace exactly.
BA custom judge built with make_judge that reads the full trace of each request
Incorrect
A custom judge is still an LLM-based scorer; it adds nuance the check does not need and loses determinism.
CA code-based @scorer that parses the output and checks its citations against the retriever span
Correct
Code-based scorers receive outputs and the full trace, so they can check format and cited ids exactly, with no LLM involved.
DThe Correctness judge with the expected citations stored as expectations per row
Incorrect
Correctness is an LLM judge of answer quality, which is neither a format check nor deterministic.
Use code-based scorers for programmatic, deterministic checks such as format validation and exact matching. They can return booleans, numbers or Feedback objects and can inspect intermediate steps through the trace.
Pharmacists who are new to Databricks will label agent traces in the MLflow Review App. They are provisioned in the account but cannot open the labeling session. What else do they need?
AWorkspace access and Databricks SQL access entitlements, and CAN_EDIT on the experiment
BCAN QUERY on the agent's serving endpoint and nothing else
CWorkspace admin rights so they can see every experiment
DSELECT on the Unity Catalog trace tables only, with no workspace entitlement assigned to them
Show the answer and why
AWorkspace access and Databricks SQL access entitlements, and CAN_EDIT on the experiment
Correct
The Review App loads traces through workspace routes and queries a SQL warehouse, and reviewers need CAN_EDIT on the experiment.
BCAN QUERY on the agent's serving endpoint and nothing else
Incorrect
Querying the endpoint is not what labeling existing traces requires.
CWorkspace admin rights so they can see every experiment
Incorrect
Admin rights grant far more than labeling needs; the specific entitlements and experiment permission suffice.
DSELECT on the Unity Catalog trace tables only, with no workspace entitlement assigned to them
Incorrect
Account provisioning and table access are not enough; the Review App needs the Workspace access entitlement.
Domain experts labeling existing traces must be provisioned in the account, have the Workspace access and Databricks SQL access entitlements, and have CAN_EDIT permission on the MLflow experiment.