CCDV-F · Domain 4: Eval, Testing, and Debugging · 10% of the exam
Task 4.1: Evaluation Design
Building an evaluation that measures a stated quality goal: LLM-as-judge graders checked against human labels, golden sets, regression tests and behavioural checks, with metrics that hold up.
Study it
Evaluations: calibrated LLM-as-judge graders, golden sets and regression tests
Try each one before opening the answer. Every option is explained, with the Anthropic documentation page that proves it.
Question 1 · choose 1
Your evaluation uses Claude as a judge with this grader prompt:prompt = f"""Grade the support reply for accuracy.
<rubric>{rubric}</rubric>
<transcript>{transcript}</transcript>
Answer only PASS or FAIL."""When you compare its verdicts with your human-labeled set, most disagreements are on transcripts that were cut off before the reply's key facts, which the human graders marked "cannot tell". The judge always answers PASS or FAIL on them. What change to the grader addresses this?
AReplace the judge with an exact-match check against a golden reply for every transcript
BGrade every transcript with human reviewers only, since a model judge cannot be trusted with partial input
CAsk the judge for a score from 1 to 10 instead of PASS or FAIL so that uncertain cases land in the middle
DLet the judge answer "Unknown" when the transcript does not hold enough information to grade it
Show the answer and why
AReplace the judge with an exact-match check against a golden reply for every transcript
Incorrect
Exact match suits clear-cut categorical answers, not judging whether a free-form reply is accurate.
BGrade every transcript with human reviewers only, since a model judge cannot be trusted with partial input
Incorrect
A model judge can handle partial transcripts once it has a way out, such as returning Unknown.
CAsk the judge for a score from 1 to 10 instead of PASS or FAIL so that uncertain cases land in the middle
Incorrect
A finer scale still forces a verdict on transcripts that lack the information to grade.
DLet the judge answer "Unknown" when the transcript does not hold enough information to grade it
Correct
Giving the judge a way out, such as returning Unknown, avoids hallucinated verdicts.
To avoid hallucinated verdicts, give an LLM judge a way out, such as an instruction to return "Unknown" when it doesn't have enough information.
Your golden set for a coding agent includes a task that says "write a script that exports last month's invoices to CSV." The task's tests look for the script at scripts/export_invoices.py. The agent often writes a working script under another name, and the task fails. What does Anthropic's guidance on agent evals say to fix?
AThe task: state the expected file path in its description, so that everything graded is clear from the task
BThe grader: check the exact sequence of tool calls the agent made instead of the files that it produced in the run
CThe trials: run the task more times and keep the best result so that the failures average out
DThe set: drop the task from the golden set, since a task that agents fail is a capability gap
Show the answer and why
AThe task: state the expected file path in its description, so that everything graded is clear from the task
Correct
A task should be passable by an agent that follows instructions; unstated paths make it fail through no fault of its own.
BThe grader: check the exact sequence of tool calls the agent made instead of the files that it produced in the run
Incorrect
Grading specific step sequences is too rigid; grade what the agent produced, not the path it took.
CThe trials: run the task more times and keep the best result so that the failures average out
Incorrect
More trials measure the same flawed task again; the specification is what needs fixing.
DThe set: drop the task from the golden set, since a task that agents fail is a capability gap
Incorrect
The failure comes from the task's wording, not from what the agent can do.
A good eval task is one two domain experts would grade the same way, and it should be passable by an agent that follows instructions correctly. Everything the grader checks should be clear from the task description, such as the file path a test expects.
Your team has a capability eval suite for a support agent and is adding a regression suite that will run on every prompt and model change. Which TWO statements describe how Anthropic's guidance on agent evals treats regression evals? (Choose TWO.)
AThey should have a nearly 100% pass rate, so a decline signals that something broke
BThey should start at a low pass rate, so that the team has a hill to climb
CCapability tasks that reach high pass rates can graduate into the regression suite
DThey should check that the agent made its tool calls in a fixed order, so any change in path counts as a regression
ETrials should reuse the files and cached data left by earlier trials, so that each run is faster
Show the answer and why
AThey should have a nearly 100% pass rate, so a decline signals that something broke
Correct
Regression evals ask whether the agent still handles the tasks it used to.
BThey should start at a low pass rate, so that the team has a hill to climb
Incorrect
A low starting pass rate describes capability evals, not regression evals.
CCapability tasks that reach high pass rates can graduate into the regression suite
Correct
Graduated tasks then measure whether the agent can still do them reliably.
DThey should check that the agent made its tool calls in a fixed order, so any change in path counts as a regression
Incorrect
Checking a fixed sequence of tool calls is too rigid; grade what the agent produced.
ETrials should reuse the files and cached data left by earlier trials, so that each run is faster
Incorrect
Each trial should start from a clean environment; shared state causes correlated failures.
Regression evals ask whether the agent still handles all the tasks it used to and should pass nearly 100% of the time; capability evals with high pass rates can graduate into that suite. Grade outcomes rather than exact paths, and isolate each trial in a clean environment.
You are building an eval set for a support agent's escalate_to_human tool. Every task in the set is a conversation in which the agent should escalate. After you tune the prompt until the set passes, the agent escalates almost every conversation in production. What does Anthropic's guidance on agent evals say to change in the set?
AAdd more conversations that need escalation, so that the score rests on a larger sample
BAdd conversations where the agent should not escalate, so that the set tests both directions
CRaise the pass threshold to 100% on the existing conversations before tuning the prompt again
DReplace the code grader with an LLM judge, so that borderline escalations can earn partial credit
Show the answer and why
AAdd more conversations that need escalation, so that the score rests on a larger sample
Incorrect
More cases of the same kind keep the set one-sided.
BAdd conversations where the agent should not escalate, so that the set tests both directions
Correct
Balanced problem sets test where a behavior should occur and where it shouldn't; one-sided evals create one-sided optimization.
CRaise the pass threshold to 100% on the existing conversations before tuning the prompt again
Incorrect
A stricter bar on the same one-sided set still rewards escalating everything.
DReplace the code grader with an LLM judge, so that borderline escalations can earn partial credit
Incorrect
A different grader still sees no case in which escalating is wrong.
Test both the cases where a behavior should occur and the cases where it shouldn't. One-sided evals create one-sided optimization: a set that only checks whether the agent escalates when it should can produce an agent that escalates almost everything.
Your customer-facing support agent must behave correctly every time a customer asks, and you run each eval task over several trials. Which metric matches that requirement?
Apass^k, the probability that all k trials succeed
Bpass@k, the chance that at least one of k trials succeeds
CThe best score from any single trial of each task
DTotal token usage across all trials of each task
Show the answer and why
Apass^k, the probability that all k trials succeed
Correct
pass^k measures consistency, which matters where users expect reliable behavior every time.
Bpass@k, the chance that at least one of k trials succeeds
Incorrect
pass@k suits tools where one success is enough; it rises with more tries.
CThe best score from any single trial of each task
Incorrect
The best trial hides the failures a customer would meet.
DTotal token usage across all trials of each task
Incorrect
Token usage tracks cost, not whether the agent succeeds every time.
pass@k measures the likelihood of at least one correct solution in k attempts and rises with k; pass^k measures the probability that all k trials succeed and falls with k. pass^k fits agents where consistency is essential, such as customer-facing ones.