All practice tests

Module 6 practice — Evaluation, testing and optimisation

15 questions · Evaluation, Testing, and Optimization

Practice questions written by Sanjay Shah. Not exam questions, not affiliated with or endorsed by Anthropic.

  1. Question 1

    A team's eval set is the 40 questions the builders tried most during the pilot. Every run passes at 98%. What is the best improvement?

    • A) Raise the pass bar to 99%.
    • B) Add 40 more questions written by the same builders.
    • C) Sample real (consented, redacted) traffic and add edge, out-of-scope, adversarial and permission cases, with expected outcomes labelled before the run.
    • D) Replace the eval set with user satisfaction scores.
    Show answer

    Answer: C

    • A: A higher bar on an unrepresentative set still measures only the happy path.
    • B: More of the same bias.
    • C: Right: real traffic plus edge, out-of-scope, adversarial and permission slices, labelled in advance, measures real use.
    • D: Satisfaction is lagging and subjective; it can't gate a release.
  2. Question 2

    After six weeks of prompt tuning, the eval score rose from 82% to 95%, but complaints and edit rates haven't changed. The same cases were used for tuning and for scoring. What is the most likely cause and fix?

    • A) The prompt has been tuned to the eval cases themselves. Keep a held-out set the prompt authors never see, and score on it.
    • B) Users are slow to notice improvements. Wait another quarter.
    • C) The model has changed. Pin a different model ID.
    • D) The eval bar is too low. Raise it to 98%.
    Show answer

    Answer: A

    • A: Right: tuning on the scoring set inflates scores; a held-out set measures real improvement.
    • B: The human signals already say nothing has changed.
    • C: Nothing suggests a model change; the cause is the method.
    • D: A higher bar on an overfitted set fixes nothing.
  3. Question 3

    A model judge agrees with human reviewers on 94% of 150 cases, but it passes half of the answers that humans marked as unsupported by the sources. The team wants to use it as a release gate. What is the best next step?

    • A) Use it as a gate, because 94% agreement is high.
    • B) Swap in a larger model as judge and skip calibration.
    • C) Drop evaluation of "supported by sources", since it is too hard to judge.
    • D) Don't gate on it yet. Sharpen the rubric with examples of unsupported claims, re-calibrate on that failure class, and have people review judge failures in the meantime.
    Show answer

    Answer: D

    • A: The average hides a failure on the case that matters most.
    • B: A bigger judge still needs calibration.
    • C: Unsupported claims are a key risk, so they must be measured.
    • D: Right: calibrate on the failure that matters, and keep people in the loop until the judge is trustworthy.
  4. Question 4

    You must check that every figure in a variance commentary matches the ledger query result. Which grader fits best?

    • A) A model judge asked whether the numbers look right.
    • B) A code check that compares each figure in the text with the query output.
    • C) A monthly human review of a sample of commentaries.
    • D) User feedback buttons on each commentary.
    Show answer

    Answer: B

    • A: A judge is weaker than an exact rule where a rule works.
    • B: Right: an exact comparison is cheap, reliable and auditable.
    • C: Too late and too sparse for a check that can run on every output.
    • D: Users may not notice wrong figures.
  5. Question 5

    You are writing the calibration record for a model judge that will grade drafts at scale. Which TWO items belong in it? (Choose TWO.)

    • A) The number of tokens the judge used per case.
    • B) The judge's prompt version and its pinned model ID.
    • C) The vendor's published benchmark accuracy for the judge model.
    • D) Agreement with human labels, including on the failure class that matters most.
    • E) The judge's own self-reported confidence for each case.
    Show answer

    Answer: B, D

    • A: Cost data, not calibration evidence.
    • B: Right: re-calibration is needed whenever the judge's prompt or model changes, so they must be recorded.
    • C: Not your rubric or your data.
    • D: Right: agreement, especially on the key failure, is the evidence that the judge can be trusted.
    • E: A model's own confidence isn't validated against people.
  6. Question 6

    A release scores 92% overall against a 90% bar. The Spanish-language slice scores 78%. What is the best decision?

    • A) Release everywhere, because the overall bar is met.
    • B) Lower the bar for Spanish to 75%.
    • C) Release only where the slices pass, and fix and re-test the Spanish slice before it ships.
    • D) Remove the Spanish cases from the eval set, since they drag the average down.
    Show answer

    Answer: C

    • A: The average hides a failing slice of real users.
    • B: Moving the bar after the fact.
    • C: Right: slices that fail don't ship until they're fixed.
    • D: Deleting the failing cases hides the problem.
  7. Question 7

    On a 60-case eval with a 95% bar, the new prompt scores 94.8% and the old one scored 95.2%. What is the best response?

    • A) Re-run both versions more than once, or on a larger set, and inspect the cases that flipped from pass to fail before deciding.
    • B) Reject the new prompt immediately, because it is below the bar.
    • C) Accept the new prompt, because the difference is tiny.
    • D) Lower the bar to 94%.
    Show answer

    Answer: A

    • A: Right: output varies between runs, so a borderline result needs more evidence and a look at what flipped.
    • B: May reject a change on noise.
    • C: May accept a real decline.
    • D: Moving the bar to fit the result.
  8. Question 8

    How should the function that redacts patient identifiers before the prompt be tested?

    • A) Only through the model eval set, end to end.
    • B) By asking the model whether the redaction worked.
    • C) By spot-checking production logs once a month.
    • D) With ordinary unit tests on the function itself, using synthetic identifiers, with no model involved.
    Show answer

    Answer: D

    • A: Mixes a deterministic check into a probabilistic test, so failures are hard to see.
    • B: The model is not a test oracle for your code.
    • C: Finds leaks after they happen.
    • D: Right: deterministic code gets deterministic tests.
  9. Question 9

    An assistant passed its release eval. Three months later, complaints rise, though nobody has deployed anything. What should have caught this earlier?

    • A) A larger release eval set.
    • B) Weekly sampled evals on live traffic, alerts on human signals such as edit and escalation rates, and new eval cases from the failures.
    • C) An annual architecture review.
    • D) A rule that blocks all deployments.
    Show answer

    Answer: B

    • A: A bigger release set still can't see future traffic.
    • B: Right: live sampling and human signals catch drift; failures feed the next eval.
    • C: Far too slow.
    • D: Nothing was deployed; the drift came from the traffic.
  10. Question 10

    Each night, 30,000 archived documents need summaries for the morning, using the same long instruction block for every request. Which TWO levers cut cost most directly? (Choose TWO.)

    • A) Batch processing.
    • B) Switching to the most capable model.
    • C) Streaming the responses.
    • D) Running the requests in parallel at peak hours.
    • E) Prompt caching of the stable instruction block.
    Show answer

    Answer: A, E

    • A: Right: work that isn't urgent suits batch, at about half price (as checked 2026-11-25).
    • B: Raises cost.
    • C: Helps perceived latency, not cost.
    • D: Faster but not cheaper, and it competes with daytime traffic.
    • E: Right: a long, repeated, stable prefix is exactly what caching is for.
  11. Question 11

    A cheaper model halves the token cost of a claims-extraction step, but on the eval set it fails twice as often, and each failure goes to a person for manual handling. How should you judge the change?

    • A) Accept it, because the token cost halves.
    • B) Reject it, because cheaper models are always worse.
    • C) Compare cost per successful task, including the human handling of failures, and check the quality bar, before deciding.
    • D) Accept it, and ask staff to work faster on the failures.
    Show answer

    Answer: C

    • A: Ignores the human cost of failures.
    • B: Cheaper models are often fine; decide from evidence.
    • C: Right: cost per successful task, including human handling, plus the quality bar, decides it.
    • D: Shifts the cost onto people without measuring it.
  12. Question 12

    Cutting retrieval from 20 passages to 5 cut cost by a third, but the "supported by sources" score fell below its bar. What is the best response?

    • A) Keep it, because the cost saving is large.
    • B) Remove the "supported by sources" metric.
    • C) Cut to 3 passages to save even more.
    • D) Revert it, try an intermediate setting, and change one lever at a time, measured on the same eval.
    Show answer

    Answer: D

    • A: Breaks a quality bar for cost.
    • B: Removes the guardrail instead of respecting it.
    • C: Makes the drop worse.
    • D: Right: revert, try a middle setting, and change one lever at a time.
  13. Question 13

    What does streaming the response mainly improve?

    • A) How soon the user sees the first words (perceived latency). Total generation time and cost stay about the same.
    • B) The total cost of the request.
    • C) The accuracy of the answer.
    • D) The rate limits that apply to the request.
    Show answer

    Answer: A

    • A: Right: streaming improves time to first token, not total cost.
    • B: Cost is about the same.
    • C: Accuracy doesn't change.
    • D: Limits are unaffected.
  14. Question 14

    You are optimising a CV summariser for cost. Which TWO metrics must gate every change, alongside the main quality score? (Choose TWO.)

    • A) Average summary length.
    • B) The fairness gap between equivalent cases that differ only in a protected attribute or proxy.
    • C) The pass rate on injection samples hidden in CVs.
    • D) The number of recruiters who logged in that week.
    • E) Tokens per request.
    Show answer

    Answer: B, C

    • A: Length is not a guardrail.
    • B: Right: cost changes can shift fairness, so the gap must gate.
    • C: Right: a cheaper setup may follow hidden instructions more easily.
    • D: Activity, not quality.
    • E: A cost input, not a guardrail.
  15. Question 15

    A new model release is cheaper. What is the best release gate before switching?

    • A) Switch if the vendor's benchmark score is higher.
    • B) Run old and new on the same versioned eval set, inspect pass-to-fail flips, and require every slice and guardrail metric to meet its bar.
    • C) Switch for everyone and watch complaints for a week.
    • D) Switch if a quick manual check of five answers looks fine.
    Show answer

    Answer: B

    • A: A generic benchmark, not your task.
    • B: Right: same set, flip analysis, and every slice and guardrail at its bar.
    • C: Users become the test.
    • D: Far too small a sample.

↑ ↓ navigate · ↵ select · esc close