This self-test covers all modules, especially Modules 9–13. Set aside about two hours. Use paper or a local text editor and close the notes for your first attempt. Try every question before opening the answers. Give yourself 2 points for a complete, justified answer, 1 for a correct start with a material omission, and 0 for an incorrect or missing answer. Each answer below says what earns each point. The total is 24 points for your own review.
Question S3.1 (LO-3.3, LO-7.1)¶
Supply a pass criterion for a help-desk reply that can abstain.
Answer and scoring notes
A reply passes when it is one valid record and either gives an answer supported by the sources or gives the agreed abstention, such as “I don’t know.” Label each test case in advance with whether it should be answered or abstained on, and why. Then an abstention on an answerable case fails, and so does an answer on a case the sources can’t support. Without those labels, a model that always abstains would pass.
Scoring: 1 point for a criterion that accepts both a supported answer and the abstention. 1 more for labeling which cases should abstain.
Question S3.2 (LO-8.3, LO-9.1)¶
Two independent fixture reads must be paired with a ticket. What workflow fits and what preserves identity?
Answer and scoring notes
Run the two reads in parallel, because neither depends on the other. Key each result by the ticket or job it belongs to, and match each tool result to its proposal by tool_use_id. Results can arrive in any order, so position alone can attach a price to the wrong request.
Scoring: 1 point for parallel reads. 1 more for keying results by job and proposal ID.
Question S3.3 (LO-9.2, LO-9.3)¶
Three turns cost 2 credits each. The next call reserves 3, and the starting budget is 8. Why stop before the fourth call? When can you remove the agent loop?
Answer and scoring notes
Three turns spend 6 of the 8 credits, leaving 2. The fourth call must reserve 3 before it runs, and 6 + 3 = 9 is over the budget, so the agent stops before calling. Remove the loop when the task needs no decisions that depend on earlier results: one call, or a direct lookup, does the job at lower cost and with fewer ways to fail.
Scoring: 1 point for stopping because the reservation exceeds the 2 remaining credits. 1 more for when a single call or lookup is enough.
Question S3.4 (LO-10.1, LO-10.2, LO-10.3)¶
The prompt contains H04 and H02. The answer needs H04 and H09. Find recall, say whether full coverage passed, and give a grounding rule.
Answer and scoring notes
One of the two needed sections, H04, was retrieved, so recall is 1/2 = 0.5, and full coverage fails because H09 is missing. No prompt can make the answer correct without H09, so retrieval caps the answer’s accuracy. Grounding rule: put the tagged sources first, then the instructions and the question, and require an exact quotation with its section ID or the answer “I don’t know.”
Scoring: 1 point for recall 0.5 and full coverage failing. 1 more for a rule that requires quoted evidence or abstention.
Question S3.5 (LO-2.2, LO-10.4)¶
Assume a 1,000-token prefix is eligible for caching. The rates per million tokens are $4
for ordinary input, $5 for a cache write, and $0.20 for a cache read. Compare four uncached
requests with one write and three hits. Ignore the suffix and output.
Answer and scoring notes
Uncached, each request pays 1,000 × 4 / 1,000,000 = `0.004, so four cost 0.016`. Cached, the first request writes the prefix for 1,000 × 5 / 1,000,000 = $0.005, and the next three read it for 3 × 1,000 × 0.20 / 1,000,000 = `0.0006, for a total of $0.0056`, about a third of the uncached cost. The write costs more than ordinary input, so caching pays only when the prefix is read again.
Scoring: 1 point for $0.016. 1 more for $0.0056 with the write and the reads separated.
Question S3.6 (LO-11.1, LO-11.2, LO-11.3)¶
Each of 25 test cases contains an unauthorized proposal from a retrieved document. The unguarded policy accepts all 25. The guarded policy accepts none of the same 25. Identify the source of the proposals, report both acceptance rates, and name a positive control.
Answer and scoring notes
The proposals come from retrieved documents, so this is indirect injection. Report 25/25 accepted without the guard and 0/25 with it, both over the same 25 cases. A positive control is a label change that the allowlist permits and the host approved, which the guarded policy must accept. A policy that denies everything also scores 0/25, and only the control exposes it.
Scoring: 1 point for indirect, with both rates and their denominator. 1 more for a host-approved control and why it is needed.
Question S3.7 (LO-12.1, LO-12.2)¶
A trace claims all tests passed. Where can you find evidence? Add verification text to a task that changes service label formatting.
Answer and scoring notes
Look for the output of the test command in a tool result, not for the agent’s own summary, which is only a claim. Better still, run the tests yourself. Verification text for the task: “Keep underscores working and add hyphens. Run python -m unittest discover -v, and report the command and its result, including any failing test.”
Scoring: 1 point for the test tool’s output as the evidence. 1 more for verification text with the command and a report of its result.
Question S3.8 (LO-12.3)¶
A proposed edit changes the invoice calculation alongside the requested label change. What do you check before accepting it?
Answer and scoring notes
Check every changed line against the task’s scope. The invoice change wasn’t requested, so it is out of scope even if it is right and every test passes. Run the existing invoice and label tests as well, then ask for a revision that contains only the label change, or split the invoice change into a task of its own.
Scoring: 1 point for flagging the invoice change as out of scope. 1 more for running the regression tests and requesting a scoped revision.
Question S3.9 (LO-13.1, LO-13.2)¶
You need fixture rules and a repeated test review. Where does each go and what could a subagent do?
Answer and scoring notes
Put the fixture rules in a rule under .claude/rules/ with paths set to the fixture folder, so they load only when Claude works on those files. Package the repeated review as a skill with its steps. A subagent can take a bounded part with its own context, such as checking whether a diff’s tests cover the new cases, and report back. The decision to accept or revise stays with the main session.
Scoring: 1 point for a path-scoped rule and a skill. 1 more for a bounded subagent task, with the decision kept in the main session.
Question S3.10 (LO-13.3)¶
Why should a deny-only PreToolUse hook print nothing for the exact test command? Give two test events it should deny.
Answer and scoring notes
Printing nothing and exiting with status 0 makes no decision, so the normal permission rules handle the test command. A deny-only hook adds a check without granting anything. Two events to deny: an unknown command, such as sample-action, and malformed input, such as {. A hook that crashes lets the call through, so it must catch bad input and print a deny decision.
Scoring: 1 point for “no decision, so the permission rules apply.” 1 more for two events, one of them malformed.
Question S3.11 (LO-1.1, LO-1.3, LO-4.2)¶
A long manual contains literal ampersands and many part numbers. Explain how to put it in a tagged template and how to decide which sections fit the context.
Answer and scoring notes
Escape the manual’s text when you insert it, so each & becomes &, and confirm with a parser that the text round-trips exactly. Part numbers often split into many tokens, so a characters-per-token estimate can run low. Count with the model’s tokenizer, or leave a margin and say the count is an estimate. Reserve room for the instructions, the question, and the answer first, then add sections until the rest is full.
Scoring: 1 point for escaping with a round-trip check. 1 more for counting tokens and reserving the answer before adding sections.
Question S3.12 (LO-5.2, LO-5.3, LO-6.3)¶
A receipt mentions the same brake phrase as five repair examples. Propose a less skewed set and show how to test a classify-then-draft chain.
Answer and scoring notes
Replace some repair examples with a receipt that uses the same brake phrase, and include examples from every queue, so the phrase stops predicting repair. Test the chain in three measures: how often routing is correct, how often the draft succeeds when routing was correct, and how often the whole chain succeeds. Pass the original ticket to the check stage, so it can catch a reply written for the wrong queue.
Scoring: 1 point for a contrast example and examples across queues. 1 more for the three measures and the original ticket at the check stage.
Decide what to review¶
Revisit every module where you lost a point. Redo one lab check and one practice exercise with a changed input, then explain why the expected result changes. A missing unit, unstated assumption, or skipped validation condition is worth correcting in your notes.