This self-test covers Modules 1–8. 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 22 points for your own review.
Question S2.1 (LO-2.2, LO-3.3)¶
A label reply contains a second line of explanation. Why could that increase cost and fail even if the label is right?
Answer and scoring notes
Every output token is billed, and output costs five times as much as input, so the extra line adds cost on every request. The contract asks for exactly one line, so a check of the format fails even though the label is right. Format and correctness are separate checks: this reply passes one and fails the other.
Scoring: 1 point for the cost of the extra output tokens. 1 more for the format check failing separately from the label.
Question S2.2 (LO-4.2, LO-5.1)¶
Draft two examples with the word ‘brake’ and different labels. Where do they go?
Answer and scoring notes
“My brakes squeal when I stop” is repair. “Please send the receipt for my brake job” is billing. Sharing the word “brake” shows the model that the word alone doesn’t decide the queue. Put both in tagged example blocks, such as <examples>, apart from the ticket being classified, so the model can tell the examples from the current input.
Scoring: 1 point for two correctly labeled examples that share “brake.” 1 more for placing them in their own tagged section.
Question S2.3 (LO-5.2, LO-5.3)¶
The query has terms {chain, price}. Compare candidates {chain, price, tax} and {chain, skips}. Which ranks first under Jaccard? Which test detects a shortcut on the word chain?
Answer and scoring notes
Jaccard similarity is the intersection’s size over the union’s. The first candidate shares two words out of a union of three, {chain, price, tax}, so it scores 2/3. The second shares one word out of {chain, price, skips}, so it scores 1/3, and the first ranks first. To detect a shortcut, add a contrast pair: a chain fault, which is repair, and a chain receipt, which is billing. A model that routes both the same way is keying on “chain” instead of the request.
Scoring: 1 point for 2/3 and 1/3 with the first ranked first. 1 more for a contrast pair that shares “chain” across queues.
Question S2.4 (LO-6.1)¶
Three effort levels reach accuracy 85%, 92%, and 94% at median 1.2, 2.0, and 3.4 seconds. Which levels qualify for at least 90% in at most 2.5 seconds?
Answer and scoring notes
Only the second level. The first is fast enough but falls short at 85%, and the third is accurate enough but takes 3.4 seconds, over the 2.5-second limit. Choosing the most accurate level without checking the time limit is the usual mistake.
Scoring: 1 point for the second level. 1 more for ruling out each of the others by the requirement it misses.
Question S2.5 (LO-6.2, LO-6.3)¶
A two-stage chain has conditional success 0.9 and 0.8. A validator observes two answer tags. Calculate all-correct probability and say how the validator handles that output.
Answer and scoring notes
The chain is fully correct only when both stages succeed: 0.9 × 0.8 = 0.72. Two answer tags make the answer ambiguous, so the validator rejects the output and reports why, instead of using the first or last tag. Picking one silently would pass a guess on as a result.
Scoring: 1 point for 0.72. 1 more for rejecting the two-tag output with a reported reason.
Question S2.6 (LO-7.1, LO-7.4)¶
Write one typical and one misleading ticket with an expected label. Which split can drive a template change?
Answer and scoring notes
Typical: “I have a flat tire,” expected repair. Misleading: “Can I get the receipt for my brake repair?”, expected billing, because the word “repair” points the wrong way. Revise the template using the development split only. The held-out split is for one final check; if its results shape the template, it no longer measures how the template does on cases it wasn’t tuned on.
Scoring: 1 point for both tickets with correct labels. 1 more for the development split, with the reason the held-out split stays untouched.
Question S2.7 (LO-7.2)¶
Two annotators agree on 9 of 10 items. Their pass shares are 0.8 and 0.7. Find chance agreement and kappa.
Answer and scoring notes
Chance agreement adds the chance that both say pass and the chance that both say fail: 0.8 × 0.7 + 0.2 × 0.3 = 0.56 + 0.06 = 0.62. Observed agreement is 0.9. Kappa is (0.9 − 0.62) / (1 − 0.62) = 0.28 / 0.38, about 0.737.
Scoring: 1 point for chance agreement 0.62, with both terms. 1 more for kappa, about 0.737.
Question S2.8 (LO-7.3)¶
A case score is 1/3 for A and 2/3 for B. What difference enters the paired bootstrap? When can you use a Wilson interval?
Answer and scoring notes
The paired bootstrap resamples cases, keeping each case’s two scores together, so this case contributes B minus A, 2/3 − 1/3 = +1/3. Wilson’s interval assumes independent pass-or-fail trials. Use it for one result per independently sampled case, such as one designated run of each case. Three runs of the same case aren’t independent: a hard case tends to fail all three, so counting them as separate trials makes the interval too narrow.
Scoring: 1 point for +1/3 as the paired difference. 1 more for the independence condition, with a reason repeated runs of one case don’t meet it.
Question S2.9 (LO-8.1, LO-8.2)¶
A JSON object contains queue=shipping and summary=‘Flat tire’. What should a schema check? Define a read-only tool to find service availability.
Answer and scoring notes
The schema’s enum for queue lists only repair, billing, and account, so it rejects shipping even though the object is valid JSON. A tool definition: name service_availability; a description of several sentences that says it returns whether a named service can be booked this week, when to use it, and that it doesn’t book anything or give prices; and an input schema with a required service string and additionalProperties set to false. It returns an error result for an unknown service.
Scoring: 1 point for the enum rejecting shipping. 1 more for a tool with a name, a description that says when to use it, a required service input, and error behavior.
Question S2.10 (LO-8.3)¶
The tool call for price fails and the one for hours succeeds. What goes back in the next turn?
Answer and scoring notes
One user turn with two tool_result blocks, one for each proposal, each carrying its proposal’s tool_use_id. The price result carries is_error set to true and says what went wrong, and the hours result carries the hours. Both go back together, after the assistant’s turn with the two proposals, so the model can see which call failed and recover.
Scoring: 1 point for both results in one user turn with their IDs. 1 more for returning the failure as an error result instead of dropping it.
Question S2.11 (LO-1.2, LO-1.3)¶
A context window clips a routing example. How can that change a comparison of two prompts? Why can repeated sampling still vary?
Answer and scoring notes
If one prompt loses an example or an instruction when the context is trimmed, the comparison measures the trimmed prompt, not the one you designed, and the result can favor the wrong version. Check that both prompts fit whole, with room for the answer. Repeated runs still vary because the model samples each token from a probability distribution, so the same prompt can produce different tokens on different runs.
Scoring: 1 point for the trimmed prompt changing what is compared. 1 more for sampling from a distribution as the source of variation.
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.