Skip to main content

Quiz: Prompts under Pressure

Why This Matters

Each question is a situation from a team that already uses TestPilot. Pick the change you would make first. The questions are written by Learn Automated Testing, not taken from the real exam.

Quiz

1. Developers complain that TestPilot keeps reporting product bugs for slow pages that pass on a rerun. What do you change first?

  • A. Add three examples of slow pages labelled flaky
  • B. Switch to the largest model
  • C. Tighten the product_bug definition with checkable conditions and exclusions, then compare the scorecard before and after
  • D. Stop filing bugs automatically
Show answer
C. The problem is a vague definition causing false alarms. Sharper, checkable conditions with an explicit exclusion (“a timeout alone is not a product bug”) target it directly, and the scorecard proves whether it worked. A risks teaching “slow → flaky” as a surface pattern; B and D avoid the problem instead of fixing it.
Quiz

2. A colleague rewrote the system prompt and says triage “feels much better”. What should happen before it is merged?

  • A. Run the golden set and review the per-category diff, including the cases that got worse
  • B. Try it on two failures from today
  • C. Ask the model whether the new prompt is better
  • D. Merge it and watch for complaints
Show answer
A. A prompt change is a behaviour change and needs the same evidence as a code change. The per-category diff shows exactly what improved and what got worse; two cases or a gut feeling cannot.
Quiz

3. After adding four examples, TestPilot classifies every timeout as flaky, including a real product bug. What is the most likely cause?

  • A. The model is too small
  • B. Four examples is too few
  • C. The examples were not in XML tags
  • D. The examples share a surface pattern (timeouts) that the model now copies
Show answer
D. Models pick up patterns from examples, including accidental ones. If all flaky examples mention timeouts, “timeout” becomes the signal. Vary the surface details and cover the boundary from both sides.
Quiz

4. You want to know whether TestPilot’s bug reports let a developer reproduce the problem. How do you grade that?

  • A. Check that every report has a title
  • B. A model-based grader with a concrete rubric, checked first against your own scores on a sample
  • C. Count the words in the report
  • D. Ask TestPilot to grade its own report in the same conversation
Show answer
B. “Reproducible” needs judgement, so a model grader fits, but only with concrete criteria and after you have checked it agrees with humans. A and C measure the wrong thing; D lets the model agree with itself.
Quiz

5. Your prompt-eval gate in CI fails on about one in five pull requests that do not touch the prompt at all. What do you do?

  • A. Run each case several times and use the majority verdict, with a tolerance on overall accuracy but none on product_bug recall
  • B. Remove the gate
  • C. Lower all thresholds to zero
  • D. Only run the gate on Fridays
Show answer
A. The gate is fighting non-determinism, and also runs when it should not (restrict it to relevant paths). Majority voting and a sensible tolerance make it stable while still blocking the mistake that matters most.