Module 4 practice questions: Evaluation engineering and release gates
15 questions · Evaluation Engineering and Quality Assurance
Practice questions written by Sanjay Shah. Not exam questions, not affiliated with or endorsed by Anthropic.
Question 1
The eval suite reports 94% overall, and the team is happy. The same week, two customers report seeing another tenant's order ids in answers. The set has 60 cases, 8 of them cross-tenant. Which two changes to the eval would best catch this? (Choose TWO.)
- A) Add 100 more everyday cases, so the overall score is more stable.
- B) Swap the judge for a stronger model, so it notices leaks.
- C) Report scores per category instead of only as one overall number.
- D) Add a zero-tolerance code grader for other tenants' ids (and the other safety categories) that blocks on any single failure.
- E) Raise the overall pass target from 90% to 98%.
Show answer
Answer: C, D
- A: Wrong. More everyday cases dilute the small dangerous categories even further.
- B: Wrong. A leaked order id is something code detects exactly; the problem is how results are added up, not the judge.
- C: Right. 8 cases are about 13% of the set, so even total failure there barely moves a blended score; per-category reporting makes it visible.
- D: Right. One leak is a fact, not a statistic; a zero-tolerance code grader blocks the merge on any single failure.
- E: Wrong. A higher overall target still lets a whole small category fail.
Question 2
Each case stores an exact expected answer, and a case fails if the output differs. Most failures turn out to be correct answers with different wording, and engineers have started ignoring the eval. What is the best fix?
- A) Store expected behaviour per case (must escalate, must cite an alpine doc, must not refund) and grade that, whatever the wording.
- B) Keep the reference answers, but pass a case when string similarity to the reference is at least 0.9.
- C) Set
temperatureto 0, so the model produces the reference wording every time. - D) Have a judge check only whether the output means the same as the reference answer.
Show answer
Answer: A
- A: Right. Many wordings are correct; behaviour assertions (escalate, cite, don't refund) are what matters, and they stay stable across wordings.
- B: Wrong. String similarity punishes correct rewordings and can reward a wrong answer that shares words.
- C: Wrong. Current models such as Claude Opus 5.5 reject sampling parameters like
temperature(checked 2026-11-25), and low randomness wouldn't reproduce a reference text anyway. - D: Wrong. It still ties each case to one reference and spends model calls on what is really a behaviour check.
Question 3
The team wants to make sure no refund is ever issued without a person's approval. Their plan is to have an LLM judge read every transcript and decide whether an unapproved refund happened. What is the better design?
- A) Keep the judge, but give it a written rubric for what counts as an approval.
- B) Have a person review every refund transcript every week.
- C) Ask the agent to state at the end of each run whether it issued an unapproved refund.
- D) A code grader over the recorded tool calls: any
issue_refundcall without anapprovedByvalue fails the case.
Show answer
Answer: D
- A: Wrong. A judge can misread a transcript, costs money and needs calibrating, all for a question code answers exactly.
- B: Wrong. A weekly human review is slow and doesn't block a bad change before it merges.
- C: Wrong. The agent's own report is exactly what you can't trust after an injection or a bug.
- D: Right. "Was
issue_refundcalled without an approval?" has an exact answer in the tool-call log: cheap, exact, on every run.
Question 4
The judge prompt is "Rate this support answer from 1 to 10." A prompt change makes answers longer and less accurate, and the average judge score goes up. What is the best fix?
- A) Add "Do not favour longer answers" to the judge prompt and keep the 1–10 scale.
- B) Replace the scale with a written pass/fail rubric, judge one criterion per call with reasoning before the verdict, and calibrate the judge against human labels.
- C) Average the 1–10 scores from three different judge models.
- D) Cap product answers at 100 words, so length can't affect the score.
Show answer
Answer: B
- A: Wrong. With a vague scale and no calibration, you can't tell whether the extra line helped.
- B: Right. It fixes both causes: vague scales and length bias. Calibration shows the judge now agrees with people.
- C: Wrong. Averaging three uncalibrated judges gives a smoother version of the same bias.
- D: Wrong. It bends the product to suit a broken instrument; some answers need to be long.
Question 5
You label 40 answers by hand for the "grounded" criterion, and 92% of them pass. The judge agrees with you on 92% of the cases. Your lead asks whether the judge is good enough. What is the best response?
- A) Not yet: check the chance-corrected agreement (Cohen's kappa) and the disagreements, because a judge that always says "pass" would also agree 92% of the time here.
- B) Yes: 92% agreement is excellent, so ship it.
- C) No conclusion is possible without at least 1,000 labels.
- D) Compare the judge with a second judge model instead of with human labels.
Show answer
Answer: A
- A: Right. When 92% pass, chance agreement is high; kappa corrects for chance, and the disagreements show whether the judge catches any failures.
- B: Wrong. An "always pass" judge would score 92% here and catch nothing.
- C: Wrong. 40 well-chosen labels are enough to expose a useless judge.
- D: Wrong. Two models agreeing doesn't show either agrees with careful people.
Question 6
The "grounded" judge has a kappa of 0.45 against human labels, and your target is 0.7. Reading the disagreements, almost all involve hedged claims such as "refunds after 30 days are usually not possible", which the human failed and the judge passed. What is the best next step?
- A) Change the human labels to match the judge, since the judge is consistent.
- B) Switch straight to the largest available model as judge.
- C) Tighten the rubric on that edge case (a hedged statement about policy is still a claim and needs a source), then re-run the calibration.
- D) Lower the target to 0.4, since hedged claims are a grey area.
Show answer
Answer: C
- A: Wrong. Changing labels to fit the instrument destroys your ground truth.
- B: Wrong. A bigger judge reading an ambiguous rubric still disagrees on the ambiguous part; fix the definition first.
- C: Right. The disagreements point at an ambiguous rubric; clarify it there and measure again. That's the calibration loop.
- D: Wrong. Lowering the bar keeps a judge that misses exactly the claims that create risk.
Question 7
The team moves the judge from
claude-sonnet-5toclaude-sonnet-5-5. With no change to the product, judged scores rise 6 points. What is the best response?- A) Report the improvement: the product is performing better.
- B) Recalibrate the new judge on the human labels, record its agreement with the model id and rubric version, and re-baseline; don't compare scores across the two judges.
- C) Revert the last product release, since something changed.
- D) Average the old and new judges' scores from now on.
Show answer
Answer: B
- A: Wrong. Nothing in the product changed; the measuring tool did.
- B: Right. Scores are only comparable within one judge setup (model plus rubric); a new judge model is a new instrument to calibrate, record and re-baseline.
- C: Wrong. There's no evidence the product changed, so reverting is random action.
- D: Wrong. Averaging two instruments with different biases produces a number that means nothing.
Question 8
You compare prompt v7 with v8 pairwise, and you notice the judge picks whichever answer is shown first about 70% of the time. What is the best fix?
- A) Always show v8 first, so the bias is at least consistent.
- B) Randomise the order once per pair.
- C) Go back to scoring each answer alone on a 1–10 scale.
- D) Judge each pair in both orders, count a win only when both orders agree, and count a split as a tie.
Show answer
Answer: D
- A: Wrong. It builds the bias in, in v8's favour.
- B: Wrong. One random order per pair turns the bias into noise, and you can't tell which verdicts it decided.
- C: Wrong. It brings back vague-scale and length-bias problems and loses pairwise sensitivity.
- D: Right. Judging both orders cancels position bias, and a split honestly says the order mattered more than the answers did.
Question 9
A PR moves the "normal" category from 90% to 87% pass on 60 cases, with one run per case. The author says it's noise; the reviewer wants to block it. What is the best way to settle it?
- A) Run each case several times and compare the change with the noise margin for this set size (roughly ±8 points here); don't block on this drop alone.
- B) Block it: any drop in any category is a regression.
- C) Ignore the eval and decide from a few manual tests.
- D) Before merging, add 200 synthetic everyday cases to the set.
Show answer
Answer: A
- A: Right. At p ≈ 0.9 and n = 60, the rough 95% margin is ±2 × √(0.9 × 0.1 / 60) ≈ ±0.08, so 3 points is noise. Repeated runs shrink the noise and expose flaky cases.
- B: Wrong. Blocking every move inside the noise blocks good PRs at random, and people start bypassing the gate.
- C: Wrong. A few manual tests are noisier than the eval.
- D: Wrong. Synthetic cases added in a hurry for this PR don't settle this PR.
Question 10
The gate requires "at least 90% overall". After 15 new hard injection cases are added, every PR fails. Last month, a PR that dropped the score from 98% to 91% passed. What is the best redesign?
- A) Lower the threshold to 80%.
- B) Remove the new hard cases, since they make the gate fail.
- C) Compare each category with main's stored baseline (allowing about the noise margin) and keep zero tolerance for safety categories, instead of one absolute threshold.
- D) Keep the threshold, and require two reviewer approvals for any PR that fails it.
Show answer
Answer: C
- A: Wrong. A lower absolute bar still can't see a 98-to-91 drop.
- B: Wrong. Removing hard cases blinds the eval to the attacks they were added for.
- C: Right. Comparing with main's baseline measures what the PR changed, survives harder cases being added, and zero tolerance keeps safety failures absolute.
- D: Wrong. Extra approvals don't fix a gate that measures the wrong thing; people approve failures they think are unfair.
Question 11
The eval gate runs only when
src/**/*.tschanges. Someone edits a prompt file, it ships without an eval, and escalations rise. Which two changes best close the gap? (Choose TWO.)- A) Run the gate nightly instead of on PRs.
- B) Trigger the gate on prompt files, tool definitions, model config (model id, effort) and retrieval parameters, as well as code.
- C) Add a CODEOWNERS rule so a senior engineer reviews prompt files.
- D) Include the eval cases, graders, baseline and the gate workflow itself in the trigger paths, so the gate can't be quietly weakened.
- E) Ask authors to run the evals by hand before merging prompt changes.
Show answer
Answer: B, D
- A: Wrong. Nightly runs find the problem after the merge, not before it.
- B: Right. Behaviour changes come from prompts, tool descriptions, model and effort settings and retrieval parameters as much as from code.
- C: Wrong. Review helps, but a reviewer can't see a behaviour regression by reading a prompt diff.
- D: Right. If edits to the cases, graders, baseline or workflow skip the gate, the gate itself can be weakened unnoticed.
- E: Wrong. A manual step gets skipped under time pressure, which is how this happened.
Question 12
The full judge run (60 cases × 3 criteria × 3 runs = 540 calls) takes 40 minutes synchronously and holds up every PR. Cost matters too. What is the best setup?
- A) Send the full judge run through Message Batches on every PR, and block the merge until it finishes.
- B) Run the code graders synchronously on every PR; run the full judge set (including the held-out slice) on release candidates or nightly through Message Batches, keyed by
custom_id. - C) Drop the judge entirely and rely on code graders.
- D) Run the judge synchronously in fast mode so it finishes sooner.
Show answer
Answer: B
- A: Wrong. A batch can take up to 24 hours, so blocking every PR on one stalls the team.
- B: Right. Cheap, exact code graders on every PR; the expensive judge run where waiting is fine, via Batches (2026-11-25: 50% of standard price, most done within an hour, up to 24 hours), matched by
custom_id. - C: Wrong. Code graders can't see helpfulness or policy-following, which is what the judge is for.
- D: Wrong. Fast mode is premium-priced and doesn't make 540 calls cheap; splitting the work is the real fix.
Question 13
A script submits the judge run as a Message Batch and attaches each result to a case by its position in the results list. Some verdicts end up on the wrong cases. What is the fix?
- A) Match each result to its case by
custom_id, because batch results can come back in any order. - B) Sort the results by creation time before matching them.
- C) Submit one request per batch, so the order can't change.
- D) Re-run the batch until the order comes out right.
Show answer
Answer: A
- A: Right. Batch results aren't returned in submission order;
custom_idexists to match each result to its request. - B: Wrong. Creation or completion order still isn't submission order.
- C: Wrong. It throws away the batch's purpose and discount to work around a one-line bug.
- D: Wrong. No order is guaranteed on any run.
- A) Match each result to its case by
Question 14
For three weeks the team tunes the prompt against all 60 cases. The score climbs from 78% to 95%, but production complaints don't change. Which two actions best address the likely cause? (Choose TWO.)
- A) Replace the judge, since it must be broken.
- B) Keep tuning against the same set until it reaches 99%.
- C) Keep a held-out slice that is never used for tuning, and check every change on it.
- D) Switch to a different model, since this one has got worse.
- E) Add fresh real cases from recent tickets and complaints to the set.
Show answer
Answer: C, E
- A: Wrong. Nothing points at the judge; the code-graded categories probably rose too.
- B: Wrong. More tuning against the same 60 cases deepens the overfitting.
- C: Right. A slice you never tune against shows whether a change helps in general or only on the cases you tuned for.
- D: Wrong. The model didn't change; the prompt was fitted to 60 examples.
- E: Right. Fresh real cases bring back the phrasing and failure modes the tuned set no longer represents.
Question 15
The duplicate-refund incident (one ticket, two refunds) has been fixed and reviewed. What should change in the eval system?
- A) Nothing: the postmortem document is the record.
- B) Add "Never refund twice" to the system prompt and re-run the eval.
- C) Raise the overall pass threshold by 2 points.
- D) Add the incident's ticket as a case whose expected behaviour is "exactly one refund, even when the follow-up call fails", so the gate catches the bug if it comes back.
Show answer
Answer: D
- A: Wrong. A document doesn't stop a regression; a failing check does.
- B: Wrong. The fix was idempotency in code; a prompt line enforces nothing, and you still need the case to prove it.
- C: Wrong. One extra case moves the overall score by about a point and a half; a threshold change doesn't target the bug.
- D: Right. An incident is a failure mode you now know about; as a case with expected behaviour, every relevant PR is checked against it.