12 questions, 20 points (Parts A and B: 1 point/question; Parts C and D: 3 points/question), 30 minutes. Pass mark: 14/20 (70%). The answers are in
answer-key.md(for instructors only).
Part A - Multiple choice (1 point/question)
Q1. A schema has "additionalProperties": false. Which instance is not valid?
- A. One that lacks an optional field B. One with an extra field that is not in
properties - C. One with a field whose value is an allowed
nullD. One with its fields in a different order
Q2. Which keyword do structured outputs (documentation as of 2026-10-31) not support?
- A.
enumB.minimumC.requiredD.anyOf
Q3. The model returns two tool_use blocks in one response. The right way to send the results is:
- A. Two user messages, one
tool_resultin each - B. One user message with two
tool_resultblocks, any text placed after them - C. One user message with text first, then two
tool_resultblocks - D. Answer only the first block
Q4. With claude-opus-5-5, a request with tool_choice: {"type": "any"} will:
- A. Always call a tool B. Return a 400 error C. Be ignored D. Call every tool
Q5. The strongest oracle for proving "no return order is created when the customer has not agreed" is:
- A. The agent's answer does not contain "đã tạo" ("created") B.
backend.side_effects() == [] - C.
turn.error is NoneD. The number of requests equals 2
Part B - True/False (1 point/question)
Q6. With jsonschema, "format": "email" is checked by default.
Q7. strict: true on a tool guarantees that quantity is within the minimum/maximum range of the full
schema, even when those two keywords have been dropped from the schema that is sent.
Q8. A conversation regression suite with fake model replies proves that the real model chooses the right tool.
Part C - Short answer (3 points/question)
Q9. A classifier that uses structured output receives a reply with stop_reason: "refusal". State the right
processing order and explain why that order matters. With messages.parse() of SDK 2.3.0, what happens in this
case?
Q10. List the four layers of protection around a tool with side effects, and for each layer give an argument case or a situation that the layer blocks.
Part D - Scenarios (3 points/question)
Q11. A fix "to make requests lighter" keeps only the N most recent messages. Every single-turn test is green. Design a test that catches this regression: the script, the quantity to measure, and the expectation.
Q12. After a commit, CI reports a diff in the golden transcript of the approval script: side_effects changes from
[] to one return order. A colleague proposes updating the golden file. What do you do, and in what order?