Skip to main content

Quiz: Foundations

Why This Matters

A quick check that the mental model from this module holds up before you start writing code. Answer each question yourself before you open the answer. The questions are written by Learn Automated Testing; they are not taken from the real exam.

Quiz

1. Your manager wants TestPilot to quarantine flaky tests automatically, without anyone checking. What is the best first response?

  • A. Agree, as long as the prompt tells the model to be careful
  • B. Use a larger model so it makes fewer mistakes
  • C. Refuse to use AI for flaky tests at all
  • D. Let TestPilot propose quarantines and have a human approve them until its accuracy is measured
Show answer
D. A wrong quarantine hides a real bug, so this is a decision with a real cost. A proposal plus human approval keeps the speed benefit and limits the risk. A and B rely on the model being right; C throws away a useful tool. Once you have measured accuracy (module 3), you can revisit the decision.
Quiz

2. TestPilot needs the failure rate of a test over its last 20 runs. Who should calculate it?

  • A. Your code, before the request, passing the result as evidence
  • B. The model, from the raw history in the prompt
  • C. A second model that checks the first
  • D. A tester, by hand
Show answer
A. If code can answer it exactly, code answers it: always correct, free and instant. The model gets the result as evidence and spends its effort on judgement.
Quiz

3. Your team wants an assistant that triages CI failures every night inside your own product. Which starting point fits best?

  • A. The Claude app with a saved prompt
  • B. Claude Code, run by a developer every morning
  • C. The Claude API (or the Agent SDK) in your own service
  • D. An MCP server on its own
Show answer
C. It must run unattended, repeatably and inside your product: that is what the API and the Agent SDK are for. An MCP server provides tools but does not run anything by itself; the app and Claude Code need a person.
Quiz

4. You ask TestPilot “why did you call it flaky?” in a new request, without sending the earlier messages. What happens?

  • A. Claude remembers the earlier triage and explains it
  • B. Claude has no access to the earlier triage and can only guess
  • C. The API returns an error because the conversation is missing
  • D. Claude looks up the earlier request by its id
Show answer
B. Each request stands alone. The model only knows what that request contains, so a follow-up works only if your code sends the earlier messages again (lesson 11).