Domain 5 – Questions
Context & Reliability · every question we have for this domain, in one place
Domain 5 lesson · Domain 5 – Facts
Answer each question cold, then open its explanation. In the local app every answer is graded and saved, and Reset all at the top starts a fresh round for this domain (your history is kept). 78 questions in total.
Practice questions (14)
Source: Practice questions.
Q27. An agent loop resends a 30K-token system prompt + tool defs every iteration. Biggest cost lever: A) Smaller model B) Fewer iterations C) Shorter tool results D) Prompt caching the static prefix (stable content first, dynamic after the breakpoint)
Understand Q27 · the situation and each part of the question
The real situation behind this question
Every turn of an agent includes the same long instructions and tool definitions, followed by a small amount of new conversation. Reprocessing the unchanged beginning creates repeated input cost. The question is about reusing a stable eligible prefix while allowing later content to change. It is not asking you to remove necessary task steps or switch to a weaker model simply to spend less.
Read the question in parts
Part 1 · static prefix
The beginning of the request remains exactly the same across calls, including its order and content.
Part 2 · dynamic after the breakpoint
New conversation belongs after the reusable boundary so it does not change the earlier cached prefix.
What you are being asked to decide
What reduces repeated processing of a large unchanged request prefix? Target the repeated portion of input cost.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Prompt caching | Reuse of processing for an eligible unchanged input prefix across requests. |
Study: context management Prompt caching System prompt Agent loop Domain 5 · Context & Reliability
Understand Q27's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Every iteration resends the same 30K tokens of system prompt and tool definitions, so identical bytes are billed at full price again and again. That stable prefix is exactly what prompt caching is for. So put static content first, place the cache breakpoint after it, and keep dynamic content behind it; the repeated prefix then costs a fraction.
Connect the design to the situation
The same instructions and tool definitions precede new messages every turn.
Best answer: D. An eligible stable prefix repeated across many calls is a candidate for prompt caching. Check actual cache usage and model-specific pricing to measure the saving. Caching does not reduce the context space occupied by those tokens.
What each choice would do here
A · Why this does not meet the full requirement
Smaller model
A smaller model changes capability and may not target the repeated-prefix cost.
A cheaper model may reduce the bill but also changes capability and must be evaluated. It does not specifically exploit the fact that a large portion of each request is unchanged.
B · Why this does not meet the full requirement
Fewer iterations
Reducing turns can help but may remove required work.
Fewer iterations can help when the loop is wasteful. The question does not establish unnecessary turns; eliminating required reasoning or tool calls could make the task incomplete.
C · Why this does not meet the full requirement
Shorter tool results
Shorter results reduce dynamic content, not the large stable prefix in this question.
Trimming verbose tool results is useful context engineering. It targets changing content, while this scenario identifies repeated stable instructions as the specific source of avoidable input processing.
D · Why this meets the requirement
Prompt caching the static prefix (stable content first, dynamic after the breakpoint)
Eligible prompt caching reuses the repeated prefix; verify actual cache usage.
Configure eligible prefix caching and inspect cache usage counters to confirm reuse. A marker alone does not prove a hit; minimum size, lifetime, identity, and supported configuration also matter.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Complete request with an explicit cache boundary
{
"model": "claude-sonnet-4-6",
"max_tokens": 1024,
"system": [
{
"type": "text",
"text": "Summarize documents using only supplied facts.",
"cache_control": {
"type": "ephemeral",
"ttl": "5m"
}
}
],
"metadata": {
"user_id": "user_demo_opaque_104"
},
"messages": [
{
"role": "user",
"content": [
{
"type": "document",
"source": {
"type": "text",
"media_type": "text/plain",
"data": "Order O-104 shipped on Monday."
},
"title": "Order record",
"citations": {
"enabled": true
}
},
{
"type": "text",
"text": "When did this order ship? Cite the record."
}
]
}
]
}cache_control marks the system block here. A changing timestamp inserted into that marked prefix would change it. The short teaching text may be below the cache minimum; it illustrates placement, not a promised cache hit.
Not supplied in this example · settings and defaults
context_management — not supplied here. No server compaction strategy is enabled by this body. Host/manual compaction is separate.
output_config — not supplied here. No output_config schema or effort override is supplied. A prompt asking for JSON does not provide schema enforcement.
tools — not supplied here. No tools are offered through this field.
tool_choice — not supplied here. With tools supplied, the default is auto: the model chooses whether to request a tool. Without tools, no supplied tool can be selected.
stop_sequences — not supplied here. No custom stop strings are configured. Generation can still stop for end_turn, tool_use, max_tokens, or another documented reason.
stream — not supplied here. For a direct non-streaming create/parse call, the result is one message rather than an event stream. A stream helper configures this separately.
thinking — not supplied here. No explicit thinking override is shown. Behavior depends on the selected model; omission does not universally mean thinking is off.
cache_control — not supplied here. No top-level automatic cache marker is supplied. Check nested system/tool/content blocks for separate cache_control markers.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
What reduces repeated processing of a large unchanged request prefix?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Study: context management Prompt caching System prompt Agent loop Domain 5 · Context & Reliability
Answer
**D.** An eligible stable prefix repeated across many calls is a candidate for prompt caching. Check actual cache usage and model-specific pricing to measure the saving. Caching does not reduce the context space occupied by those tokens.Q28. The cache never hits. Most likely cause: A) TTL expired instantly B) Wrong model C) A timestamp/dynamic value sits before the cache breakpoint, changing the prefix bytes D) Caching is off in prod
Understand Q28 · the situation and each part of the question
The real situation behind this question
You add a current timestamp at the very beginning of each otherwise identical request. Later in the request, you mark the large instructions as cacheable. The instructions have not changed in meaning, yet the bytes before the marker now differ every time. The question asks you to reason about cache identity from the request layout instead of assuming that semantically similar prompts reuse the same prefix.
Read the question in parts
Part 1 · before the cache marker
The changing value is part of what would need to match for this prefix to be reused.
Part 2 · instructions mean the same thing
Semantic similarity is not the condition for an exact-prefix cache match.
What you are being asked to decide
Which change can prevent prefix reuse even when the instructions mean the same thing? Reason about exact cache identity rather than similar meaning.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| cache | Prompt cache: provider reuse of eligible repeated input; it is not stored application memory. |
Understand Q28's answer · full reasoning and worked examples
Claude synthesized · the point, straight
A cache hit requires the bytes before the breakpoint to be identical to the last call. A timestamp or other per-request value in front of the marker changes the prefix every call, so nothing ever matches. So move volatile content after the stable cached block, and only then check minimum size and TTL if it still misses.
Connect the design to the situation
Every request starts with a different timestamp before the explicit cache marker.
Best answer: C. Changing an early timestamp changes the prefix before the cache marker. Move volatile per-request content after stable cacheable content where appropriate. Also verify lifetime, minimum size, and other cache conditions.
What each choice would do here
A · Why this does not meet the full requirement
TTL expired instantly
An expiry issue is possible generally, but the changing prefix is the concrete explanation here.
A cache can expire, but the scenario gives a more direct recurring cause: new content before the boundary. First inspect that concrete difference instead of assuming the entry expired immediately.
B · Why this does not meet the full requirement
Wrong model
A model issue is not established by the scenario.
Model consistency is relevant to caching, but there is no stated model change here. An explanation should account for the evidence supplied rather than introduce an unobserved configuration error.
C · Why this meets the requirement
A timestamp/dynamic value sits before the cache breakpoint, changing the prefix bytes
Changing content before the marker changes the reusable prefix.
Move volatile data outside the intended stable prefix where the task permits. Then verify cache counters across otherwise matching requests instead of judging success only from response speed.
D · Why this does not meet the full requirement
Caching is off in prod
The question provides no evidence of a production-only cache toggle.
A production-only toggle could exist in an application, but none is described. The changing timestamp already explains why the candidate prefix is different between calls.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Complete request with an explicit cache boundary
{
"model": "claude-sonnet-4-6",
"max_tokens": 1024,
"system": [
{
"type": "text",
"text": "Summarize documents using only supplied facts.",
"cache_control": {
"type": "ephemeral",
"ttl": "5m"
}
}
],
"metadata": {
"user_id": "user_demo_opaque_104"
},
"messages": [
{
"role": "user",
"content": [
{
"type": "document",
"source": {
"type": "text",
"media_type": "text/plain",
"data": "Order O-104 shipped on Monday."
},
"title": "Order record",
"citations": {
"enabled": true
}
},
{
"type": "text",
"text": "When did this order ship? Cite the record."
}
]
}
]
}cache_control marks the system block here. A changing timestamp inserted into that marked prefix would change it. The short teaching text may be below the cache minimum; it illustrates placement, not a promised cache hit.
Not supplied in this example · settings and defaults
context_management — not supplied here. No server compaction strategy is enabled by this body. Host/manual compaction is separate.
output_config — not supplied here. No output_config schema or effort override is supplied. A prompt asking for JSON does not provide schema enforcement.
tools — not supplied here. No tools are offered through this field.
tool_choice — not supplied here. With tools supplied, the default is auto: the model chooses whether to request a tool. Without tools, no supplied tool can be selected.
stop_sequences — not supplied here. No custom stop strings are configured. Generation can still stop for end_turn, tool_use, max_tokens, or another documented reason.
stream — not supplied here. For a direct non-streaming create/parse call, the result is one message rather than an event stream. A stream helper configures this separately.
thinking — not supplied here. No explicit thinking override is shown. Behavior depends on the selected model; omission does not universally mean thinking is off.
cache_control — not supplied here. No top-level automatic cache marker is supplied. Check nested system/tool/content blocks for separate cache_control markers.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
Which change can prevent prefix reuse even when the instructions mean the same thing?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Answer
**C.** Changing an early timestamp changes the prefix before the cache marker. Move volatile per-request content after stable cacheable content where appropriate. Also verify lifetime, minimum size, and other cache conditions.Q29. 10,000 documents need extraction with enough time for the provider’s batch completion window and retries; no user is waiting on an individual result. Use: A) Parallel real-time calls at max rate B) The Batch API with per-item tracking and a deadline/retry plan C) Streaming D) One giant prompt
Understand Q29 · the situation and each part of the question
The real situation behind this question
A back-office job has many documents to process, and no user is waiting for each answer on screen. The application can submit work, track it, and collect results later. This opens a different scheduling choice from an interactive chat. The question asks for a bulk-processing approach that respects deadlines and handles individual failures, not simply the fastest way to launch many requests at once.
Read the question in parts
Part 1 · no immediate response
The workload can tolerate asynchronous completion rather than demanding interactive latency.
Part 2 · per-item tracking
The application must associate each returned outcome with its original document and retry only what needs recovery.
What you are being asked to decide
How should you submit a large backlog when no person needs an immediate response? Choose a submission method that fits latency and failure requirements.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| batch | Batch API: submit multiple independent requests and collect per-item results later. |
| Batch API | A provider interface for submitting many requests for asynchronous processing. |
| Streaming (SSE) | Delivery of a response in events or fragments before the full response is complete. |
Example: batch-workflow Study: the structured-output ladder Batch API Streaming Domain 5 · Context & Reliability
Understand Q29's answer · full reasoning and worked examples
Claude synthesized · the point, straight
No user is waiting, and the deadline leaves room for the batch window plus retries. Real-time calls at max rate burn rate limit and cost for latency nobody needs; streaming and one giant prompt don't fit 10,000 items. So use the Batch API, track each item by id, and plan the deadline and retry path for the items that fail.
Connect the design to the situation
Track each invoice by an ID and collect asynchronous results within a deadline plan.
Best answer: B. A latency-tolerant backlog can use asynchronous batches and collect results by item ID. Plan for provider completion windows, failures, and retries. A hard overnight deadline requires a schedule and fallback rather than assuming every batch finishes in time.
What each choice would do here
A · Why this does not meet the full requirement
Parallel real-time calls at max rate
Maximum-rate real-time calls can add pressure without a latency need.
High concurrency is useful for latency-sensitive work within limits. Driving real-time requests at maximum rate is not automatically the best design for a backlog that can wait for batch completion.
B · Why this meets the requirement
The Batch API with per-item tracking and a deadline/retry plan
Batch processing fits delayed results, provided completion windows and retries fit.
Assign each item an identifier, submit batches, monitor completion, and process success/error outcomes individually. Make sure the service's completion behavior and your retry budget fit the business deadline.
C · Why this does not meet the full requirement
Streaming
Streaming delivers pieces sooner; it does not solve bulk job scheduling.
Streaming helps a user see partial output sooner. It does not provide asynchronous bulk-job management, item correlation, or the scheduling model the backlog needs.
D · Why this does not meet the full requirement
One giant prompt
One giant prompt sacrifices per-item isolation and can exceed limits.
Combining every document into one prompt makes one large failure affect all items and may exceed context limits. Separate requests preserve per-document validation, attribution, and retry handling.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Complete batch-submission body
{
"requests": [
{
"custom_id": "invoice-104",
"params": {
"model": "claude-sonnet-4-6",
"max_tokens": 512,
"messages": [
{
"role": "user",
"content": "Extract invoice INV-104, total USD 12.50. Return the amount in cents."
}
],
"output_config": {
"format": {
"type": "json_schema",
"schema": {
"type": "object",
"properties": {
"invoice_number": {
"type": "string"
},
"total_cents": {
"type": "integer"
}
},
"required": [
"invoice_number",
"total_cents"
],
"additionalProperties": false
}
}
}
}
}
]
}POST this body to /v1/messages/batches. requests contains independent items; custom_id belongs to batch correlation, and params contains this item’s complete Messages request. A real batch contains many items.
Not supplied in this example · settings and defaults
context_management — not supplied here. No server compaction strategy is enabled by this body. Host/manual compaction is separate.
tools — not supplied here. No tools are offered through this field.
tool_choice — not supplied here. With tools supplied, the default is auto: the model chooses whether to request a tool. Without tools, no supplied tool can be selected.
system — not supplied here. No application system instructions are supplied through this field. User messages still provide task text.
stop_sequences — not supplied here. No custom stop strings are configured. Generation can still stop for end_turn, tool_use, max_tokens, or another documented reason.
stream — not supplied here. For a direct non-streaming create/parse call, the result is one message rather than an event stream. A stream helper configures this separately.
thinking — not supplied here. No explicit thinking override is shown. Behavior depends on the selected model; omission does not universally mean thinking is off.
cache_control — not supplied here. No top-level automatic cache marker is supplied. Check nested system/tool/content blocks for separate cache_control markers.
metadata — not supplied here. No application user reference is supplied through metadata. Authentication still comes from the request credentials.
One complete result line from the batch results file
{
"custom_id": "invoice-104",
"result": {
"type": "succeeded",
"message": {
"id": "msg_demo_3",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-6",
"content": [
{
"type": "text",
"text": "{\"invoice_number\":\"INV-104\",\"total_cents\":1250}"
}
],
"stop_reason": "end_turn",
"stop_sequence": null,
"usage": {
"input_tokens": 180,
"output_tokens": 35,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0
}
}
}
}The results file contains one JSON record per item. Match custom_id to the submitted invoice. succeeded identifies a successful API item, not proof that every extracted fact is correct; inspect its message and validate the data.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
How should you submit a large backlog when no person needs an immediate response?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Example: batch-workflow Study: the structured-output ladder Batch API Streaming Domain 5 · Context & Reliability
Answer
**B.** A latency-tolerant backlog can use asynchronous batches and collect results by item ID. Plan for provider completion windows, failures, and retries. A hard overnight deadline requires a schedule and fallback rather than assuming every batch finishes in time.Q30. Production incident: the agent "works in staging, fails weirdly in prod." First architectural step: A) Full-loop observability — trace prompts, tool calls, stop reasons, gates per run — then diagnose B) Add retries everywhere C) Rewrite prompts D) Swap models
Understand Q30 · the situation and each part of the question
The real situation behind this question
A production agent sometimes produces the wrong result, but you do not yet know whether the fault is in the prompt, a selected tool, the backend, or the response parser. Changing the prompt immediately might hide one symptom while leaving the real defect. The question asks what evidence would let you follow one failing run across component boundaries and identify the first incorrect step.
Read the question in parts
Part 1 · full-loop observability
Connect model inputs, outputs, tool operations, policy decisions, and errors under one run identity.
Part 2 · before changing the agent
Diagnose the observed failure first; do not confuse an available intervention with evidence that it addresses the cause.
What you are being asked to decide
What evidence should you gather before changing a failing production agent? Diagnose a production failure using observable evidence.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| stop_reason versus stop_sequence — deciding the next loop action | Read stop_reason to learn why an API call stopped. stop_sequence is only the text marker that matched, when that was the reason. The exact value for an output-token limit is max_tokens (plural). Your application uses this information to decide what the loop does next. |
Study: the stop-reason table stop_reason Domain 5 · Context & Reliability
Understand Q30's answer · full reasoning and worked examples
Claude synthesized · the point, straight
"Fails weirdly in prod" means you don't yet know what's different. Retries, prompt rewrites, or a model swap are fixes for a diagnosis you don't have. So the first step is observability across the whole loop: trace prompts, tool calls, stop reasons, and gate decisions per run, then compare staging to prod and fix the real difference.
Connect the design to the situation
A trace shows the exact prompt, selected tool, backend failure, and ignored stop reason.
Best answer: A. Capture traces and metrics that reveal where production behavior differs. Include model/prompt versions, stop reasons, tool results, gate decisions, and timing, with sensitive data handled appropriately. Diagnose the failure before changing the model or adding retries everywhere.
What each choice would do here
A · Why this meets the requirement
Full-loop observability — trace prompts, tool calls, stop reasons, gates per run — then diagnose
End-to-end traces let you locate the failure rather than guess.
A trace can reveal that the right tool was selected but its timeout was ignored, or that an incomplete response reached the parser. That evidence directs the fix to the responsible component.
B · Why this does not meet the full requirement
Add retries everywhere
Retries can repeat harmful effects or hide the original cause.
Retries are useful for particular transient failures. Adding them indiscriminately can repeat side effects, amplify load, and make the original failure harder to see.
C · Why this does not meet the full requirement
Rewrite prompts
Prompt changes are speculative until the failure location is known.
If the backend returned bad data or the harness ignored stop_reason, a wording change may have no reliable effect. Prompt editing is appropriate after evidence identifies a prompting problem.
D · Why this does not meet the full requirement
Swap models
A model swap may change symptoms without fixing the integration defect.
A different model may appear to avoid the problem on a few runs. Without traces, you cannot tell whether it corrected the cause, changed the symptoms, or merely encountered different inputs.
Check your understanding · explain the design in your own words
What evidence should you gather before changing a failing production agent?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Study: the stop-reason table stop_reason Domain 5 · Context & Reliability
Answer
**A.** Capture traces and metrics that reveal where production behavior differs. Include model/prompt versions, stop reasons, tool results, gate decisions, and timing, with sensitive data handled appropriately. Diagnose the failure before changing the model or adding retries everywhere.Q71. A team enables prompt caching with a cache_control breakpoint after an 8K system prompt, then adds a "Generated at: {timestamp}" line at the top of that prompt. Every call now reports cache_read_input_tokens: 0. Why?
A) Every call misses because the cached prefix is too short to reach the minimum cacheable length B) Adding any text after the breakpoint necessarily invalidates every earlier cached block C) Every call misses because the prefix before the breakpoint is no longer byte-identical between calls D) Every call misses because the prefix before the breakpoint is no longer semantically identical between calls
Understand Q71 · the situation and each part of the question
The real situation behind this question
A cache marker appears after a long prompt prefix, but the application adds a new Generated-at timestamp at the beginning of that prefix for every call. Most words stay the same and the task meaning is unchanged. Nevertheless, the candidate cached prefix differs. The question tests the distinction between exact input identity and semantic similarity, using a concrete changing field as the clue.
Read the question in parts
Part 1 · before the breakpoint
The timestamp is inside the portion intended for reuse, not after it.
Part 2 · same meaning
Prompt caching does not use a general judgment that two differently worded prefixes mean the same thing.
What you are being asked to decide
Why does changing a timestamp before the cache marker prevent exact-prefix reuse? Explain why a small prefix change defeats cache reuse.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| breakpoint | Cache breakpoint: a supported marker indicating an eligible prompt prefix for reuse. |
Example: prompt caching Study: context management Prompt caching System prompt Domain 5 · Context & Reliability
Understand Q71's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Prompt caching matches on an exact byte-identical prefix up to the breakpoint. The timestamp sits at the top of the system prompt, so every call's prefix differs from the last one and can never be reused. Semantic sameness doesn't count and length isn't the issue. Anything that changes per call must go after the breakpoint, never inside the cached prefix.
Connect the design to the situation
The otherwise identical prompt begins with a new Generated-at value on every call.
Best answer: C. The changing timestamp makes the input prefix differ between calls. The cache does not treat equivalent meaning as identical content. Other cache requirements still apply; the scenario assumes the prefix previously met them.
What each choice would do here
A · Why this does not meet the full requirement
Every call misses because the cached prefix is too short to reach the minimum cacheable length
The specific new timestamp is the relevant clue; verify model thresholds separately.
Minimum cache length is a real condition, but the question highlights a changing prefix value. Without evidence that the prefix is too short, that is not the most direct explanation.
B · Why this does not meet the full requirement
Adding any text after the breakpoint necessarily invalidates every earlier cached block
Content after an earlier breakpoint does not inherently invalidate that earlier prefix.
New content after a breakpoint can coexist with reuse of the earlier unchanged prefix. This option incorrectly claims later additions necessarily invalidate all earlier cached material.
C · Why this meets the requirement
Every call misses because the prefix before the breakpoint is no longer byte-identical between calls
The repeated prefix must match exactly; the changing timestamp breaks that match.
The timestamp changes the candidate prefix, so exact reuse at that boundary fails. Put genuinely volatile data after the intended stable region where appropriate, and verify actual cache counters.
D · Why this does not meet the full requirement
Every call misses because the prefix before the breakpoint is no longer semantically identical between calls
Similar meaning is not the cache identity condition; unchanged semantics do not guarantee a hit.
The wording about semantic identity is the trap. A timestamp can leave instructions effectively unchanged in meaning while still changing the exact serialized prefix needed for reuse.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Complete request with an explicit cache boundary
{
"model": "claude-sonnet-4-6",
"max_tokens": 1024,
"system": [
{
"type": "text",
"text": "Summarize documents using only supplied facts.",
"cache_control": {
"type": "ephemeral",
"ttl": "5m"
}
}
],
"metadata": {
"user_id": "user_demo_opaque_104"
},
"messages": [
{
"role": "user",
"content": [
{
"type": "document",
"source": {
"type": "text",
"media_type": "text/plain",
"data": "Order O-104 shipped on Monday."
},
"title": "Order record",
"citations": {
"enabled": true
}
},
{
"type": "text",
"text": "When did this order ship? Cite the record."
}
]
}
]
}cache_control marks the system block here. A changing timestamp inserted into that marked prefix would change it. The short teaching text may be below the cache minimum; it illustrates placement, not a promised cache hit.
Not supplied in this example · settings and defaults
context_management — not supplied here. No server compaction strategy is enabled by this body. Host/manual compaction is separate.
output_config — not supplied here. No output_config schema or effort override is supplied. A prompt asking for JSON does not provide schema enforcement.
tools — not supplied here. No tools are offered through this field.
tool_choice — not supplied here. With tools supplied, the default is auto: the model chooses whether to request a tool. Without tools, no supplied tool can be selected.
stop_sequences — not supplied here. No custom stop strings are configured. Generation can still stop for end_turn, tool_use, max_tokens, or another documented reason.
stream — not supplied here. For a direct non-streaming create/parse call, the result is one message rather than an event stream. A stream helper configures this separately.
thinking — not supplied here. No explicit thinking override is shown. Behavior depends on the selected model; omission does not universally mean thinking is off.
cache_control — not supplied here. No top-level automatic cache marker is supplied. Check nested system/tool/content blocks for separate cache_control markers.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
Why does changing a timestamp before the cache marker prevent exact-prefix reuse?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Example: prompt caching Study: context management Prompt caching System prompt Domain 5 · Context & Reliability
Answer
**C.** The changing timestamp makes the input prefix differ between calls. The cache does not treat equivalent meaning as identical content. Other cache requirements still apply; the scenario assumes the prefix previously met them.Q72. A raw-API support agent promised a refund at turn 6. At turn 41, the request log confirms that summarization removed the promise from the supplied history, and the agent denies it. What happened? A) The model forgot the promise because its attention decayed across 41 turns B) The model forgot the promise because the context window shrank as history grew C) The cache removed the promise from an otherwise complete request D) The harness dropped the promise when it summarized turns 1–35, so the model never saw it
Understand Q72 · the situation and each part of the question
The real situation behind this question
A customer was promised a refund earlier in a long conversation. After the application summarizes older turns, a later answer behaves as though no promise was made. You inspect the actual request and find that the promise is absent. That evidence localizes the problem before model generation: the application failed to supply the fact. The question asks you to distinguish omitted input from a model failing to use input that was present.
Read the question in parts
Part 1 · absent from request log
The later model call did not receive the promise in its supplied context.
Part 2 · after summarization
The summary/state construction is the place to investigate for lost commitments.
What you are being asked to decide
What does a missing fact in the actual request log tell you about a later wrong answer? Distinguish missing input from failure to use supplied input.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| When and how to compact — the production decision | Decide when to shorten history and which facts must survive. |
| Context window | The model's limit on the information and generation it can process in one call. |
| Harness | The application code around the model call. It prepares context, handles results, checks policy, and runs tools. |
Example: compaction-strategy Study: the structured-output ladder Context window Compaction Harness Domain 5 · Context & Reliability
Understand Q72's answer · full reasoning and worked examples
Claude synthesized · the point, straight
The request log settles it: the promise was not in the history sent at turn 41. The model can't recall a fact it was never given, so this isn't attention decay or a shrinking window, and caching doesn't delete content. The harness's summarization of turns 1–35 dropped it. Commitments like a promised refund must live in verified structured state that survives every compaction.
Connect the design to the situation
A summary drops the earlier refund promise; the later model request contains no record of it.
Best answer: D. The request log confirms that the summary omitted the promise. Preserve important commitments in verified structured state as well as the conversational summary. Do not blame a shrinking window or claim the model retained a fact that was not supplied.
What each choice would do here
A · Why this does not meet the full requirement
The model forgot the promise because its attention decayed across 41 turns
Attention problems are not needed to explain a fact absent from input.
Attention limitations matter when information is present but underused. Here the fact never reached the later request, so attention decay is not needed to explain its absence from the answer.
B · Why this does not meet the full requirement
The model forgot the promise because the context window shrank as history grew
The configured window did not shrink merely because more turns occurred.
A model's configured context capacity does not shrink with each turn. The amount of used space grows, which may lead the application to summarize or remove content.
C · Why this does not meet the full requirement
The cache removed the promise from an otherwise complete request
Prompt caching is not a tool that selectively deletes a promise from supplied history.
Caching reuses supplied prefixes; it is not a policy for selectively deleting customer promises. Inspect the application's constructed history rather than treating the cache as a memory editor.
D · Why this meets the requirement
The harness dropped the promise when it summarized turns 1–35, so the model never saw it
The harness's summary lost the fact before the next call; preserve commitments in structured state.
Preserve commitments in structured state and verify they survive compaction. A summary should not be the sole operational record of actions or promises that the application must honor exactly.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Complete request enabling API compaction
{
"model": "claude-sonnet-4-6",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Help me plan a long research task."
}
]
}
],
"context_management": {
"edits": [
{
"type": "compact_20260112",
"trigger": {
"type": "input_tokens",
"value": 100000
}
}
]
}
}Send the documented compaction beta header separately and use a supported model. This short input does not trigger the threshold. Operational facts still need durable state beyond any summary.
Not supplied in this example · settings and defaults
output_config — not supplied here. No output_config schema or effort override is supplied. A prompt asking for JSON does not provide schema enforcement.
tools — not supplied here. No tools are offered through this field.
tool_choice — not supplied here. With tools supplied, the default is auto: the model chooses whether to request a tool. Without tools, no supplied tool can be selected.
system — not supplied here. No application system instructions are supplied through this field. User messages still provide task text.
stop_sequences — not supplied here. No custom stop strings are configured. Generation can still stop for end_turn, tool_use, max_tokens, or another documented reason.
stream — not supplied here. For a direct non-streaming create/parse call, the result is one message rather than an event stream. A stream helper configures this separately.
thinking — not supplied here. No explicit thinking override is shown. Behavior depends on the selected model; omission does not universally mean thinking is off.
cache_control — not supplied here. No top-level automatic cache marker is supplied. Check nested system/tool/content blocks for separate cache_control markers.
metadata — not supplied here. No application user reference is supplied through metadata. Authentication still comes from the request credentials.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
What does a missing fact in the actual request log tell you about a later wrong answer?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Example: compaction-strategy Study: the structured-output ladder Context window Compaction Harness Domain 5 · Context & Reliability
Answer
**D.** The request log confirms that the summary omitted the promise. Preserve important commitments in verified structured state as well as the conversational summary. Do not blame a shrinking window or claim the model retained a fact that was not supplied.Q73. Before each call, a raw-API harness must verify input + max_tokens will fit the context window, and trigger its configured compaction policy if needed. Every option below yields a usable number — which token counting approach is best?
A) Call the count_tokens endpoint on the exact system + tools + messages payload before create B) Take usage.input_tokens from the previous response and add a chars/4 estimate of the new turn C) Estimate the whole array at roughly 4 characters per token with a safety margin D) Send the request and treat a context-overflow 400 as the signal to compact and retry
Understand Q73 · the situation and each part of the question
The real situation behind this question
Before the next model call, your application has changed messages and may also have changed system instructions or tools. It needs an estimate of how much input the actual next request will consume so it can leave room for output. The question asks for a measurement based on that assembled payload, rather than a guess based on yesterday's or the previous turn's usage.
Read the question in parts
Part 1 · exact next payload
Count the system, tools, and messages you are about to send, not only the latest user sentence.
Part 2 · reserve output room
Input estimation and max_tokens are related budget decisions but remain different quantities.
What you are being asked to decide
How should the application estimate the tokens in the actual next request? Estimate the next request rather than relying on stale usage.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| harness | Harness: application code around the model that manages calls, history, checks, and tool execution. |
| max_tokens | max_tokens: the output-token allowance for one model call, not the whole loop or a money amount. |
| compaction | Compaction: shorten conversation context while preserving information needed for later work. |
| context window | Context window: the model’s capacity for supplied input and generated output in a call. |
Example: token-counting Study: the stop-reason table Context window max_tokens Compaction Harness Domain 5 · Context & Reliability
Understand Q73's answer · full reasoning and worked examples
Claude synthesized · the point, straight
You need the token count of the exact request you're about to send — system, tools, and messages as they'll go on the wire. The count_tokens endpoint measures that payload. Previous usage.input_tokens plus chars/4 misses whatever changed, a flat 4-chars-per-token guess is wrong for code, and waiting for a 400 turns pre-flight into failure-and-retry.
Connect the design to the situation
Count the current system instructions, definitions, and messages before reserving output room.
Best answer: A. Count the intended request with the provider's token-counting endpoint rather than mixing old usage with a rough text estimate. Treat the result according to the API's documented accuracy and overhead rules, and leave headroom. An 80% trigger is an application policy, not a universal API requirement.
What each choice would do here
A · Why this meets the requirement
Call the count_tokens endpoint on the exact system + tools + messages payload before create
The provider's counter sees the actual payload; treat it as an estimate and keep a margin.
Use the provider's token-count interface on the relevant assembled inputs, then retain a safety margin. Treat the result as an estimate and still handle errors and model-specific limits in execution.
B · Why this does not meet the full requirement
Take usage.input_tokens from the previous response and add a chars/4 estimate of the new turn
Prior usage does not include all changed definitions/context in the new request.
Previous usage describes a different request. Adding a rough estimate for one new message can miss changed tool definitions, documents, cache categories, or other context edits.
C · Why this does not meet the full requirement
Estimate the whole array at roughly 4 characters per token with a safety margin
Characters-per-token is a rough approximation, especially for code and non-English text.
Character ratios can provide a quick approximation, but vary with language, code, and tokenization. They are less direct than the available provider counter for the actual request representation.
D · Why this does not meet the full requirement
Send the request and treat a context-overflow 400 as the signal to compact and retry
Waiting for rejection adds avoidable failure/retry work when a preflight counter is available.
Reactive recovery is still needed, but intentionally waiting for rejection introduces avoidable failed calls. A preflight count provides earlier evidence for compaction, trimming, or task splitting.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Complete token-count body — a different endpoint
{
"model": "claude-sonnet-4-6",
"system": "You help customers check order status. Use get_order for order facts. Never invent a status.",
"tools": [
{
"name": "get_order",
"description": "Read the status of an order the signed-in customer may access.",
"input_schema": {
"type": "object",
"properties": {
"order_id": {
"type": "string",
"description": "The order identifier, for example O-104."
}
},
"required": [
"order_id"
],
"additionalProperties": false
},
"strict": true
}
],
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Where is order O-104?"
}
]
}
]
}Send to /v1/messages/count_tokens. This measures input and therefore does not need the generation max_tokens field. Count before generation, then separately reserve output space.
Complete illustrative token-count response
{
"input_tokens": 180
}This is the counter endpoint response, not a generated Message. Treat the count as an estimate and retain a margin.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
How should the application estimate the tokens in the actual next request?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Example: token-counting Study: the stop-reason table Context window max_tokens Compaction Harness Domain 5 · Context & Reliability
Answer
**A.** Count the intended request with the provider's token-counting endpoint rather than mixing old usage with a rough text estimate. Treat the result according to the API's documented accuracy and overhead rules, and leave headroom. An 80% trigger is an application policy, not a universal API requirement.Q74. A billing-dispute agent will run 60+ turns on the raw API. These context-management approaches can be useful — which most directly addresses the requirement for keeping the dispute's operational facts reliable to the end? A) Trigger summarization at ~80% of the window and carry a rolling prose summary in place of old turns B) Trigger summarization at ~80% and additionally keep a structured state object (customer id, amounts, actions taken, promises) that survives every compaction C) Skip summarization; fetch prior turns just-in-time through a transcript-search tool when the model asks D) Isolate each turn's heavy tool work in subagents so the main window barely grows
Understand Q74 · the situation and each part of the question
The real situation behind this question
A support dispute may last long enough that older conversation is summarized repeatedly. Exact details such as customer identity, refund amounts, promises, and completed actions must remain available even when conversational wording is shortened. The question asks for durable operational memory alongside the summary, because a fluent summary can omit a detail that later determines what the application is allowed or obligated to do.
Read the question in parts
Part 1 · structured state object
Keep named fields for operational facts rather than relying only on paragraphs of summary.
Part 2 · survives every compaction
The application explicitly carries this state forward and updates it from verified outcomes.
What you are being asked to decide
How can important dispute facts survive repeated history shortening? Preserve operational facts across long-running conversations.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Compaction (who actually runs it?) | Replacing some conversation history with a shorter representation. |
Study: workflows vs agents Compaction Subagent Domain 5 · Context & Reliability
Understand Q74's answer · full reasoning and worked examples
Claude synthesized · the point, straight
The requirement is that operational facts — customer id, amounts, actions taken, promises — stay reliable through 60+ turns. A rolling prose summary can silently drop any of them on each compaction. So summarize at ~80%, but also keep a structured state object that survives every compaction and is validated on update. Retrieval and subagent isolation help with size, not with durable facts.
Connect the design to the situation
Keep customer ID, amounts, completed actions, and promises in structured state alongside summaries.
Best answer: B. A compact summary plus a verified case-state object protects important operational facts better than repeated prose summarization alone. Retain IDs, amounts, completed actions, and commitments. Validate updates to that state rather than blindly trusting a generated summary.
What each choice would do here
A · Why this does not meet the full requirement
Trigger summarization at ~80% of the window and carry a rolling prose summary in place of old turns
A prose summary alone can omit precise commitments or amounts.
A prose summary reduces size but can omit an exact promise or amount. Triggering it at a reasonable threshold does not solve what information the summary may lose.
B · Why this meets the requirement
Trigger summarization at ~80% and additionally keep a structured state object (customer id, amounts, actions taken, promises) that survives every compaction
Structured operational state plus summaries better preserves the required facts.
Maintain explicit fields for facts the workflow cannot afford to forget, while summaries preserve broader conversational context. Validate state updates against actual actions and evidence rather than blindly trusting generated summaries.
C · Why this does not meet the full requirement
Skip summarization; fetch prior turns just-in-time through a transcript-search tool when the model asks
Retrieval can help but depends on remembering to request the needed history.
Searching a transcript can recover missing facts when the system knows to search. It is weaker for obligations that must always be present in the decision state, even if the model does not ask for them.
D · Why this does not meet the full requirement
Isolate each turn's heavy tool work in subagents so the main window barely grows
Isolation reduces context growth but does not itself preserve durable commitments.
Worker isolation reduces how much raw detail reaches the main conversation. It does not create a durable record of commitments or completed actions unless the application separately maintains one.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Complete request enabling API compaction
{
"model": "claude-sonnet-4-6",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Help me plan a long research task."
}
]
}
],
"context_management": {
"edits": [
{
"type": "compact_20260112",
"trigger": {
"type": "input_tokens",
"value": 100000
}
}
]
}
}Send the documented compaction beta header separately and use a supported model. This short input does not trigger the threshold. Operational facts still need durable state beyond any summary.
Not supplied in this example · settings and defaults
output_config — not supplied here. No output_config schema or effort override is supplied. A prompt asking for JSON does not provide schema enforcement.
tools — not supplied here. No tools are offered through this field.
tool_choice — not supplied here. With tools supplied, the default is auto: the model chooses whether to request a tool. Without tools, no supplied tool can be selected.
system — not supplied here. No application system instructions are supplied through this field. User messages still provide task text.
stop_sequences — not supplied here. No custom stop strings are configured. Generation can still stop for end_turn, tool_use, max_tokens, or another documented reason.
stream — not supplied here. For a direct non-streaming create/parse call, the result is one message rather than an event stream. A stream helper configures this separately.
thinking — not supplied here. No explicit thinking override is shown. Behavior depends on the selected model; omission does not universally mean thinking is off.
cache_control — not supplied here. No top-level automatic cache marker is supplied. Check nested system/tool/content blocks for separate cache_control markers.
metadata — not supplied here. No application user reference is supplied through metadata. Authentication still comes from the request credentials.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
How can important dispute facts survive repeated history shortening?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Study: workflows vs agents Compaction Subagent Domain 5 · Context & Reliability
Answer
**B.** A compact summary plus a verified case-state object protects important operational facts better than repeated prose summarization alone. Retain IDs, amounts, completed actions, and commitments. Validate updates to that state rather than blindly trusting a generated summary.Q75. A raw-API agent's pre-flight token counting shows input + max_tokens about to exceed the context window. What is the correct order of levers?
A) Summarize history first, then drop stale tool results, then raise max_tokens to fit more B) Raise max_tokens first for headroom, then summarize history, then drop tool results C) Drop stale tool results first, then summarize history, then raise max_tokens if both fall short D) Drop stale tool results first, then summarize history, then shrink the reserved output only if both fall short
Understand Q75 · the situation and each part of the question
The real situation behind this question
The next request's input plus its output allowance no longer fits the selected model's context limit. Increasing max_tokens will not create more total space; it reserves more space for generated output. The question asks you to remove unnecessary input first and consider a smaller output budget only if the task can still finish usefully. It is a resource-budget problem, not a request for a larger answer.
Read the question in parts
Part 1 · input plus reserved output
Both consume the available budget, so changing either side affects whether the request fits.
Part 2 · only if needed
Shrinking output is a tradeoff, not a magic fix; an impossibly small answer budget can cause truncation.
What you are being asked to decide
What can you reduce when input plus reserved output no longer fits? Understand how input and reserved output share capacity.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| max_tokens | max_tokens: the output-token allowance for one model call, not the whole loop or a money amount. |
| context window | Context window: the model’s capacity for supplied input and generated output in a call. |
| max_tokens (output ceiling) | The maximum output-token allowance for a single request. |
Study: the stop-reason table Context window max_tokens Domain 5 · Context & Reliability
Understand Q75's answer · full reasoning and worked examples
Claude synthesized · the point, straight
When input plus reserved output won't fit, reduce what costs nothing first: drop stale tool results. Then summarize older history, preserving essential facts. Only if both fall short do you shrink the reserved output, and only if the task can still finish. Raising max_tokens is the trap because it consumes more of the window — it makes the overflow worse.
Connect the design to the situation
Remove stale payload detail, summarize older history, then reassess the output allowance.
Best answer: D. Remove unnecessary context, then summarize older material while preserving essential facts. Reduce output allowance only if the task can still finish safely; otherwise split the task or change the supported model/window. Raising max_tokens consumes more of the available budget.
What each choice would do here
A · Why this does not meet the full requirement
Summarize history first, then drop stale tool results, then raise max_tokens to fit more
Raising output allowance consumes more context room rather than creating it.
Summarizing and trimming can help, but the final increase in max_tokens works against fitting the request. More output allowance does not enlarge the underlying context window.
B · Why this does not meet the full requirement
Raise max_tokens first for headroom, then summarize history, then drop tool results
More reserved output worsens the fit problem.
Raising max_tokens first consumes additional budget when the request is already too large. It confuses the maximum generated answer with total model capacity.
C · Why this does not meet the full requirement
Drop stale tool results first, then summarize history, then raise max_tokens if both fall short
The final step again increases rather than reduces the reserved space.
The first two actions reduce input, but the final action again increases the reserved output. A correct sequence must preserve the direction of the budget arithmetic throughout.
D · Why this meets the requirement
Drop stale tool results first, then summarize history, then shrink the reserved output only if both fall short
Reduce unnecessary input first, then adjust output only if the task can still complete; otherwise split or stop.
Remove stale detail, summarize what can safely be compressed, and reassess the required output. If useful completion still cannot fit, split the task or choose a suitable supported configuration rather than repeatedly forcing an impossible request.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Complete request enabling API compaction
{
"model": "claude-sonnet-4-6",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Help me plan a long research task."
}
]
}
],
"context_management": {
"edits": [
{
"type": "compact_20260112",
"trigger": {
"type": "input_tokens",
"value": 100000
}
}
]
}
}Send the documented compaction beta header separately and use a supported model. This short input does not trigger the threshold. Operational facts still need durable state beyond any summary.
Not supplied in this example · settings and defaults
output_config — not supplied here. No output_config schema or effort override is supplied. A prompt asking for JSON does not provide schema enforcement.
tools — not supplied here. No tools are offered through this field.
tool_choice — not supplied here. With tools supplied, the default is auto: the model chooses whether to request a tool. Without tools, no supplied tool can be selected.
system — not supplied here. No application system instructions are supplied through this field. User messages still provide task text.
stop_sequences — not supplied here. No custom stop strings are configured. Generation can still stop for end_turn, tool_use, max_tokens, or another documented reason.
stream — not supplied here. For a direct non-streaming create/parse call, the result is one message rather than an event stream. A stream helper configures this separately.
thinking — not supplied here. No explicit thinking override is shown. Behavior depends on the selected model; omission does not universally mean thinking is off.
cache_control — not supplied here. No top-level automatic cache marker is supplied. Check nested system/tool/content blocks for separate cache_control markers.
metadata — not supplied here. No application user reference is supplied through metadata. Authentication still comes from the request credentials.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
What can you reduce when input plus reserved output no longer fits?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Study: the stop-reason table Context window max_tokens Domain 5 · Context & Reliability
Answer
**D.** Remove unnecessary context, then summarize older material while preserving essential facts. Reduce output allowance only if the task can still finish safely; otherwise split the task or change the supported model/window. Raising max_tokens consumes more of the available budget.Q76. At peak traffic your client starts receiving 429 responses, and occasionally 529. What is the correct precedence of responses?
A) Retry immediately once, then fall back to exponential backoff with jitter, then queue B) Honor the retry-after header when present, else exponential backoff with jitter; shed or defer batch-priority load; consider a fallback model only for persistent 529 C) Switch to the fallback model first to relieve pressure, then backoff, then honor retry-after D) Queue all traffic first, then backoff with jitter, then honor retry-after on the drained queue
Understand Q76 · the situation and each part of the question
The real situation behind this question
Many requests receive rate-limit or temporary-overload responses. If all clients immediately retry, they can create another synchronized surge and delay recovery. The application needs a bounded scheduling policy that respects any server delay, spreads retries, and reduces lower-priority pressure. The question asks for the order of those recovery actions, not merely whether backoff or a fallback model appears somewhere in the answer.
Read the question in parts
Part 1 · retry-after
The service may tell the client how long to wait; use that guidance when applicable.
Part 2 · backoff with jitter
Increase retry delays and vary them so clients do not all return at the same instant.
Part 3 · persistent overload
A fallback is a deliberate later policy choice, not an automatic reaction to every transient error.
What you are being asked to decide
How should a client respond to rate limits and temporary overload? Recover from service pressure without causing a retry surge.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| precedence | Precedence: which setting wins when multiple sources set the same applicable key. |
| 429 | 429: a rate-limit response; follow server retry guidance when supplied. |
| 529 | 529: temporary service overload; avoid repeatedly hammering the service. |
| Jitter | A random variation in retry timing that reduces synchronized retries. |
Study: settings precedence settings precedence — cascade + clamp, layer by layer Domain 5 · Context & Reliability
Understand Q76's answer · full reasoning and worked examples
Claude synthesized · the point, straight
A 429 or 529 often arrives with a retry-after header, and that is the server's instruction — honor it first. Without it, use exponential backoff with jitter. Meanwhile shed or defer batch-priority load so you stop adding pressure. A fallback model comes last and only for persistent 529, because it changes quality, cost, and features. Retrying immediately or switching first ignores what the server told you.
Connect the design to the situation
Respect a server retry delay and spread retries rather than creating a synchronized surge.
Best answer: B. Respect retry-after when supplied, otherwise use bounded backoff with jitter. Apply admission control or defer lower-priority work to reduce pressure. Any fallback must satisfy task quality, permission, and feature requirements.
What each choice would do here
A · Why this does not meet the full requirement
Retry immediately once, then fall back to exponential backoff with jitter, then queue
An immediate retry ignores a supplied delay and can worsen pressure.
An immediate retry can ignore an explicit delay and add more pressure. Start with the server's guidance rather than spending a retry before applying the recovery policy.
B · Why this meets the requirement
Honor the retry-after header when present, else exponential backoff with jitter; shed or defer batch-priority load; consider a fallback model only for persistent 529
This respects retry timing, adds jitter/load control, and reserves fallback for persistent trouble.
Respect timing, use bounded jittered retries when appropriate, and defer lower-priority work. Evaluate fallback behavior for sustained failures, including its capability and correctness differences.
C · Why this does not meet the full requirement
Switch to the fallback model first to relieve pressure, then backoff, then honor retry-after
Switching immediately ignores the original service's recovery instructions and may change quality/cost.
Changing models first can alter behavior and may not resolve account-level pressure. It also skips the more direct recovery guidance returned by the service handling the original request.
D · Why this does not meet the full requirement
Queue all traffic first, then backoff with jitter, then honor retry-after on the drained queue
Queueing helps but is not a substitute for honoring server retry guidance.
Queueing is useful for managing demand, but it does not replace the timing policy on each retry. The application still needs to honor applicable server guidance as queued work is retried.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Complete illustrative error envelope
{
"type": "error",
"error": {
"type": "rate_limit_error",
"message": "Request rate limit exceeded."
},
"request_id": "req_demo_429"
}This arrives with HTTP 429, not a successful Message. If the response supplies retry-after: 10, wait according to that guidance before retrying; the delay is a header, not part of this JSON. Bound retries and reduce pressure.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
How should a client respond to rate limits and temporary overload?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Study: settings precedence settings precedence — cascade + clamp, layer by layer Domain 5 · Context & Reliability
Answer
**B.** Respect retry-after when supplied, otherwise use bounded backoff with jitter. Apply admission control or defer lower-priority work to reduce pressure. Any fallback must satisfy task quality, permission, and feature requirements.Q77. In prompt caching for multi-turn agents, in an application that explicitly updates cache_control each turn, what is a “moving breakpoint”? Not on CCAR-F
A) A breakpoint the API relocates automatically as the conversation grows past the cache TTL B) A cache_control marker on the system prompt that shifts earlier each turn so the cached prefix shrinks C) A cache_control marker placed on the newest message each turn, so each call writes the cache that the next call reads D) A cache_control marker placed on the oldest message each turn, so each call writes the cache that the next call reads
Understand Q77 · the situation and each part of the question
The real situation behind this question
As a conversation grows, an application can move an explicit cache marker to include more eligible history. The intent is that work prepared during one call becomes part of the reusable prefix for the next call. The question specifically says the application updates the marker; it is not asking about a separate automatic-caching feature or about summarizing old messages.
Read the question in parts
Part 1 · moving breakpoint
The marked boundary advances through eligible conversation content over successive requests.
Part 2 · next call reads it
Reuse still depends on matching content and other cache conditions; moving a marker is not proof of a hit.
What you are being asked to decide
When your own application moves an explicit cache marker, what is it trying to reuse next turn? Distinguish application-managed markers from automatic caching.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| breakpoint | Cache breakpoint: a supported marker indicating an eligible prompt prefix for reuse. |
| System prompt — the application’s standing instructions | Your application supplies the system prompt in the API request’s system field. It defines Claude’s general job and rules. The user message supplies the current task. Your code, not an application user’s claim, decides what belongs in the system field. |
Study: context management Prompt caching System prompt Domain 5 · Context & Reliability
Understand Q77's answer · full reasoning and worked examples
Claude synthesized · the point, straight
The application manages the marker itself, so the moving breakpoint is a cache_control marker placed on the newest message each turn. Each call writes a cache that ends at that message; the next call reuses that whole prefix and moves the marker forward again. Keeping it on the oldest message, or shifting it earlier, shrinks the reusable prefix instead of growing it.
Connect the design to the situation
After each turn, the application marks the newest eligible message so the next request can reuse more history.
Best answer: C. In this explicitly managed caching design, the application places a marker on the newest eligible message so later calls can reuse the growing stable prefix. Some API modes also provide automatic caching. The marker does not create new conversation memory.
What each choice would do here
A · Why this does not meet the full requirement
A breakpoint the API relocates automatically as the conversation grows past the cache TTL
Automatic caching is a separate feature; the scenario says the application updates the marker.
Some APIs provide automatic cache placement, but this scenario names application-managed movement. Do not replace the described mechanism with another feature simply because both involve caching.
B · Why this does not meet the full requirement
A cache_control marker on the system prompt that shifts earlier each turn so the cached prefix shrinks
Moving earlier reduces the reusable history rather than extending it.
Moving the boundary earlier would reduce the history included in that prefix. The stated goal is to extend eligible reuse as the conversation progresses, not progressively shrink it.
C · Why this meets the requirement
A cache_control marker placed on the newest message each turn, so each call writes the cache that the next call reads
The application advances the explicit marker to include newer eligible history.
The application places the marker on newer eligible history so the next request can reuse that prefix. Keep the preceding content stable and inspect usage to confirm the intended reuse.
D · Why this does not meet the full requirement
A cache_control marker placed on the oldest message each turn, so each call writes the cache that the next call reads
Keeping the marker at the oldest message does not extend coverage of new turns.
A marker that stays at the oldest message cannot include the later turns the application wants to reuse. Its position does not advance with the useful history.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Complete request with an explicit cache boundary
{
"model": "claude-sonnet-4-6",
"max_tokens": 1024,
"system": [
{
"type": "text",
"text": "Summarize documents using only supplied facts.",
"cache_control": {
"type": "ephemeral",
"ttl": "5m"
}
}
],
"metadata": {
"user_id": "user_demo_opaque_104"
},
"messages": [
{
"role": "user",
"content": [
{
"type": "document",
"source": {
"type": "text",
"media_type": "text/plain",
"data": "Order O-104 shipped on Monday."
},
"title": "Order record",
"citations": {
"enabled": true
}
},
{
"type": "text",
"text": "When did this order ship? Cite the record."
}
]
}
]
}cache_control marks the system block here. A changing timestamp inserted into that marked prefix would change it. The short teaching text may be below the cache minimum; it illustrates placement, not a promised cache hit.
Not supplied in this example · settings and defaults
context_management — not supplied here. No server compaction strategy is enabled by this body. Host/manual compaction is separate.
output_config — not supplied here. No output_config schema or effort override is supplied. A prompt asking for JSON does not provide schema enforcement.
tools — not supplied here. No tools are offered through this field.
tool_choice — not supplied here. With tools supplied, the default is auto: the model chooses whether to request a tool. Without tools, no supplied tool can be selected.
stop_sequences — not supplied here. No custom stop strings are configured. Generation can still stop for end_turn, tool_use, max_tokens, or another documented reason.
stream — not supplied here. For a direct non-streaming create/parse call, the result is one message rather than an event stream. A stream helper configures this separately.
thinking — not supplied here. No explicit thinking override is shown. Behavior depends on the selected model; omission does not universally mean thinking is off.
cache_control — not supplied here. No top-level automatic cache marker is supplied. Check nested system/tool/content blocks for separate cache_control markers.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
When your own application moves an explicit cache marker, what is it trying to reuse next turn?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Study: context management Prompt caching System prompt Domain 5 · Context & Reliability
Answer
**C.** In this explicitly managed caching design, the application places a marker on the newest eligible message so later calls can reuse the growing stable prefix. Some API modes also provide automatic caching. The marker does not create new conversation memory.Q78. Your eval suite gates every prompt and model change. What precisely is the "golden set"? A) A fixed, vetted set of inputs with known-correct expected outputs, re-run unchanged on every prompt or model change to detect regressions B) A rotating sample of recent production traffic, re-labeled weekly so the eval tracks drift C) A fixed, vetted set of inputs with expected outputs generated fresh by the model before each release D) The highest-scoring production runs, kept as exemplars for few-shot prompting
Understand Q78 · the situation and each part of the question
The real situation behind this question
Before releasing a new prompt or model, you want to know whether previously correct behavior got worse. To compare fairly, you need a stable set of inputs and trustworthy expected outcomes. If the test cases or expected answers change at the same time as the system, score differences become difficult to interpret. The question asks for a regression baseline, distinct from monitoring new production traffic.
Read the question in parts
Part 1 · fixed vetted inputs
The cases are reviewed and versioned so releases can be compared on the same work.
Part 2 · known-correct expectations
Expected outcomes come from a trusted evaluation process, not freshly from the changed model being tested.
What you are being asked to decide
What stable evaluation baseline lets you compare releases fairly? Maintain a trustworthy baseline for comparing releases.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| golden set | Golden set: vetted, stable evaluation cases with trusted expected outcomes. |
| Examples in a prompt — sample input, correct answer, then a new PDF | An example is a small demonstration you include in the prompt: sample input plus the correct answer. You write both parts. Claude uses that demonstration when answering about a new input. One demonstration is called one-shot prompting; several are called few-shot or multishot prompting. |
| Eval (evaluation) | A repeatable assessment of an AI system's behavior or output. |
Example: golden set Study: harness controls Golden set Few-shot Eval Domain 5 · Context & Reliability
Understand Q78's answer · full reasoning and worked examples
Claude synthesized · the point, straight
A golden set exists to detect regressions, and you can only detect change against something that doesn't move. So it's a fixed, vetted set of inputs with known-correct expected outputs, re-run unchanged on every prompt or model change. Rotating traffic changes the baseline, and regenerating expected outputs with the model under test destroys the independent reference. Drift sampling is a separate, complementary check.
Connect the design to the situation
Run the same vetted cases before and after a model/prompt change and compare against trusted expectations.
Best answer: A. A golden set has vetted expectations used consistently to compare versions. It can evolve through an explicit versioned review process, but the tested model must not silently generate its own ground truth. Production drift samples complement this set.
What each choice would do here
A · Why this meets the requirement
A fixed, vetted set of inputs with known-correct expected outputs, re-run unchanged on every prompt or model change to detect regressions
Fixed versioned examples with vetted expectations let you detect regressions.
Run the same versioned cases and compare results against their vetted expectations. Add new cases deliberately when coverage needs to grow, while preserving the ability to compare historical releases.
B · Why this does not meet the full requirement
A rotating sample of recent production traffic, re-labeled weekly so the eval tracks drift
Recent traffic is useful for drift checks, but rotating it changes the comparison baseline.
Fresh traffic helps discover drift and new failure modes. Rotating it continually makes it a moving target rather than the stable before/after baseline requested here.
C · Why this does not meet the full requirement
A fixed, vetted set of inputs with expected outputs generated fresh by the model before each release
Regenerating expected answers with the changed model removes the independent reference.
If the changed model writes its own new expected answers, a regression can redefine correctness to match itself. The test needs an independent reference rather than self-generated approval.
D · Why this does not meet the full requirement
The highest-scoring production runs, kept as exemplars for few-shot prompting
Good production examples are not automatically a labeled regression-test set.
Successful production runs can supply useful examples, but high scores alone do not establish a balanced regression set. The baseline should include difficult and failure-prone cases with verified expectations.
Check your understanding · explain the design in your own words
What stable evaluation baseline lets you compare releases fairly?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Example: golden set Study: harness controls Golden set Few-shot Eval Domain 5 · Context & Reliability
Answer
**A.** A golden set has vetted expectations used consistently to compare versions. It can evolve through an explicit versioned review process, but the tested model must not silently generate its own ground truth. Production drift samples complement this set.Q79. Nightly batch extraction: a handful of invoices appear twice in the database, and every duplicated invoice corresponds to a request that timed out mid-flight. Root cause? A) The Batch API replayed those requests server-side after the timeout B) Exponential backoff was missing, so the retries fired too quickly after the timeout C) The client correctly retried after the timeout, but the write tool had no idempotency key or effects ledger, so the replay double-executed the side effect D) Checkpointing was missing, so the resumed run restarted from the wrong step and re-processed those invoices
Understand Q79 · the situation and each part of the question
The real situation behind this question
A document job writes an extracted invoice to a database. The write completes, but the acknowledgement is lost, so the client retries. Two rows then appear for the same intended operation. The question asks about duplicate protection at the write boundary. Batch scheduling, backoff, and checkpoints can all be useful, but none automatically makes repeating an uncertain write safe.
Read the question in parts
Part 1 · write succeeded but acknowledgement lost
A timeout leaves uncertainty; it is not evidence that the database did nothing.
Part 2 · same intended invoice write
The retry needs a stable identity so the backend can recognize it instead of treating it as a new insertion.
What you are being asked to decide
What backend property prevents retrying an uncertain write from inserting the invoice twice? Prevent duplicate writes after uncertain network outcomes.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| batch | Batch API: submit multiple independent requests and collect per-item results later. |
| Idempotency | Repeating the same logical operation does not create an additional effect. |
| Batch API | A provider interface for submitting many requests for asynchronous processing. |
Study: harness controls Idempotency Batch API Domain 5 · Context & Reliability
Understand Q79's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Every duplicate matches a request that timed out mid-flight. A timeout leaves the write's outcome unknown, so the client correctly retried — and the write tool, lacking an idempotency key or effects ledger, applied the insert a second time. Backoff only changes timing; checkpoints only change where a run resumes. Duplicate protection has to live at the write boundary.
Connect the design to the situation
A write succeeds but its acknowledgement is lost; the retry should find the same operation record.
Best answer: C. A timeout leaves the write outcome uncertain. Reconcile status or retry under an idempotent operation contract so the same write is not applied twice. A delay changes timing, not duplicate-effect semantics.
What each choice would do here
A · Why this does not meet the full requirement
The Batch API replayed those requests server-side after the timeout
A timeout alone does not prove undocumented provider replay behavior.
The scenario does not establish that the batch service secretly replayed work. The described client retry is enough to explain duplication when the application write lacks deduplication.
B · Why this does not meet the full requirement
Exponential backoff was missing, so the retries fired too quickly after the timeout
Backoff affects timing, not whether repeating the write inserts another row.
Waiting longer between retries changes timing but not the semantics of another insert. Even a retry delayed for an hour can duplicate the row if no stable operation identity is enforced.
C · Why this meets the requirement
The client correctly retried after the timeout, but the write tool had no idempotency key or effects ledger, so the replay double-executed the side effect
A stable idempotency identity and durable effect handling prevent duplicate application writes.
Use a stable key and durable, atomic handling of the write/effect record. A repeated submission should return or reconcile the original outcome instead of executing another independent insertion.
D · Why this does not meet the full requirement
Checkpointing was missing, so the resumed run restarted from the wrong step and re-processed those invoices
Checkpoints aid resumption, but the described uncertain-write retry needs duplicate protection at the write boundary.
Checkpoints help avoid restarting completed workflow stages, but an acknowledgement can be lost around the checkpoint boundary. Protect the mutation itself as well as recording overall job progress.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Walk through approval and replay — offline simulation
# Offline teaching simulation: no payment or shipment is performed.
# Production must make effect recording atomic with the operation, or use
# the provider's idempotency support and reconcile uncertain outcomes.
ledger = {}
def propose(operation_id, amount, approved=False):
if operation_id in ledger:
return ledger[operation_id]
if amount > 50 and not approved:
return {"status": "pending_approval"}
result = {"status": "completed", "operation_id": operation_id}
ledger[operation_id] = result
return result
print(propose("credit-104", 75))
print(propose("credit-104", 75, approved=True))
print(propose("credit-104", 75, approved=True))
The first call waits for approval. The next records a completed operation; the repeated ID returns that record. This in-memory demonstration is not a durable or concurrency-safe production implementation. A real service needs persistent atomic effect handling, authenticated approvals, and recovery checks.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
What backend property prevents retrying an uncertain write from inserting the invoice twice?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Study: harness controls Idempotency Batch API Domain 5 · Context & Reliability
Answer
**C.** A timeout leaves the write outcome uncertain. Reconcile status or retry under an idempotent operation contract so the same write is not applied twice. A delay changes timing, not duplicate-effect semantics.Q80. A synthesis agent aggregates twelve source documents into one long input. It reliably reports findings from the first and last sources but keeps missing findings that appear only in the middle — yet request logs confirm the middle sources were present, and the total was well inside the context window. Root cause? A) The harness silently dropped the middle sources during compaction before the call B) Position effects — "lost in the middle": the model attends reliably to the beginning and end of long input and can drop findings from the middle C) The middle sources pushed the array past the window, so the API trimmed them D) A prompt-caching breakpoint truncated the middle of the cached prefix
Understand Q80 · the situation and each part of the question
The real situation behind this question
A report misses findings from the middle of twelve supplied sources. You inspect the actual request and confirm that all sources were present and the request fit the model's context limit. Those facts rule out several appealing explanations based on omission or overflow. The question asks why information can be present yet underused: fitting inside the window does not guarantee that every source receives equal attention in generation.
Read the question in parts
Part 1 · all sources present
The evidence rules out the harness dropping the middle material before the call.
Part 2 · fits the window
Capacity was sufficient; the failure concerns use of available information rather than an oversized request.
Part 3 · middle findings missed
Position effects are a plausible diagnosis to test with reordered inputs and evidence-focused evaluation.
What you are being asked to decide
If middle sources were present and fit the window, why might their facts still be missed? Distinguish input presence from reliable use of that input.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| context window | Context window: the model’s capacity for supplied input and generated output in a call. |
| Compaction (who actually runs it?) | Replacing some conversation history with a shorter representation. |
| Harness | The application code around the model call. It prepares context, handles results, checks policy, and runs tools. |
Study: the stop-reason table Context window Compaction Harness Domain 5 · Context & Reliability
Understand Q80's answer · full reasoning and worked examples
Claude synthesized · the point, straight
The logs rule out the usual suspects: the middle sources were present and the total fit the window, so nothing was dropped, trimmed, or truncated by caching. What's left is a position effect — "lost in the middle": the model attends reliably to the beginning and end of long input and misses findings buried between. The design must reorganize, retrieve focused passages, or split the synthesis, then measure coverage.
Connect the design to the situation
Logs show all twelve sources; the answer repeatedly emphasizes only early and late ones.
Best answer: B. The supplied evidence supports a position-related retrieval or attention problem: the middle material was present and fit the request. Improve organization, retrieve focused passages, or split the analysis, then evaluate coverage. Caching does not remove middle content.
What each choice would do here
A · Why this does not meet the full requirement
The harness silently dropped the middle sources during compaction before the call
Request logs explicitly rule out omitted middle content.
If compaction had removed the sources, the request log would show their absence. The question explicitly says they are present, so this explanation contradicts the supplied evidence.
B · Why this meets the requirement
Position effects — "lost in the middle": the model attends reliably to the beginning and end of long input and can drop findings from the middle
Position effects can reduce use of middle evidence; presence within the window does not guarantee recall.
Long-context position effects can reduce use of middle evidence. Test the hypothesis by changing organization, retrieving relevant passages, or requiring attributable findings rather than assuming every long-input failure has this cause.
C · Why this does not meet the full requirement
The middle sources pushed the array past the window, so the API trimmed them
The scenario states the request fits; automatic trimming is not established.
The scenario says the request fits. It also does not establish that the API silently trimmed selected sources, so this option invents a capacity failure the evidence rules out.
D · Why this does not meet the full requirement
A prompt-caching breakpoint truncated the middle of the cached prefix
Caching does not intentionally remove the middle of a supplied prompt.
A cache boundary governs prefix reuse, not selective deletion of middle source text. Caching does not explain why present content was ignored in the generated report.
Check your understanding · explain the design in your own words
If middle sources were present and fit the window, why might their facts still be missed?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Complete API request, response, and every field Complete Python loop and the JSON it sends
Study: the stop-reason table Context window Compaction Harness Domain 5 · Context & Reliability
Answer
**B.** The supplied evidence supports a position-related retrieval or attention problem: the middle material was present and fit the request. Improve organization, retrieve focused passages, or split the analysis, then evaluate coverage. Caching does not remove middle content.Concept drills (22)
Source: Concept drills.
Q318. A platform engineer has Claude Code migrating 40 microservices from a homegrown logger to structured logging. For the first dozen services its notes named the exact wrapper functions it replaced, such as logCtx() and emitAudit(). By service 26 the notes read "this service uses the usual logger setup," and the session has already been compacted twice. Fourteen services remain. Which plan restores precise work for those fourteen?
A) Write the replacements found so far to a migration notes file, then hand each remaining service to a subagent that reads that file and returns a short structured list of the functions it changed. B) Clear the conversation and have one fresh session rescan all 40 services from the beginning so the rebuilt context contains only the essential names. C) Run the compaction a third time with a focus instruction to preserve every function name, then carry on with the remaining services in the same session. D) Add a line to the prompt telling the agent to always cite exact function names and file paths, and resume the migration in the current session.
Understand Q318 · the situation and each part of the question
The real situation behind this question
A platform team is replacing a homegrown logging library across 40 microservices before an observability deadline. The engineer running Claude Code noticed that the early migration notes were precise and useful for reviewers, but the later notes turned generic. Reviewers now cannot tell which wrappers were replaced in the later services. With fourteen services left, the engineer needs the rest of the migration to be as precise as the first dozen without redoing the whole job.
Read the question in parts
Part 1 · compacted twice
Compaction has already been tried and failed, so another round of it is not a new remedy.
Part 2 · Fourteen services remain
The remaining work is substantial and will add more file reads, so the plan must stop further crowding.
What you are being asked to decide
The main session has gone vague after lots of file reading. How do you finish the job precisely? Recognising context degradation and choosing isolation plus persisted notes over re-prompting or re-compacting.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Context isolation | Each remaining service is read inside its own subagent context, so its file dumps never reach the main session. |
| Scratchpad | The migration notes file holding every replacement found so far, readable by any new context. |
Study: Context management Study: Scratchpads & crash-recovery manifests Context isolation Scratchpad Subagent
Understand Q318's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Vague references after long exploration mean the specifics were crowded out, and repeated compaction cannot restore them. Persist what you know to a file, then isolate the remaining exploration in subagents that return compact summaries, so the main context never fills with raw reads again.
Connect the design to the situation
A logger migration across 40 services whose notes drift from exact function names to generic phrases.
Best answer: A. The vague notes show that earlier specifics have been pushed out by accumulated file reads, and compaction has already failed twice to bring them back. Saving what is known to a file and giving each remaining service its own subagent context keeps the noisy reads out of the main session. A prompt demanding exact names does nothing, because the names are no longer in context to cite.
What each choice would do here
A · Why this meets the requirement
Write the replacements found so far to a migration notes file, then hand each remaining service to a subagent that reads that file and returns a short structured list of the functions it changed.
Correct: it persists the specifics and stops new exploration from crowding the main context.
Persisting the replacements to a file protects the finished work from further loss. Each subagent reads that file, does its noisy exploration in a separate context, and returns only a compact list, so the main session stays sharp for the final fourteen services.
B · Why this does not meet the full requirement
Clear the conversation and have one fresh session rescan all 40 services from the beginning so the rebuilt context contains only the essential names.
A full rescan throws away 26 services of work and will degrade the same way again.
Starting over costs every service already migrated and relies on one session holding 40 services of reads, which is exactly the load that degraded the first attempt. The same drift will return partway through.
C · Why this does not meet the full requirement
Run the compaction a third time with a focus instruction to preserve every function name, then carry on with the remaining services in the same session.
A third compaction summarises an already blurred history; it cannot recover names that are gone.
A focus instruction helps compaction decide what to keep from what is currently present, but the specific names were already blurred in earlier rounds. Compacting again produces a shorter summary of vague material and the next service reads push it out once more.
D · Why this does not meet the full requirement
Add a line to the prompt telling the agent to always cite exact function names and file paths, and resume the migration in the current session.
An instruction to be specific cannot make the model cite details that are no longer in its context.
The model is not choosing to be vague; it no longer holds the specifics. Telling it to cite exact names may even encourage invented names, because the instruction pressures it to produce detail it cannot see.
Check your understanding · explain the design in your own words
The main session has gone vague after lots of file reading. How do you finish the job precisely?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Context management Study: Scratchpads & crash-recovery manifests
Study: Context management Study: Scratchpads & crash-recovery manifests Context isolation Scratchpad Subagent
Answer
**A.** The vague notes show that earlier specifics have been pushed out by accumulated file reads, and compaction has already failed twice to bring them back. Saving what is known to a file and giving each remaining service its own subagent context keeps the noisy reads out of the main session. A prompt demanding exact names does nothing, because the names are no longer in context to cite.Q319. An agent generates migration scripts for 30 warehouse database tables, one table at a time. After each table it summarises the schema in a sentence or two and drops the raw DDL to save room. While handling table 9 it saw that the column cust_ref had been renamed to customer_id everywhere. The script it wrote for table 24 still joins on cust_ref. Which design change would have prevented this?
A) Keep a small ledger of cross-table facts, such as renames and type changes, outside the summaries and include it unchanged in every step. B) Switch to a model with a larger context window so the raw DDL for every table fits and nothing has to be summarised at all. C) Lower the sampling temperature for the script-writing step so the agent reproduces column names more consistently across tables. D) Before each new table, have the agent reread its own summary of table 9 so the earlier change stays fresh in its working context.
Understand Q319 · the situation and each part of the question
The real situation behind this question
A data team is moving a warehouse to a new schema and uses an agent to write migration scripts for 30 tables. To stay within budget the agent keeps only a brief summary of each finished table. Late in the run a script joined on a column that no longer exists, and the migration failed in staging. The team wants to know what design would keep a change learned early from disappearing by the time later tables depend on it.
Read the question in parts
Part 1 · summarises the schema in a sentence or two
Each table's detail is squeezed into a tiny summary, so small but important changes can be dropped.
Part 2 · renamed to `customer_id` everywhere
The fact affects every later table, which makes it cross-cutting rather than local to table 9.
What you are being asked to decide
Why did a rename seen earlier vanish, and what structure keeps such facts safe? Identifying summary loss as the failure and choosing a durable facts block as the fix.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Compaction | Replacing detailed table history with a short summary, which can drop a single rename. |
| Scratchpad | The rename ledger that sits outside the summaries and is carried whole into each step. |
Study: When to summarize a long loop without losing tool results Study: Scratchpads & crash-recovery manifests Compaction Scratchpad Context budget
Understand Q319's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Summaries drop detail, and a rename is exactly the kind of small detail that disappears. Anything later steps depend on must be kept outside the summarised history in a durable facts block included whole at every step.
Connect the design to the situation
A table-by-table migration where a renamed column reappears under its old name fifteen tables later.
Best answer: A. The rename was compressed away when table 9's detail was replaced by a short summary, so later steps only saw the older name. A ledger of cross-cutting facts that is never summarised survives every step. Rereading the table 9 summary does not help, because that summary is exactly where the rename was lost.
What each choice would do here
A · Why this meets the requirement
Keep a small ledger of cross-table facts, such as renames and type changes, outside the summaries and include it unchanged in every step.
Correct: facts that affect later steps are kept verbatim and never pass through a lossy summary.
A ledger of renames and type changes is small, is appended to the moment a cross-table fact appears, and is included unchanged in every step. The table 24 step would have seen that `cust_ref` is now `customer_id` and written the correct join.
B · Why this does not meet the full requirement
Switch to a model with a larger context window so the raw DDL for every table fits and nothing has to be summarised at all.
A bigger window postpones summarising but does not change a design that drops facts when it does summarise.
A larger window would let more DDL stay, but the team would still summarise once the run grew past it. The underlying design, where every fact passes through a lossy summary, stays unchanged and the rename could vanish later.
C · Why this does not meet the full requirement
Lower the sampling temperature for the script-writing step so the agent reproduces column names more consistently across tables.
Temperature shapes wording variety, not whether a fact is still present in the context.
A lower temperature makes the model choose its most likely tokens, but the most likely token is the old name it still holds. Consistency is not the problem; the missing rename is.
D · Why this does not meet the full requirement
Before each new table, have the agent reread its own summary of table 9 so the earlier change stays fresh in its working context.
The table 9 summary is the lossy artifact; rereading it repeats the loss rather than repairing it.
The summary of table 9 is where the rename was reduced to something like minor schema tweaks. Reading that summary again puts the same incomplete text back into context, so the agent keeps using the older column name.
Check your understanding · explain the design in your own words
Why did a rename seen earlier vanish, and what structure keeps such facts safe?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: When to summarize a long loop without losing tool results Study: Scratchpads & crash-recovery manifests
Study: When to summarize a long loop without losing tool results Study: Scratchpads & crash-recovery manifests Compaction Scratchpad Context budget
Answer
**A.** The rename was compressed away when table 9's detail was replaced by a short summary, so later steps only saw the older name. A ledger of cross-cutting facts that is never summarised survives every step. Rereading the table 9 summary does not help, because that summary is exactly where the rename was lost.Q320. A security team used an agent to condense 200 internal policy documents into a two-page answer for a customer's vendor questionnaire. One line reads "customer data is encrypted at rest with customer-managed keys." A year later an auditor asks which policy supports that line and whether it still applies after the key-management redesign. Which output design would have made that question a quick lookup? A) Run a second model pass over the answer before sending it to confirm each sentence against the policy set at that time. B) Attach a bibliography at the end of the answer listing all 200 policy documents that were given to the agent as input. C) Store each claim as a record naming the source document, section, quoted excerpt and retrieval date alongside the sentence. D) Save every generated answer in a document store with version history so each line can be traced to the date it was produced.
Understand Q320 · the situation and each part of the question
The real situation behind this question
A software vendor answers security questionnaires from enterprise customers, and the security team used an agent to summarise hundreds of policy documents into short answers. Since then the company redesigned its key management. An auditor now wants proof for one encryption claim and wants to know if it still holds. Without knowing which policy text produced the sentence, the team faces rereading all 200 documents to answer one question.
Read the question in parts
Part 1 · which policy supports that line
The auditor wants the specific source of a single sentence, not the whole input set.
Part 2 · after the key-management redesign
The source may have changed, so the team needs to know exactly which document to recheck.
What you are being asked to decide
How do you make a synthesised claim checkable a year later? Choosing per-claim provenance over document-level history or one-time verification.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Provenance | The record tying the encryption sentence to its exact policy section and date read. |
| Audit trail | The evidence an auditor follows to confirm a claim without redoing the whole synthesis. |
Study: Provenance — claim-source mappings through synthesis Provenance Audit trail
Understand Q320's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Synthesis condenses many sources into sentences and drops which source produced which sentence unless you keep it. Store claim-to-source records with location and date so later verification is a lookup, not a re-audit.
Connect the design to the situation
A condensed questionnaire answer whose encryption claim must be traced after a redesign.
Best answer: C. The auditor needs the link from one sentence to the specific evidence behind it, and only a per-claim provenance record carries that. Version history dates the sentence but never names its source, and a list of all inputs does not say which one supports which claim.
What each choice would do here
A · Why this does not meet the full requirement
Run a second model pass over the answer before sending it to confirm each sentence against the policy set at that time.
A pre-send check helps accuracy on the day, but leaves no trace for the auditor a year later.
A verification pass may have caught errors when the answer was written, but it leaves no lasting link. A year later, after the redesign, its result is stale and does not show where to look.
B · Why this does not meet the full requirement
Attach a bibliography at the end of the answer listing all 200 policy documents that were given to the agent as input.
Listing every input does not tell anyone which document supports this particular claim.
A bibliography of 200 inputs shows what the agent was given, not what it used. The auditor learns nothing about which of the 200 supports the encryption line, so the search effort is unchanged.
C · Why this meets the requirement
Store each claim as a record naming the source document, section, quoted excerpt and retrieval date alongside the sentence.
Correct: each claim carries its own source, location and date, so re-verification is targeted.
A claim record pointing to the key-management policy, section and excerpt, with the date it was read, turns the audit into opening one section and comparing it with the redesigned policy. Every other claim can be rechecked the same way.
D · Why this does not meet the full requirement
Save every generated answer in a document store with version history so each line can be traced to the date it was produced.
Version history shows when a line was written, not which policy it came from.
A version store records that the answer existed on a given date and who changed it. It holds no link between the encryption sentence and any policy section, so the team would still have to search all 200 documents.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
One claim with its provenance
{
"claim": "Customer data is encrypted at rest with customer-managed keys.",
"sources": [
{
"doc_id": "POL-KMS-004",
"section": "3.2 Key custody",
"excerpt": "Tenant data stores use keys held in the customer key vault...",
"retrieved_at": "2025-08-14"
}
]
}The auditor opens POL-KMS-004 section 3.2 and compares it with the redesigned policy; no other document needs rereading.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
How do you make a synthesised claim checkable a year later?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Provenance — claim-source mappings through synthesis
Study: Provenance — claim-source mappings through synthesis Provenance Audit trail
Answer
**C.** The auditor needs the link from one sentence to the specific evidence behind it, and only a per-claim provenance record carries that. Version history dates the sentence but never names its source, and a list of all inputs does not say which one supports which claim.Q321. A trip-planning coordinator sends a hotel-availability subagent to check five cities. After finishing three cities, the subagent's upstream booking service starts returning rate-limit responses with a retry-after header. What should the subagent send back so the coordinator can make the best recovery decision? A) Throw the rate-limit exception up to the coordinator's top-level handler, which ends the whole trip plan so that no partial itinerary is produced. B) Return an error result stating a rate-limit failure, the three completed cities with results, the two pending cities, and the retry-after value. C) Retry internally with backoff until its budget is spent, then return one short message stating that hotel search is currently unavailable. D) Return the three finished cities as a normal success result so the itinerary can be built, leaving the other two cities out of the reply.
Understand Q321 · the situation and each part of the question
The real situation behind this question
A travel company's planning assistant builds multi-city itineraries by sending subagents to check flights, hotels and events. During a busy weekend the hotel provider throttles requests partway through a five-city search. The coordinator could wait and retry, try another provider for the missing cities, or present the itinerary with gaps flagged. Which of those is possible depends entirely on what the hotel subagent reports when it runs into the limit.
Read the question in parts
Part 1 · After finishing three cities
There is real partial work that should reach the coordinator rather than be discarded.
Part 2 · a retry-after header
The failure is transient and comes with timing, which is recovery information worth passing up.
What you are being asked to decide
What should a partly failed subagent report so the coordinator can recover? Designing failure payloads that preserve partial work and recovery options.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Error taxonomy | Labelling the failure as a transient rate limit so the coordinator knows waiting can work. |
| Graceful degradation | Using the three finished cities now while the two pending ones are retried or rerouted. |
Study: Error taxonomy — the harness branches on these Study: Resilience patterns Error taxonomy Graceful degradation tool_result
Understand Q321's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Recovery happens at the coordinator, so the subagent's job is to report failure in a form the coordinator can reason about. Return the failure type, what completed with its results, what is pending and any retry hint, never a silent success or a bare error.
Connect the design to the situation
A hotel lookup that completes three of five cities before hitting rate limits.
Best answer: B. The coordinator can only choose between waiting, rerouting or continuing with partial data if it can see the failure type, what finished, what is pending and when retry is sensible. A generic unavailable message removes all of that, and reporting three cities as full success hides the gap entirely.
What each choice would do here
A · Why this does not meet the full requirement
Throw the rate-limit exception up to the coordinator's top-level handler, which ends the whole trip plan so that no partial itinerary is produced.
Ending the whole plan throws away three good city results over a temporary problem.
Escalating the exception to a handler that ends everything turns a temporary limit into a total failure. The traveller gets nothing, even though three cities of results were ready and the other two might have succeeded a minute later.
B · Why this meets the requirement
Return an error result stating a rate-limit failure, the three completed cities with results, the two pending cities, and the retry-after value.
Correct: type, partial results, pending work and retry timing let the coordinator choose well.
With a structured error the coordinator can present three cities now, schedule a retry after the given delay, or send the two pending cities to another provider. Every recovery path stays open because nothing was hidden.
C · Why this does not meet the full requirement
Retry internally with backoff until its budget is spent, then return one short message stating that hotel search is currently unavailable.
A generic unavailable message discards the partial results and the retry timing.
Internal retries may be sensible, but collapsing the outcome into one unavailable message discards the three good cities and the retry timing. The coordinator can only fail the whole hotel step or guess.
D · Why this does not meet the full requirement
Return the three finished cities as a normal success result so the itinerary can be built, leaving the other two cities out of the reply.
Calling a partial result a success hides the two missing cities from the coordinator.
The coordinator believes all five cities were searched and builds an itinerary with two cities lacking hotels and no explanation. Nobody retries the missing cities, because nothing reported them as missing.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Structured partial-failure result
{
"status": "partial_failure",
"error_type": "rate_limited",
"retryable": true,
"retry_after_seconds": 30,
"completed": {
"Lisbon": [
"Hotel Almada"
],
"Porto": [
"Casa Ribeira"
],
"Madrid": [
"Hostal Sol"
]
},
"pending": [
"Seville",
"Valencia"
],
"alternatives": [
"retry after delay",
"query secondary provider for pending cities"
]
}The coordinator can use three cities immediately and decide how to handle the two pending ones.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
What should a partly failed subagent report so the coordinator can recover?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Error taxonomy — the harness branches on these Study: Resilience patterns
Study: Error taxonomy — the harness branches on these Study: Resilience patterns Error taxonomy Graceful degradation tool_result
Answer
**B.** The coordinator can only choose between waiting, rerouting or continuing with partial data if it can see the failure type, what finished, what is pending and when retry is sensible. A generic unavailable message removes all of that, and reporting three cities as full success hides the gap entirely.Q322. A research assistant is preparing evidence for a city infrastructure committee on a concrete additive. A peer-reviewed 2019 lab study on 40 test slabs reports a 30% reduction in cracking. A 2025 white paper funded by the manufacturer, covering 900 slabs in real roads, reports 8%. Which statement describes the synthesis agent's job exactly? A) Present both results, each with its source, date, review status, funding, sample size and setting, and note what may explain the gap. B) Weight the two figures by their sample sizes and report the combined estimate of roughly 9% as the best overall effect. C) Treat the peer-reviewed lab study as authoritative because it passed review, and mention the white paper only as an unreviewed claim. D) Leave both results out because they disagree, and tell the committee that no conclusion is possible until a third study is published.
Understand Q322 · the situation and each part of the question
The real situation behind this question
A city's infrastructure committee must decide whether to specify a new additive in road concrete, a choice worth millions over a decade. The research assistant found two relevant sources that disagree sharply. One is a small, independently reviewed lab study; the other is large and real-world but paid for by the seller. Committee members, not the assistant, are accountable for the call, so they need the evidence in a form they can judge.
Read the question in parts
Part 1 · funded by the manufacturer
Funding is a provenance attribute the committee should see, not grounds for silent exclusion.
Part 2 · covering 900 slabs in real roads
Setting and sample size differ between the studies and may explain the conflicting figures.
What you are being asked to decide
Two credible studies disagree. What does the synthesis owe its readers? Preserving conflicting evidence with provenance instead of resolving it on the reader’s behalf.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Provenance | Source, date, review status, funding and setting attached to each crack-reduction figure. |
| Graceful degradation | Delivering the evidence with its uncertainty visible instead of withholding everything. |
Study: Provenance — claim-source mappings through synthesis Provenance Graceful degradation
Understand Q322's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Conflicting credible sources are evidence, not noise to clean up. Keep both values and attach source, date, review status, funding, sample size and setting so the accountable readers can weigh them.
Connect the design to the situation
A small reviewed lab study and a large vendor-funded field report disagree on crack reduction.
Best answer: A. Lab slabs and real roads, independent review and manufacturer funding are differences the committee must weigh, and only presenting both with that context lets it do so. Weighting by sample size manufactures a single number that neither study reported and hides why they differ.
What each choice would do here
A · Why this meets the requirement
Present both results, each with its source, date, review status, funding, sample size and setting, and note what may explain the gap.
Correct: both figures and the attributes that explain them reach the committee.
Both figures appear with their attributes, and a note points out that lab slabs and in-service roads face different loads and curing. The committee can decide how much weight to give each and may request an independent field trial.
B · Why this does not meet the full requirement
Weight the two figures by their sample sizes and report the combined estimate of roughly 9% as the best overall effect.
A pooled figure hides the lab-versus-road difference that likely explains the gap.
Pooling by sample size produces a number dominated by the white paper and reported by neither study. The difference between lab and road conditions disappears, so the committee cannot see the question it most needs to discuss.
C · Why this does not meet the full requirement
Treat the peer-reviewed lab study as authoritative because it passed review, and mention the white paper only as an unreviewed claim.
Review status is one factor to show, not a rule that entitles the agent to discard field data.
The committee sees 30% presented as settled and 8% dismissed. A real-world result from 900 slabs may be the more relevant one for roads, and the agent has made a judgment that belongs to the committee.
D · Why this does not meet the full requirement
Leave both results out because they disagree, and tell the committee that no conclusion is possible until a third study is published.
Dropping both leaves the committee with nothing even though two informative studies exist.
Withholding both studies because they disagree gives the committee nothing to work with. A disagreement between credible sources is itself useful information, and the decision cannot wait indefinitely for a third study.
Check your understanding · explain the design in your own words
Two credible studies disagree. What does the synthesis owe its readers?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Provenance — claim-source mappings through synthesis
Study: Provenance — claim-source mappings through synthesis Provenance Graceful degradation
Answer
**A.** Lab slabs and real roads, independent review and manufacturer funding are differences the committee must weigh, and only presenting both with that context lets it do so. Weighting by sample size manufactures a single number that neither study reported and hides why they differ.Q323. A labor-market dashboard agent finds that 34% of tech job postings were fully remote in a survey fielded in early 2022, and 22% in a different survey from late 2025. The current design marks every such mismatch as a contradiction and holds the report until a human analyst resolves it. What is wrong with this design? A) Nothing important; escalating every mismatch to an analyst is the safest way to keep contradictory figures out of the published dashboard. B) The design should resolve such mismatches automatically by keeping the most recent figure, since it reflects current market conditions. C) The design should publish the midpoint of the two figures, 28%, with a note that the underlying surveys disagreed somewhat. D) The figures come from different periods, so they may describe a trend, and should be shown together with their sources and dates.
Understand Q323 · the situation and each part of the question
The real situation behind this question
A staffing firm publishes a monthly labor-market dashboard for clients deciding on office policy. Its agent pulls figures from many public surveys, and whenever two numbers on the same topic differ it pauses the report for an analyst. Analysts are swamped, and many of the flagged cases involve surveys from different years. Clients mainly want to know which way the market is moving, and the dates are exactly what show that.
Read the question in parts
Part 1 · holds the report until a human analyst resolves it
The current design treats any difference as a conflict needing a person, which is costly.
Part 2 · early 2022
The first figure has a date, which suggests the two numbers measure different moments.
What you are being asked to decide
Are two figures from different years really in conflict? Separating temporal difference from true conflict and keeping dates attached to values.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Provenance | The survey name and fielding date carried with each remote-work percentage. |
| Escalation | Routing a mismatch to a human, which is wasted here because the figures do not actually conflict. |
Study: Provenance — claim-source mappings through synthesis Provenance Escalation Human-in-the-loop
Understand Q323's answer · full reasoning and worked examples
Claude synthesized · the point, straight
A difference between values from different periods is often a trend, not a conflict. Attach source and date to each value and publish both, reserving conflict handling for figures that describe the same thing at the same time.
Connect the design to the situation
Remote-job share of 34% in 2022 and 22% in 2025 flagged as a contradiction.
Best answer: D. Two readings years apart are different moments, and the change between them may be the story. Treating them as a contradiction needing resolution sends work to an analyst for nothing and pushes toward choosing one; dating both lets the reader see the decline.
What each choice would do here
A · Why this does not meet the full requirement
Nothing important; escalating every mismatch to an analyst is the safest way to keep contradictory figures out of the published dashboard.
Escalation spends analyst time on what is not a contradiction and delays the dashboard.
Sending a dated pair of figures to an analyst produces the answer the dates already gave: they are two points in time. The report is delayed and analysts spend effort on cases that need no judgment at all.
B · Why this does not meet the full requirement
The design should resolve such mismatches automatically by keeping the most recent figure, since it reflects current market conditions.
Keeping only the latest figure erases the history that shows the decline.
Automatically keeping the newest figure is fast, but clients lose the earlier data point and the trend with it. It also teaches the system to drop data whenever values differ, which is wrong for truly simultaneous conflicts.
C · Why this does not meet the full requirement
The design should publish the midpoint of the two figures, 28%, with a note that the underlying surveys disagreed somewhat.
A midpoint invents a value that no survey measured at any time.
A 28% midpoint corresponds to no survey and no date. Clients reading it would think the remote share is fairly stable, the opposite of what the two surveys show together.
D · Why this meets the requirement
The figures come from different periods, so they may describe a trend, and should be shown together with their sources and dates.
Correct: different periods can both be right, and dates make the trend visible.
Presenting 34% for early 2022 and 22% for late 2025, each with its survey, shows clients a clear decline in remote postings. No human review is needed and no figure is discarded or altered.
Check your understanding · explain the design in your own words
Are two figures from different years really in conflict?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Provenance — claim-source mappings through synthesis
Study: Provenance — claim-source mappings through synthesis Provenance Escalation Human-in-the-loop
Answer
**D.** Two readings years apart are different moments, and the change between them may be the story. Treating them as a contradiction needing resolution sends work to an analyst for nothing and pushes toward choosing one; dating both lets the reader see the decline.Q324. A pull-request review pipeline runs a license-compliance subagent alongside style and security checks. The license scanner's API token had expired, so its calls returned 401 Unauthorized. The subagent caught the error and returned {"violations": []}, and the pipeline approved a PR that added a library under an incompatible license. Where is the defect?
A) In the subagent's retry policy, which should have retried the 401 with exponential backoff before giving up and returning results. B) In the orchestration design, which should halt all review for every repository as soon as any single check fails for any reason. C) In the pipeline, which should refuse to approve any PR unless every check subagent reports at least one finding for a reviewer to look at. D) In the subagent, which turned an authorization failure into a clean-looking empty result, so nothing upstream knew the scan never ran.
Understand Q324 · the situation and each part of the question
The real situation behind this question
An engineering organisation relies on automated checks to approve pull requests quickly. Legal requires that no library with an incompatible license ships. When the license scanner's token quietly expired, every scan came back empty, and for several days the pipeline treated every PR as license-clean. One PR introduced a copyleft dependency that went to production. The team now needs to pin down which piece of the design let a failure look like a pass.
Read the question in parts
Part 1 · returned `{"violations": []}`
The subagent reported a normal clean result, the same shape a genuinely clean PR produces.
Part 2 · returned 401 Unauthorized
The scan was refused for credentials, so no licensing information was ever gathered.
What you are being asked to decide
A check failed but reported clean. Which component is at fault? Locating the silent error suppression as the root cause instead of adding the wrong compensating control.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Error taxonomy | Classifying the 401 as an access failure, which is neither transient nor a valid empty result. |
| tool_result | What the subagent handed back, which should have signalled an error instead of empty success. |
Study: Error taxonomy — the harness branches on these Error taxonomy Graceful degradation tool_result
Understand Q324's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Returning empty success for a failed call makes a missed check indistinguishable from a passed one. Subagents must report access failures as errors with their type so the coordinator can block, reroute or flag the gap.
Connect the design to the situation
An expired scanner token produces an empty violation list and an incorrectly approved PR.
Best answer: D. An empty violations list is a legitimate outcome for a clean PR, so the pipeline had no way to tell a clean scan from a scan that never happened. The subagent should have returned an access error so the pipeline could block, alert or mark the check incomplete.
What each choice would do here
A · Why this does not meet the full requirement
In the subagent's retry policy, which should have retried the 401 with exponential backoff before giving up and returning results.
An expired token will not fix itself, so retries only delay the same failure.
A 401 means the credentials are invalid, and backoff does not renew a token. After the retries the subagent would still face the question of how to report the failure, and it would still have reported an empty list.
B · Why this does not meet the full requirement
In the orchestration design, which should halt all review for every repository as soon as any single check fails for any reason.
Stopping all review everywhere over one failed check is far out of proportion.
A global halt on any failure would stop every team's reviews for one expired token. The real need is for the failure to be visible so this PR is held, not for unrelated work to stop.
C · Why this does not meet the full requirement
In the pipeline, which should refuse to approve any PR unless every check subagent reports at least one finding for a reviewer to look at.
Clean PRs legitimately have no findings, so demanding findings would block good changes.
Requiring at least one finding would fail every genuinely clean PR and push reviewers to ignore the rule. It also would not reveal that the license check did not run, because other checks could still supply findings.
D · Why this meets the requirement
In the subagent, which turned an authorization failure into a clean-looking empty result, so nothing upstream knew the scan never ran.
Correct: masking the error as empty success is what hid the missed scan.
If the subagent had returned an access-failure result, the pipeline could mark the license check as not run, hold the PR and alert whoever owns the scanner token. The incompatible library would never have been approved.
Check your understanding · explain the design in your own words
A check failed but reported clean. Which component is at fault?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Error taxonomy — the harness branches on these
Study: Error taxonomy — the harness branches on these Error taxonomy Graceful degradation tool_result
Answer
**D.** An empty violations list is a legitimate outcome for a clean PR, so the pipeline had no way to tell a clean scan from a scan that never happened. The subagent should have returned an access error so the pipeline could block, alert or mark the check incomplete.Q325. A recruiting agent runs two subagents. One searches the internal candidate database for "Rust and FPGA experience, based in Lisbon"; the query completes normally and returns zero candidates. The other asks the interviewer-calendar service for open slots and receives a 503 Service Unavailable. The harness currently treats both as "no data" and retries each three times. Which handling rule is right? A) Treat both as valid empty answers and move on, reporting that there are no suitable candidates and no open interview slots. B) Retry both with a longer exponential backoff, since either could succeed on a later attempt if the systems are given more time. C) Accept the zero-candidate result as a real answer and note it, and retry the calendar call as a transient service failure. D) Send both straight to the recruiting operations team for manual investigation and remove the automatic retries entirely.
Understand Q325 · the situation and each part of the question
The real situation behind this question
A recruiting team uses an agent to shortlist candidates and book interviews for niche roles. Hiring managers have complained that the agent reports "no candidates" and "no availability" in the same breath, and that runs take long because every empty response is retried. The harness does not distinguish a search that found nothing from a service that failed to answer, so both waste time and one of them gives a false answer.
Read the question in parts
Part 1 · the query completes normally and returns zero candidates
The search ran successfully; zero is its real answer, not an error.
Part 2 · receives a 503 Service Unavailable
The calendar service failed temporarily, so no answer about slots was obtained.
What you are being asked to decide
One call found nothing; the other failed. Should they be handled alike? Branching on outcome type: valid empty versus transient failure.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Error taxonomy | Separating a completed empty search from a 503, which is a transient failure. |
| Backpressure | Respecting an overloaded service by retrying with delay instead of hammering it. |
Study: Error taxonomy — the harness branches on these Study: Resilience patterns Error taxonomy Backpressure
Understand Q325's answer · full reasoning and worked examples
Claude synthesized · the point, straight
An empty result from a query that ran is an answer; a 503 is a failure that may pass. Branch on the outcome type: accept and record the empty answer, retry the transient failure, and never report one as the other.
Connect the design to the situation
A zero-hit candidate search and a 503 calendar call treated identically.
Best answer: C. A completed search with no matches is a finding; retrying it just repeats the same answer. A 503 is a transient failure where retrying makes sense. Treating both as the same outcome either wastes calls or hides that the calendar was never read.
What each choice would do here
A · Why this does not meet the full requirement
Treat both as valid empty answers and move on, reporting that there are no suitable candidates and no open interview slots.
Calling the 503 an empty answer falsely reports that no interview slots exist.
The hiring manager would be told that no interview slots exist when the calendar was simply unreachable. Interviews would not be booked even though slots may be available, and nobody would know to try again.
B · Why this does not meet the full requirement
Retry both with a longer exponential backoff, since either could succeed on a later attempt if the systems are given more time.
Retrying the finished search only reproduces zero results and wastes calls.
Longer backoff on the candidate search changes nothing; the database will return zero again because no one matches. The calendar retry is reasonable, but applying it to both adds delay and hides the difference between the outcomes.
C · Why this meets the requirement
Accept the zero-candidate result as a real answer and note it, and retry the calendar call as a transient service failure.
Correct: each outcome gets the handling its type calls for.
The shortlist step records that no Lisbon candidates with Rust and FPGA experience exist, perhaps suggesting a wider search, while the calendar call is retried with backoff. The manager gets an accurate picture of both results.
D · Why this does not meet the full requirement
Send both straight to the recruiting operations team for manual investigation and remove the automatic retries entirely.
Manual investigation of both is overkill for a routine empty search and a transient outage.
Operations staff would spend time confirming that a niche search found no one and waiting for a calendar outage to pass. Neither case needs human judgment; each has a standard automatic response.
Check your understanding · explain the design in your own words
One call found nothing; the other failed. Should they be handled alike?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Error taxonomy — the harness branches on these Study: Resilience patterns
Study: Error taxonomy — the harness branches on these Study: Resilience patterns Error taxonomy Backpressure
Answer
**C.** A completed search with no matches is a finding; retrying it just repeats the same answer. A 503 is a transient failure where retrying makes sense. Treating both as the same outcome either wastes calls or hides that the calendar was never read.Q326. An insurer auto-approves repair estimates from photo analysis when model confidence is at least 0.88, a threshold calibrated a year ago on photos of sedans and SUVs. A new fleet client sends photos of electric cargo vans taken with fisheye dashcams, and the estimates come back at 0.93 confidence. Which statement is exactly right? A) Raising the threshold for every vehicle type to 0.97 is the right response, since that removes most of the risk from unfamiliar photos. B) A 0.93 score says little about accuracy on photos unlike the calibration set; stratified sampling of auto-approved estimates must measure it. C) Asking the model whether it is sure about the vehicle type, and approving only when it says yes, confirms that the score is trustworthy. D) The estimates can be approved, because the threshold was calibrated against labelled data and 0.93 clears it by a comfortable margin.
Understand Q326 · the situation and each part of the question
The real situation behind this question
An insurer saves adjusters many hours by letting a photo model approve routine repair estimates. The threshold was tuned against thousands of labelled claims, all from passenger cars photographed on phones. A new commercial client brings a fleet of electric vans with wide-angle dashcam photos. The estimates arrive with high confidence, and the claims manager must decide whether that number deserves the same trust it earned on passenger cars.
Read the question in parts
Part 1 · calibrated a year ago on photos of sedans and SUVs
The score was only shown to track accuracy for that population of vehicles and cameras.
Part 2 · taken with fisheye dashcams
The new input differs in vehicle and camera, outside what calibration covered.
What you are being asked to decide
Does a high confidence score mean anything on input the system has never seen? Knowing that calibration is distribution-bound and that only sampled human review measures real accuracy.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Calibration | Evidence that a score of 0.88 meant about that accuracy, measured only on sedan and SUV photos. |
| Stratified sampling | Reviewing random auto-approved estimates from each vehicle type and camera source, including the new vans. |
Study: Confidence calibration & stratified sampling (human-review routing) Study: Escalation design Calibration Stratified sampling Human-in-the-loop
Understand Q326's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Confidence thresholds are only calibrated for the inputs they were measured on, and a model cannot certify its own confidence. Keep sampling auto-approved output by segment so new input types are measured by humans rather than trusted on their score.
Connect the design to the situation
Fisheye photos of cargo vans scoring 0.93 against a threshold calibrated on sedans and SUVs.
Best answer: B. Calibration only holds for the kind of input it was measured on, so a high score on fisheye van photos is unverified. Continued stratified sampling across vehicle types and camera sources reveals the true error rate. Asking the model to confirm itself is still self-reported confidence and adds no independent evidence.
What each choice would do here
A · Why this does not meet the full requirement
Raising the threshold for every vehicle type to 0.97 is the right response, since that removes most of the risk from unfamiliar photos.
A blanket higher threshold costs review on familiar cases and still trusts an unverified score.
Moving every vehicle type to 0.97 sends many accurate sedan estimates to adjusters and wastes the savings. The van estimates could still score above 0.97 while being wrong, because the score has not been checked on them.
B · Why this meets the requirement
A 0.93 score says little about accuracy on photos unlike the calibration set; stratified sampling of auto-approved estimates must measure it.
Correct: the score is unvalidated here, and only sampled human review measures the true error rate.
Sampling auto-approved estimates from each segment, including fleet vans and dashcam photos, gives adjusters labelled outcomes for the new population. If the error rate is high, the segment moves to review; if low, automation continues with evidence.
C · Why this does not meet the full requirement
Asking the model whether it is sure about the vehicle type, and approving only when it says yes, confirms that the score is trustworthy.
The model's own yes or no is still self-reported and cannot validate its score.
The model's answer to whether it is sure comes from the same system whose confidence is in question. A confident misreading of fisheye photos will produce a confident yes, so this adds a step without adding independent evidence.
D · Why this does not meet the full requirement
The estimates can be approved, because the threshold was calibrated against labelled data and 0.93 clears it by a comfortable margin.
Calibration on sedans says nothing about fisheye van photos, so clearing the bar proves little.
Approving on the score assumes that 0.93 means the same on van dashcam photos as on phone photos of sedans. Distortion and unfamiliar bodywork may make the model confidently wrong, and those errors would be paid out without anyone noticing.
Check your understanding · explain the design in your own words
Does a high confidence score mean anything on input the system has never seen?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Confidence calibration & stratified sampling (human-review routing) Study: Escalation design
Study: Confidence calibration & stratified sampling (human-review routing) Study: Escalation design Calibration Stratified sampling Human-in-the-loop
Answer
**B.** Calibration only holds for the kind of input it was measured on, so a high score on fisheye van photos is unverified. Continued stratified sampling across vehicle types and camera sources reveals the true error rate. Asking the model to confirm itself is still self-reported confidence and adds no independent evidence.Q327. At a regional hospital, coders currently check every billing code an assistant proposes for outpatient, surgical and emergency encounters; its headline figure is 96% overall accuracy. Finance proposes letting codes it is highly confident about post unchecked. Compliance will sign off only with the right protections. Which two belong in that sign-off? (Select TWO.) A) Have the assistant state in words how certain it is about each code, and auto-accept only the codes it describes as certain. B) Measure accuracy against a labelled set separately for each encounter type and code field, and set confidence thresholds per field from that data. C) Keep a stratified random sample of automatically accepted codes under ongoing human review to track error rates by segment. D) Require the 96% overall accuracy figure to stay steady for two consecutive quarters before any reduction in review takes effect.
Understand Q327 · the situation and each part of the question
The real situation behind this question
A hospital's revenue team spends heavily on coders who check every code the assistant proposes. The assistant's overall accuracy looks strong, and finance wants to let high-confidence codes through unchecked. Compliance is worried: miscoded surgical or emergency encounters can trigger payer audits and penalties. The team needs safeguards that show where automation is actually safe and that keep catching problems once humans stop checking every code.
Read the question in parts
Part 1 · 96% overall accuracy
An aggregate figure that may hide encounter types or fields with much lower accuracy.
Part 2 · highly confident about
The plan relies on confidence scores that have not yet been calibrated per field.
What you are being asked to decide
What must be true before you trust high-confidence output without review? Choosing segment-level calibration and ongoing sampling over aggregate figures and self-assessment.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Calibration | Checking per field whether a given confidence score matches measured accuracy on labelled encounters. |
| Stratified sampling | Reviewing random auto-accepted codes from every encounter type after automation begins. |
Study: Confidence calibration & stratified sampling (human-review routing) Calibration Stratified sampling Human-in-the-loop
Understand Q327's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Aggregate accuracy and self-reported certainty cannot justify removing review. Calibrate thresholds per field and segment on labelled data, then keep sampling automated output by segment so errors stay measured.
Connect the design to the situation
A billing-code assistant at 96% overall accuracy that finance wants to automate.
Best answer: BC. Per-segment, per-field measurement with thresholds calibrated on labelled data shows where automation is safe, and ongoing stratified sampling keeps measuring after launch. A steady overall figure can hide a weak encounter type, and verbal certainty is self-reported and uncalibrated.
What each choice would do here
A · Why this does not meet the full requirement
Have the assistant state in words how certain it is about each code, and auto-accept only the codes it describes as certain.
Verbal certainty is self-reported and has not been checked against outcomes.
The assistant's statement that it is certain comes from the same model whose accuracy is in question. Without comparison against labelled outcomes, certain may be wrong at a high rate for some encounter types, and nobody would measure it.
B · Why this does not meet the full requirement
Measure accuracy against a labelled set separately for each encounter type and code field, and set confidence thresholds per field from that data.
Correct: it shows where accuracy is high enough to automate and sets thresholds from evidence.
Measuring separately for outpatient, surgical and emergency encounters and for each code field shows where accuracy is high. Thresholds set per field from labelled data mean a score of 0.9 corresponds to measured accuracy, not a guess.
C · Why this does not meet the full requirement
Keep a stratified random sample of automatically accepted codes under ongoing human review to track error rates by segment.
Correct: sampling keeps measuring real error rates once humans stop checking everything.
After launch, a random sample from each encounter type is still checked by coders. If a new procedure or payer rule causes errors, the sampled error rate rises in that segment and the team can restore review before audits find the problem.
D · Why this does not meet the full requirement
Require the 96% overall accuracy figure to stay steady for two consecutive quarters before any reduction in review takes effect.
A steady aggregate can hide one encounter type that is consistently wrong.
Two quarters of a steady 96% says the mix has not shifted, not that each segment is safe. If emergency encounters run at 80%, a stable aggregate would keep hiding them while automation lets their errors through.
Check your understanding · explain the design in your own words
What must be true before you trust high-confidence output without review?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Confidence calibration & stratified sampling (human-review routing)
Study: Confidence calibration & stratified sampling (human-review routing) Calibration Stratified sampling Human-in-the-loop
Answer
**BC.** Per-segment, per-field measurement with thresholds calibrated on labelled data shows where automation is safe, and ongoing stratified sampling keeps measuring after launch. A steady overall figure can hide a weak encounter type, and verbal certainty is self-reported and uncalibrated.Q328. A procurement agent extracts unit prices from supplier quotes and writes lines such as "Quote Q-118, page 3, dated 2 May, lists the unit price as $4.10." The ERP system that imports this output keeps the price but never keeps the quote reference, so buyers cannot check where a price came from. What is the root cause? A) The agent should maintain a separate lookup table from each price value to its quote so buyers can search it whenever they need to. B) The source reference exists only inside a sentence, and the consumer parses values, so the fix is emitting each price with separate source fields. C) The ERP import mapping is misconfigured, and adding a free-text notes column to carry each line through unchanged would solve it. D) The citations should be moved into numbered footnotes at the end of the output so they are clearly set apart from the price values.
Understand Q328 · the situation and each part of the question
The real situation behind this question
A manufacturer's procurement team negotiates hundreds of supplier quotes a month, and an agent extracts the prices so buyers can compare them in the ERP. When a supplier disputed an invoice, the buyer found the price in the ERP but had no way to trace which quote it came from. The agent's output had cited sources clearly, yet everything except the numbers disappeared on import.
Read the question in parts
Part 1 · keeps the price but never keeps the quote reference
The consumer retains only structured values and drops the text around them.
Part 2 · writes lines such as
The agent's output is prose, where the source is embedded in the wording rather than stored in fields.
What you are being asked to decide
Why does attribution vanish when output moves to another system? Recognising provenance as data that must be structured, not prose.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Provenance | The quote id, page and date that belong with each extracted unit price. |
| Audit trail | The path a buyer follows from an ERP price back to the quote that stated it. |
Study: Provenance — claim-source mappings through synthesis Provenance Audit trail
Understand Q328's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Downstream systems keep fields and discard prose. Attach source, location and date to each extracted value as structured data so attribution survives every hop.
Connect the design to the situation
Supplier prices imported into an ERP without their quote references.
Best answer: B. The ERP extracts numbers and discards surrounding text, so any attribution written as prose is lost. Emitting price, quote id, page and date as fields means provenance travels as data. A notes column keeps the sentence but leaves provenance unparseable and easy to drop again.
What each choice would do here
A · Why this does not meet the full requirement
The agent should maintain a separate lookup table from each price value to its quote so buyers can search it whenever they need to.
A separate lookup keyed on price values breaks when two quotes share a price.
A lookup keyed on the price value breaks as soon as two quotes list $4.10, and it drifts whenever the agent and the ERP disagree about rounding. Provenance ends up stored far from the value it describes.
B · Why this meets the requirement
The source reference exists only inside a sentence, and the consumer parses values, so the fix is emitting each price with separate source fields.
Correct: provenance must be fields on the value, not words around it.
Each price becomes a record with price, currency, quote id, page and date. The ERP imports every field, buyers can click from a price to its quote, and any later transformation keeps the link because it is part of the data.
C · Why this does not meet the full requirement
The ERP import mapping is misconfigured, and adding a free-text notes column to carry each line through unchanged would solve it.
A notes column preserves text but not a queryable link, so the next transformation can drop it.
A notes column might carry the sentence, but buyers would still have to read text to find the quote. Reports, filters and later exports treat notes as optional, so the link is lost again at the next step.
D · Why this does not meet the full requirement
The citations should be moved into numbered footnotes at the end of the output so they are clearly set apart from the price values.
Footnotes are still prose, which the ERP discards just like inline citations.
Numbered footnotes still sit in text the ERP never parses. Moving a citation from the middle of a sentence to the end of a document does not make it something the import can keep.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Price with provenance as fields
{
"item": "M6 hex bolt",
"unit_price": 4.1,
"currency": "USD",
"source": {
"quote_id": "Q-118",
"page": 3,
"quote_date": "2025-05-02"
}
}The ERP imports every field, so the quote id stays attached to the price.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
Why does attribution vanish when output moves to another system?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Provenance — claim-source mappings through synthesis
Study: Provenance — claim-source mappings through synthesis Provenance Audit trail
Answer
**B.** The ERP extracts numbers and discards surrounding text, so any attribution written as prose is lost. Emitting price, quote id, page and date as fields means provenance travels as data. A notes column keeps the sentence but leaves provenance unparseable and easy to drop again.Q329. Before deleting a feature flag, a developer needs every place in a large monorepo that reads NEW_CHECKOUT_ENABLED, including config files, tests and docs. The search will take dozens of grep calls and file reads. Which statement about handing this search to an exploration subagent is accurate?
A) The subagent may read files that the main session's permission settings block, which makes the search more complete. B) The subagent always uses fewer total tokens than the same search in the main session, which is the main reason to delegate. C) The subagent gets a much larger context window than the main session, so it can hold the entire monorepo at once. D) The subagent's greps and file reads fill its own context, and only its concise list of findings enters the main session.
Understand Q329 · the situation and each part of the question
The real situation behind this question
A team is retiring a checkout feature flag that has spread through application code, configuration, test fixtures and documentation over two years. The developer doing the cleanup wants the main session focused on carefully removing each use. Searching the whole monorepo will produce hundreds of lines of grep output and many file reads, most of it irrelevant once the list of locations is known.
Read the question in parts
Part 1 · dozens of grep calls and file reads
The search generates a large amount of output that is mostly noise after the locations are found.
Part 2 · Which statement about handing this search
The question tests what delegation truly provides, not whether delegation is a good idea.
What you are being asked to decide
What do you actually gain by giving a broad search to a subagent? Naming context isolation as the benefit and rejecting myths about capacity, permissions and cost.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Subagent | A worker with its own context that performs the flag search and reports back. |
| Context isolation | The search noise stays in the subagent; the main session receives only the list. |
Study: The Task tool — how subagents are actually born Study: Context management Subagent Context isolation Context window
Understand Q329's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Subagents give isolation, not extra capacity, extra permissions or guaranteed savings. Send noisy discovery to one and bring back only the concise findings the main work needs.
Connect the design to the situation
A monorepo-wide search for every reader of a feature flag before removing it.
Best answer: D. Delegation keeps the dozens of search results and file reads out of the main conversation, which stays clear for the deletion work. Subagents do not get a bigger window or broader permissions, and total token use is often higher, not lower.
What each choice would do here
A · Why this does not meet the full requirement
The subagent may read files that the main session's permission settings block, which makes the search more complete.
Subagents operate within the same permission rules, not above them.
Permission rules still apply to subagents, and a subagent cannot read files that settings deny. Any belief that delegation gets around restrictions would be a security problem, not a feature.
B · Why this does not meet the full requirement
The subagent always uses fewer total tokens than the same search in the main session, which is the main reason to delegate.
Delegation often costs more total tokens; the gain is a cleaner main context.
The subagent needs its own instructions and context, and the summary is extra output, so total tokens often go up. Delegating is worth it for the main session's clarity, not as a way to save tokens.
C · Why this does not meet the full requirement
The subagent gets a much larger context window than the main session, so it can hold the entire monorepo at once.
Subagents do not receive a larger window; they receive a separate one.
The subagent runs with a context window like any other session. If the monorepo is too large for one context, it is too large for the subagent too; its value comes from being separate, not bigger.
D · Why this meets the requirement
The subagent's greps and file reads fill its own context, and only its concise list of findings enters the main session.
Correct: the benefit is that the noisy search never enters the main context.
The subagent does the searching and reading in its own context and returns a list of files and lines that use the flag. The main session gains a short, accurate inventory and keeps its context for the removal work.
Check your understanding · explain the design in your own words
What do you actually gain by giving a broad search to a subagent?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: The Task tool — how subagents are actually born Study: Context management
Study: The Task tool — how subagents are actually born Study: Context management Subagent Context isolation Context window
Answer
**D.** Delegation keeps the dozens of search results and file reads out of the main conversation, which stays clear for the deletion work. Subagents do not get a bigger window or broader permissions, and total token use is often higher, not lower.Q330. Early in a long Claude Code session building a payments reconciliation job, the developer and the agent agreed that money amounts must always be integer minor units, never floating point. After several compactions, the agent writes total = float(row.amount). Which practice would most reliably have prevented this?
A) Restate the rule once more in the chat halfway through the session so it is more recent when the next compaction happens. B) Compact more often, so that each summary is shorter and closer to the moment when the money-handling rule was agreed. C) Record the rule in the project's CLAUDE.md or a decisions file that is reloaded every session, not only in the chat history. D) Lower the temperature for the coding steps so the agent follows the patterns it established earlier in the session more closely.
Understand Q330 · the situation and each part of the question
The real situation behind this question
A fintech developer is using a long Claude Code session to build a job that reconciles bank payouts against internal ledgers. The first hour settled key decisions, including that money is always stored as integer cents to avoid rounding errors. Hours later, after several compactions, the agent introduced floating-point arithmetic. The bug was caught in review, but the developer wants to know how to keep such rules from eroding in future sessions.
Read the question in parts
Part 1 · After several compactions
The history has been summarised repeatedly, and each pass may drop precision from early decisions.
Part 2 · integer minor units, never floating point
The rule is precise and easy to blur into something vaguer during summarisation.
What you are being asked to decide
How do you keep an agreed rule intact through many compactions? Moving must-keep constraints out of compactable history into durable memory.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Compaction | Summarising the conversation to free space, which can blur the exact money rule. |
| CLAUDE.md | Project memory loaded outside the conversation, so the rule survives compaction unchanged. |
Study: When to summarize a long loop without losing tool results Study: Scratchpads & crash-recovery manifests Compaction CLAUDE.md Scratchpad
Understand Q330's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Compaction preserves continuity but can blur exact rules. Keep constraints that must not drift in durable project memory or a decisions file that is reloaded, not only in the conversation.
Connect the design to the situation
A no-floats money rule lost after several compactions in a long coding session.
Best answer: C. Each compaction rewrites history into a shorter summary, and a precise rule can blur into something vague. Project memory such as CLAUDE.md is reloaded rather than summarised, so the rule stays exact. Restating it in chat only puts it back into history that will be compacted again.
What each choice would do here
A · Why this does not meet the full requirement
Restate the rule once more in the chat halfway through the session so it is more recent when the next compaction happens.
A restated rule still lives in history and faces the next compaction.
Restating the rule helps briefly, but it becomes part of the history the next compaction summarises. The developer would need to keep restating it, which is a manual workaround for a missing durable record.
B · Why this does not meet the full requirement
Compact more often, so that each summary is shorter and closer to the moment when the money-handling rule was agreed.
More frequent compaction adds more lossy rewrites, not fewer.
More frequent compaction means more rewrites of the same history, each one a chance to lose detail. The rule would pass through additional summaries and could blur sooner rather than later.
C · Why this meets the requirement
Record the rule in the project's CLAUDE.md or a decisions file that is reloaded every session, not only in the chat history.
Correct: durable memory keeps the rule exact regardless of what compaction does.
Writing the rule into CLAUDE.md or a decisions file means it is loaded as project memory, not rebuilt from summaries. After any number of compactions the agent still reads the exact rule and would reject float arithmetic.
D · Why this does not meet the full requirement
Lower the temperature for the coding steps so the agent follows the patterns it established earlier in the session more closely.
Temperature does not bring back a rule that compaction has blurred.
Lower temperature makes output more predictable but only reflects what is in context. If the summary now says handle money carefully, a deterministic agent still writes float arithmetic.
Check your understanding · explain the design in your own words
How do you keep an agreed rule intact through many compactions?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: When to summarize a long loop without losing tool results Study: Scratchpads & crash-recovery manifests
Study: When to summarize a long loop without losing tool results Study: Scratchpads & crash-recovery manifests Compaction CLAUDE.md Scratchpad
Answer
**C.** Each compaction rewrites history into a shorter summary, and a precise rule can blur into something vague. Project memory such as CLAUDE.md is reloaded rather than summarised, so the rule stays exact. Restating it in chat only puts it back into history that will be compacted again.Q331. An incident agent first reads 25 log files and metrics exports to reconstruct an outage, then writes the postmortem. By the writing phase its context is full of raw log lines, and the draft gets several timestamps and the order of events wrong. How should the workflow be structured? A) Move to a model tier with a larger context window so the raw logs and the postmortem draft fit together without crowding. B) End the investigation with a structured brief of timeline, evidence and file references, and write the postmortem from that brief. C) Interleave the phases so each paragraph of the postmortem is written right after the log file it relies on has been read. D) Have the writer reread all 25 files at the start of the writing phase so the timeline details are fresh in its context.
Understand Q331 · the situation and each part of the question
The real situation behind this question
An operations team uses an agent to draft postmortems after incidents. The agent reads logs, dashboards and alert histories, then writes the report. Recent drafts have had wrong timestamps and events out of order, which undermines trust in the process because on-call engineers must correct them. The raw material is correct; the problem appears at the point where the agent moves from investigating to writing.
Read the question in parts
Part 1 · its context is full of raw log lines
The writing phase is carrying everything from investigation, most of it irrelevant.
Part 2 · then writes the postmortem
There is a clear phase boundary where a handoff can be designed.
What you are being asked to decide
How should a two-phase task hand work from investigation to writing? Using a compact phase brief instead of carrying raw exploration output forward.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Context budget | The limited space the writer has, which raw log lines were wasting. |
| Scratchpad | The investigation brief with the timeline and evidence, written before the writing phase starts. |
Study: When to summarize a long loop without losing tool results Study: The budget mindset Context budget Scratchpad Context engineering
Understand Q331's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Carrying raw exploration output into the next phase buries the facts the next phase needs. Close each phase with a compact structured brief and begin the next one from it.
Connect the design to the situation
An outage postmortem drafted in a context crowded with raw log lines.
Best answer: B. The writer needs a clean timeline, not 25 files of raw lines. Closing the investigation with a structured brief and starting the writing phase from it gives the writer only what matters. Rereading every file or enlarging the window keeps the same noise in the writer's context.
What each choice would do here
A · Why this does not meet the full requirement
Move to a model tier with a larger context window so the raw logs and the postmortem draft fit together without crowding.
A bigger window holds more noise and costs more; the facts are still buried.
A larger window fits more raw lines, but the key timestamps are still scattered among thousands of irrelevant ones. Cost goes up and the writer faces the same search problem at a bigger scale.
B · Why this meets the requirement
End the investigation with a structured brief of timeline, evidence and file references, and write the postmortem from that brief.
Correct: the writer starts from distilled facts rather than raw output.
The investigation ends by writing a brief: a timeline with exact timestamps, key evidence and the files each fact came from. The writing phase starts from that brief, so the draft follows a clear sequence and each fact can be traced.
C · Why this does not meet the full requirement
Interleave the phases so each paragraph of the postmortem is written right after the log file it relies on has been read.
Interleaving prevents a clean overview, so the event order is still easy to get wrong.
Writing each paragraph right after reading its file gives no chance to see the whole timeline first. The postmortem needs the order of events across all sources, which interleaving makes harder to establish.
D · Why this does not meet the full requirement
Have the writer reread all 25 files at the start of the writing phase so the timeline details are fresh in its context.
Rereading all files puts the same raw noise straight back into context.
Rereading all 25 files floods the writer with raw lines again, exactly the state that caused the mistakes. Fresh noise is still noise, and the timeline must be extracted from it once more.
Check your understanding · explain the design in your own words
How should a two-phase task hand work from investigation to writing?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: When to summarize a long loop without losing tool results Study: The budget mindset
Study: When to summarize a long loop without losing tool results Study: The budget mindset Context budget Scratchpad Context engineering
Answer
**B.** The writer needs a clean timeline, not 25 files of raw lines. Closing the investigation with a structured brief and starting the writing phase from it gives the writer only what matters. Rereading every file or enlarging the window keeps the same noise in the writer's context.Q332. An agent has spent two hours investigating a legacy insurance-claims system across many tool calls. Which observation is the strongest sign of context degradation rather than some other problem?
A) A reply stops in the middle of a sentence and the response shows a stop reason indicating the output token limit was reached. B) Early answers named exact files and classes such as ClaimAdjuster; recent answers on the same area say it "likely follows common patterns." C) Several consecutive tool calls fail with rate-limit responses, and the agent waits a while before trying the same calls again. D) The agent declines to print the database password stored in the configuration file and suggests using an environment variable instead.
Understand Q332 · the situation and each part of the question
The real situation behind this question
A consulting engineer is using an agent to map an old claims-processing system before a rewrite. The session has run for two hours and dozens of tool calls. The engineer has noticed that the agent's answers feel different lately and wants to know whether the cause is the context itself or something else, because the remedy differs: persisting findings and splitting work for degradation, versus configuration changes for the other problems.
Read the question in parts
Part 1 · across many tool calls
The session has accumulated a lot of output, the condition in which degradation appears.
Part 2 · the strongest sign of context degradation
The task is to tell degradation apart from other failures that look similar at first.
What you are being asked to decide
Which symptom points to context degradation specifically? Diagnosing degradation from its symptom and separating it from look-alike failures.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Context window | The space filled by two hours of tool output, pushing earlier specifics out of focus. |
| Scratchpad | Where the agent should have written findings like class names so they survive a long session. |
Study: Context management Study: Scratchpads & crash-recovery manifests Context window Context engineering Scratchpad
Understand Q332's answer · full reasoning and worked examples
Claude synthesized · the point, straight
The signature of context degradation is specifics giving way to generalities about things the agent once knew precisely. Other failures such as output caps, deliberate refusals and rate limits have different signs and different fixes.
Connect the design to the situation
A long legacy-code investigation where answers lose their specific class names.
Best answer: B. Degradation shows as a shift from specific, cited details to vague generalisations about things the agent knew precisely earlier. A cut-off reply is an output limit, a refusal to print secrets is intended behaviour, and rate-limit errors are an external service problem.
What each choice would do here
A · Why this does not meet the full requirement
A reply stops in the middle of a sentence and the response shows a stop reason indicating the output token limit was reached.
A max-tokens stop is an output length limit, not a loss of earlier knowledge.
The reply was cut off because it hit the output token cap, visible in the stop reason. Raising the limit or continuing the reply fixes it; nothing has been lost from earlier in the session.
B · Why this meets the requirement
Early answers named exact files and classes such as ClaimAdjuster; recent answers on the same area say it "likely follows common patterns."
Correct: the drift from exact names to generic phrases is the classic degradation symptom.
The agent once cited `ClaimAdjuster` and exact file paths and now gives vague descriptions of the same code. That drift is what happens when accumulated output crowds out earlier findings, and it calls for persisted notes and fresh or delegated contexts.
C · Why this does not meet the full requirement
Several consecutive tool calls fail with rate-limit responses, and the agent waits a while before trying the same calls again.
Rate limits come from the service, not from the state of the agent's context.
Rate-limit responses come from the service being called and resolve with waiting and backoff. They say nothing about whether the agent still remembers what it found earlier.
D · Why this does not meet the full requirement
The agent declines to print the database password stored in the configuration file and suggests using an environment variable instead.
Refusing to reveal a secret is intended safety behaviour, not degradation.
Declining to print a password and suggesting an environment variable is deliberate, secure behaviour. It is unrelated to how full the context is and would happen at the start of a session too.
Check your understanding · explain the design in your own words
Which symptom points to context degradation specifically?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Context management Study: Scratchpads & crash-recovery manifests
Study: Context management Study: Scratchpads & crash-recovery manifests Context window Context engineering Scratchpad
Answer
**B.** Degradation shows as a shift from specific, cited details to vague generalisations about things the agent knew precisely earlier. A cut-off reply is an output limit, a refusal to print secrets is intended behaviour, and rate-limit errors are an external service problem.Q333. A due-diligence agent assembles an acquisition report from three sources: court-records search, financial filings and press coverage. On one run the court-records service was down, and the report went to the client looking complete. Which output design is right? A) Tag each section with which sources contributed and flag that litigation coverage is missing and related conclusions are weaker. B) Have the agent fill the litigation section from its general knowledge of the target company, labelled as a model estimate. C) Hold the report entirely until all three sources are available again, returning only an error message to the client until then. D) Put a standard notice on every report saying that sources may be incomplete, so clients always read results with some caution.
Understand Q333 · the situation and each part of the question
The real situation behind this question
An advisory firm produces acquisition due-diligence reports for private-equity clients on tight deal timelines. During one run the court-records service was unavailable, and the report went out without any litigation findings. The client read it as saying there was no litigation, which is a serious mistake to make about an acquisition target. The firm wants reports that remain useful when a source fails but never imply coverage they do not have.
Read the question in parts
Part 1 · went to the client looking complete
The failure was invisible, which is what made the output misleading.
Part 2 · court-records search, financial filings and press coverage
There are three sources, so a report can show exactly which one is missing.
What you are being asked to decide
How should a report show that one of its sources was unavailable? Choosing specific coverage annotations over blocking, invented filler or generic disclaimers.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Graceful degradation | Delivering the financial and press findings while clearly marking the missing litigation part. |
| Provenance | Recording which sources supported each section so gaps are visible. |
Study: Resilience patterns Study: Provenance — claim-source mappings through synthesis Graceful degradation Provenance
Understand Q333's answer · full reasoning and worked examples
Claude synthesized · the point, straight
When a source fails, deliver what is supported and state precisely what is missing. Coverage annotations per section keep the output useful and honest, unlike blocking, invented filler or generic disclaimers.
Connect the design to the situation
An acquisition report delivered without court records and without saying so.
Best answer: A. Coverage annotations tell the client exactly which part lacks evidence, so they can use the rest and wait for or request the missing part. A blanket notice on every report says nothing specific, and filling the gap from the model's own knowledge presents unretrieved content as findings.
What each choice would do here
A · Why this meets the requirement
Tag each section with which sources contributed and flag that litigation coverage is missing and related conclusions are weaker.
Correct: section-level coverage shows exactly what is supported and what is missing.
The report shows that the financial and press sections are fully sourced, the litigation section was not searched, and any risk conclusion depending on litigation is provisional. The client knows exactly what to follow up on.
B · Why this does not meet the full requirement
Have the agent fill the litigation section from its general knowledge of the target company, labelled as a model estimate.
Model knowledge is not retrieved evidence, and a label does not make it a finding.
General knowledge of the target is not a court-records search and may be outdated or wrong. A label helps, but it still places unverified material where the client expects retrieved evidence about lawsuits.
C · Why this does not meet the full requirement
Hold the report entirely until all three sources are available again, returning only an error message to the client until then.
Blocking everything withholds two thirds of good evidence the client could use now.
Holding the report protects against misreading but costs the client time on a live deal. The financial and press findings are sound, and the client could act on them with the gap clearly marked.
D · Why this does not meet the full requirement
Put a standard notice on every report saying that sources may be incomplete, so clients always read results with some caution.
A generic notice on every report tells the client nothing about this specific gap.
A standard notice appears whether or not anything failed, so clients learn to ignore it. It does not say that litigation specifically was not searched, which is the fact the client needed.
Check your understanding · explain the design in your own words
How should a report show that one of its sources was unavailable?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Resilience patterns Study: Provenance — claim-source mappings through synthesis
Study: Resilience patterns Study: Provenance — claim-source mappings through synthesis Graceful degradation Provenance
Answer
**A.** Coverage annotations tell the client exactly which part lacks evidence, so they can use the rest and wait for or request the missing part. A blanket notice on every report says nothing specific, and filling the gap from the model's own knowledge presents unretrieved content as findings.Q334. A news-briefing pipeline has three collector agents that each return articles with URLs. To save tokens, a condenser step turns each collector's output into short bullet highlights before an editor agent writes the daily brief. The brief never contains links, even though every collector output did. Which change fixes this at the right point? A) Have the condenser output each highlight as a record paired with its source URLs, and have the editor keep those pairs in the brief. B) Add an instruction to the editor's system prompt saying that every statement in the brief must include a link to its source. C) After the brief is written, run a step that searches the web for each sentence and attaches the best-matching article link to it. D) Give the editor a larger context window so it can take in all collector outputs directly and cite from them in full.
Understand Q334 · the situation and each part of the question
The real situation behind this question
A media-monitoring company sends clients a daily brief built from three collector agents covering regulators, competitors and trade press. Clients complained they cannot verify claims because the brief has no links. The engineers found that every collector returns URLs, and the editor receives all the condenser's output. Somewhere between the two the links disappear, and the team needs to fix it without losing the token savings the condenser provides.
Read the question in parts
Part 1 · a condenser step turns each collector's output into short bullet highlights
The summarising step is the point where source links can be dropped.
Part 2 · even though every collector output did
Links exist upstream, so they are lost in the pipeline, not missing at collection.
What you are being asked to decide
Where in the pipeline are the links lost, and where should the fix go? Locating provenance loss at the summarisation step and fixing it there.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Provenance | The link from each highlight back to the article URL it came from. |
| Context engineering | Deciding what the condenser passes forward so the editor has what it needs. |
Study: Provenance — claim-source mappings through synthesis Study: When to summarize a long loop without losing tool results Provenance Context engineering
Understand Q334's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Provenance disappears at whatever step summarises without keeping source links. Require claim-to-source records at that step and carry them through synthesis, instead of asking later stages to recreate links they never received.
Connect the design to the situation
A condenser step turns sourced articles into bullets with no URLs before the editor writes.
Best answer: A. The links disappear in the condenser, which reduces sourced articles to plain bullets, so the editor has nothing to cite. Making the condenser emit highlight-to-source records fixes the loss where it happens. Telling the editor to cite asks for links it never receives, and searching afterwards attaches guessed sources.
What each choice would do here
A · Why this meets the requirement
Have the condenser output each highlight as a record paired with its source URLs, and have the editor keep those pairs in the brief.
Correct: the mapping is preserved at the step that was dropping it.
The condenser still saves tokens by shortening article text, but each highlight carries its URLs in a field. The editor receives claims already paired with sources, and the brief can cite every statement.
B · Why this does not meet the full requirement
Add an instruction to the editor's system prompt saying that every statement in the brief must include a link to its source.
The editor cannot cite links the condenser never passed on.
The editor is being asked to link sources it has never seen. It may omit links or, worse, invent plausible URLs, because the condensed bullets contain no source information.
C · Why this does not meet the full requirement
After the brief is written, run a step that searches the web for each sentence and attaches the best-matching article link to it.
Searching afterwards finds plausible articles, not the ones actually used.
Web searches after the fact attach whichever article best matches a sentence, which may not be the one the collector used. Clients get links that look authoritative but do not reliably support the claims.
D · Why this does not meet the full requirement
Give the editor a larger context window so it can take in all collector outputs directly and cite from them in full.
Bypassing the condenser gives up the token savings the pipeline was built for.
Sending all collector output straight to the editor might preserve links, but it removes the condenser and its token savings, and raw articles crowd the editor's context. It fixes the symptom by abandoning the design.
Check your understanding · explain the design in your own words
Where in the pipeline are the links lost, and where should the fix go?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Provenance — claim-source mappings through synthesis Study: When to summarize a long loop without losing tool results
Study: Provenance — claim-source mappings through synthesis Study: When to summarize a long loop without losing tool results Provenance Context engineering
Answer
**A.** The links disappear in the condenser, which reduces sourced articles to plain bullets, so the editor has nothing to cite. Making the condenser emit highlight-to-source records fixes the loss where it happens. Telling the editor to cite asks for links it never receives, and searching afterwards attaches guessed sources.Q335. A contract-review pipeline sends whole 120-page service agreements in one request. Clauses near the start and end are extracted reliably, but indemnification terms, which usually sit around pages 55–70, are missed in most contracts. Token counts confirm nothing is truncated. Which change targets the actual cause?
A) Increase max_tokens on the request so the model has more room to write out the indemnification clauses it finds. B) Repeat the instruction to extract indemnification terms twice in the system prompt so the model gives it more importance. C) Split each agreement by section and run a focused extraction pass over the middle sections, placing the question after that text. D) Move to a model with a larger context window so each 120-page agreement uses a smaller fraction of the space available.
Understand Q335 · the situation and each part of the question
The real situation behind this question
A legal-operations team uses an extraction pipeline to review supplier agreements for risky terms before renewal. Their audit found that indemnification clauses, among the most important terms, are missed in most contracts, while definitions at the front and signatures at the back are captured reliably. Engineers confirmed that each contract fits in the request with room to spare, so the failure is not about text being cut off.
Read the question in parts
Part 1 · Token counts confirm nothing is truncated
The full contract is in context, which rules out truncation as the cause.
Part 2 · around pages 55–70
The missed content sits in the middle of the input, where position effects are strongest.
What you are being asked to decide
Why is the middle of a long contract missed when nothing is cut off? Recognising position effects in long inputs and choosing a structural fix.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Long-context placement | Where text sits in a long prompt, which affects how much attention it gets. |
| Context window | Already large enough here, which is why a bigger one does not help. |
Study: Lost in the middle — position effects Long-context placement Context window
Understand Q335's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Content in the middle of long inputs gets less attention even when it fits. Restructure with section-focused passes and place key material and questions at the edges rather than buying a bigger window.
Connect the design to the situation
Indemnification terms deep in 120-page agreements are missed despite full inclusion.
Best answer: C. Reliable extraction at the start and end with misses in the middle, and no truncation, is the lost-in-the-middle position effect. Focused passes on the middle sections put that text where attention is strong. A larger window changes nothing, since everything already fits.
What each choice would do here
A · Why this does not meet the full requirement
Increase max_tokens on the request so the model has more room to write out the indemnification clauses it finds.
max_tokens limits the reply length, not how well the input is read.
Raising the output limit gives the model more space to answer but does nothing to how it reads the input. Clauses it overlooked will still be overlooked, just with a longer reply.
B · Why this does not meet the full requirement
Repeat the instruction to extract indemnification terms twice in the system prompt so the model gives it more importance.
Repeating the instruction does not change the attention given to middle pages.
Repeating an instruction may raise its general emphasis, but it does not change where the clauses sit in a 120-page input. The model still attends weakly to the middle and misses them as before.
C · Why this meets the requirement
Split each agreement by section and run a focused extraction pass over the middle sections, placing the question after that text.
Correct: focused passes put the middle content where attention is strong.
Splitting by section lets a pass read the middle sections alone, with the extraction request placed after that text. The indemnification clauses are now at the edge of a short input, where they are reliably found.
D · Why this does not meet the full requirement
Move to a model with a larger context window so each 120-page agreement uses a smaller fraction of the space available.
Nothing is truncated, so more room does not change where the clauses sit.
The contract already fits, so a larger window leaves its layout unchanged. Indemnification text still sits in the middle of a long input and receives the same weaker attention.
Check your understanding · explain the design in your own words
Why is the middle of a long contract missed when nothing is cut off?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Lost in the middle — position effects
Study: Lost in the middle — position effects Long-context placement Context window
Answer
**C.** Reliable extraction at the start and end with misses in the middle, and no truncation, is the lost-in-the-middle position effect. Focused passes on the middle sections put that text where attention is strong. A larger window changes nothing, since everything already fits.Q336. A support platform auto-applies ticket categories when model confidence exceeds 0.85; a single labelled validation run showed 96% accuracy. The company launches new product lines every quarter, and operations wants to catch new mistakes in the auto-applied categories early. Which monitoring plan does that best? A) Rerun the original validation set every month and raise an alert if its measured accuracy ever drops below 96%. B) Count how often support agents manually recategorise tickets and investigate whenever that number rises noticeably. C) Each week, have people label a random sample of auto-applied categories drawn from every product line, and track error rates per line. D) Track the average confidence of auto-applied categories each week, and alert when the average falls below its level at launch.
Understand Q336 · the situation and each part of the question
The real situation behind this question
A software company routes support tickets by category, and an automatic classifier handles most of them. Each quarter brings new products with new vocabulary, and misrouted tickets wait longer and anger customers. Accuracy was measured once at launch and looked excellent. Operations leaders want a way to learn early when the classifier starts making new kinds of mistakes, rather than finding out months later from support metrics.
Read the question in parts
Part 1 · a single labelled validation run
The only evidence is a one-time measurement that predates the new product lines.
Part 2 · launches new product lines every quarter
The input population keeps changing, so any static check goes stale.
What you are being asked to decide
How do you keep checking automated output as the inputs change? Choosing live stratified sampling over self-reported signals, stale test sets and complaints.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Stratified sampling | Drawing weekly review samples from every product line, including the newest. |
| Calibration | Checking that a confidence above 0.85 still matches the accuracy people actually measure. |
Study: Confidence calibration & stratified sampling (human-review routing) Stratified sampling Calibration Human-in-the-loop
Understand Q336's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Assurance about automated decisions has to come from humans checking fresh samples of those decisions. Sample auto-approved output by segment every period and track error rates, instead of trusting confidence averages, stale test sets or complaint counts.
Connect the design to the situation
Auto-applied ticket categories at a company that adds product lines each quarter.
Best answer: C. Only fresh human labels on the population actually being auto-applied measure its real accuracy, and stratifying by product line lets a new line's errors appear quickly. Average confidence is self-reported and can stay high while accuracy falls; the old validation set never contains the new products.
What each choice would do here
A · Why this does not meet the full requirement
Rerun the original validation set every month and raise an alert if its measured accuracy ever drops below 96%.
The old set never includes new product lines, so it cannot reveal their errors.
The original validation set holds tickets from launch-era products only. It can score 96% forever while tickets about new products are misrouted, because none of those tickets are in it.
B · Why this does not meet the full requirement
Count how often support agents manually recategorise tickets and investigate whenever that number rises noticeably.
Manual fixes only capture mistakes agents notice and bother to correct.
Recategorisation counts depend on agents noticing and fixing mistakes, which many do not bother to do under time pressure. They are a lagging and incomplete signal, not a measurement of accuracy.
C · Why this meets the requirement
Each week, have people label a random sample of auto-applied categories drawn from every product line, and track error rates per line.
Correct: fresh labels on live auto-applied output, by segment, show real error rates.
Weekly labelled samples from each product line show an error rate for every segment. When a new line launches, its errors appear in its own stratum within a week or two, long before overall metrics shift.
D · Why this does not meet the full requirement
Track the average confidence of auto-applied categories each week, and alert when the average falls below its level at launch.
Average confidence is self-reported and can stay high while the model is confidently wrong.
Average confidence reflects what the model believes about itself. On a new product it can label tickets confidently and wrongly, so the average stays high while misrouted tickets pile up unnoticed.
Check your understanding · explain the design in your own words
How do you keep checking automated output as the inputs change?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Confidence calibration & stratified sampling (human-review routing)
Study: Confidence calibration & stratified sampling (human-review routing) Stratified sampling Calibration Human-in-the-loop
Answer
**C.** Only fresh human labels on the population actually being auto-applied measure its real accuracy, and stratifying by product line lets a new line's errors appear quickly. Average confidence is self-reported and can stay high while accuracy falls; the old validation set never contains the new products.Q337. A fleet-maintenance agent checks 300 vehicles in one run. Each get_vehicle_status call returns about 60 sensor fields, but the task only uses battery_pct, odometer_km and fault_codes. Accuracy drops noticeably for vehicles late in the run. Where should the fix go?
A) In the session settings, compacting the conversation after every 50 vehicles so the accumulated tool output is summarised. B) In the request parameters, raising max_tokens so the model has more space to reason about each vehicle's full status. C) In the system prompt, with a line telling the model to ignore every sensor field except the three that matter for maintenance. D) In the tool-result handling, reducing each response to the three needed fields before it is added to the conversation.
Understand Q337 · the situation and each part of the question
The real situation behind this question
A logistics company runs a nightly agent that reviews every delivery van for maintenance needs. The telemetry service returns a large status payload for each vehicle, and the agent processes hundreds in one run. Maintenance planners noticed that recommendations for vans near the end of the list are worse than for vans near the start. The team suspects context growth and wants the fix in the right place.
Read the question in parts
Part 1 · returns about 60 sensor fields
Each tool result is far larger than the task requires.
Part 2 · only uses `battery_pct`, `odometer_km` and `fault_codes`
The needed data is known in advance, so trimming is safe and simple.
What you are being asked to decide
Where should unneeded tool output be removed? Placing the trim at the tool-result boundary rather than relying on instructions or later compaction.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| tool_result | The vehicle status payload appended to the conversation after each call. |
| Token optimization | Keeping only the three fields the task uses so context stays lean. |
Study: The budget mindset Study: When to summarize a long loop without losing tool results Token optimization tool_result Hook
Understand Q337's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Unused tool output crowds context over long runs. Trim results to the needed fields before they are appended, rather than instructing the model to ignore them or cleaning up afterwards.
Connect the design to the situation
Sixty-field vehicle status payloads accumulating over a 300-vehicle run.
Best answer: D. The unused fields fill the context across hundreds of calls and crowd out earlier results. Reducing each result to the needed fields before it is appended stops the bloat at its source. Telling the model to ignore fields still leaves every token in context, and compaction is later and lossy.
What each choice would do here
A · Why this does not meet the full requirement
In the session settings, compacting the conversation after every 50 vehicles so the accumulated tool output is summarised.
Periodic compaction reacts after the bloat builds up and loses detail.
Compacting every 50 vehicles clears some space, but only after each batch has already crowded the context. Summaries of earlier vehicles lose details, and the run pays for the bloat before cleaning it up.
B · Why this does not meet the full requirement
In the request parameters, raising max_tokens so the model has more space to reason about each vehicle's full status.
max_tokens limits the reply; it does nothing about input growth.
A larger output limit lets the model write more for each vehicle but does nothing about input growth. The crowding comes from accumulated tool results, which max_tokens does not affect.
C · Why this does not meet the full requirement
In the system prompt, with a line telling the model to ignore every sensor field except the three that matter for maintenance.
An instruction to ignore fields still leaves all 60 fields occupying context.
The model may ignore the fields when reasoning, but each response still adds all 60 fields to the context. After a few hundred vehicles the context is equally full, and the late vehicles degrade just as before.
D · Why this meets the requirement
In the tool-result handling, reducing each response to the three needed fields before it is added to the conversation.
Correct: the unused fields never enter the conversation at all.
A wrapper or post-tool hook keeps only the three needed fields from each response. Each vehicle adds a few lines instead of a large payload, so the context stays small across all 300 vehicles and earlier results remain sharp.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Trim before appending
KEEP = ('battery_pct', 'odometer_km', 'fault_codes')
def trim_status(raw: dict) -> dict:
return {k: raw.get(k) for k in KEEP}
# in the loop, append trim_status(result) as the tool_result content, not result
🏭 Production shape: the tool returns the trimmed result
In production the trim happens inside the tool function, so nothing else can append the raw payload. The @beta_tool decorator builds the definition, and the runner appends only what the function returns.
import json
import os
from typing import Annotated
import anthropic
from anthropic import beta_tool
from pydantic import Field
from app.fleet import telematics # your own client for the vehicle API
client = anthropic.Anthropic() # reads ANTHROPIC_API_KEY
MODEL = os.environ.get("CLAUDE_MODEL", "claude-sonnet-5")
KEEP = ("battery_pct", "odometer_km", "fault_codes")
@beta_tool(
name="get_vehicle_status",
description="Read one vehicle's battery level, odometer and active fault codes.",
)
def get_vehicle_status(vehicle_id: Annotated[str, Field(description="The fleet vehicle id, e.g. EV-0412.")]) -> str:
raw = telematics.status(vehicle_id) # about sixty fields
return json.dumps({k: raw.get(k) for k in KEEP})
runner = client.beta.messages.tool_runner(
model=MODEL, max_tokens=2048, tools=[get_vehicle_status],
messages=[{"role": "user", "content": "Which vehicles need service today?"}],
max_iterations=50,
)
final = runner.until_done()
The tool lives in app/tools/fleet.py; the runner call in app/agent.py.
Each vehicle contributes three fields to context instead of sixty.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
Where should unneeded tool output be removed?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: The budget mindset Study: When to summarize a long loop without losing tool results
Study: The budget mindset Study: When to summarize a long loop without losing tool results Token optimization tool_result Hook
Answer
**D.** The unused fields fill the context across hundreds of calls and crowd out earlier results. Reducing each result to the needed fields before it is appended stops the bloat at its source. Telling the model to ignore fields still leaves every token in context, and compaction is later and lossy.Q338. A mortgage-application extractor gets applicant_name and loan_amount right almost every time, but employment_start_date and self-employed income are often wrong. Underwriters can review roughly 15% of extracted fields. Which routing design spends that capacity where the errors are?
A) Emit a confidence score for each field, set thresholds per field against a labelled set, and review only fields below them. B) Send every application that includes self-employed income to review in full, so underwriters see all fields with context. C) At the end of each application, ask the model which applications it feels unsure about overall and send those to underwriters. D) Pick a random 15% of all applications each day and have underwriters check every field in each application picked.
Understand Q338 · the situation and each part of the question
The real situation behind this question
A lender's underwriting team is overloaded, and an extractor now pre-fills application data from pay stubs, tax returns and bank statements. Some fields are nearly perfect, while employment dates and self-employed income are often wrong, and those are the fields that drive approval decisions. With only enough reviewer time for about 15% of fields, the lender needs routing that puts human attention exactly where errors are likely.
Read the question in parts
Part 1 · roughly 15% of extracted fields
Review capacity is limited and counted in fields, so routing should work at field level.
Part 2 · `employment_start_date` and self-employed income are often wrong
Error rates differ by field, which uniform or whole-application routing ignores.
What you are being asked to decide
How do you target scarce reviewers at the fields most likely to be wrong? Routing by calibrated per-field confidence instead of self-assessment or whole-document routing.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Calibration | Setting each field’s threshold so its confidence score matches measured accuracy on labelled applications. |
| Human-in-the-loop | Underwriters reviewing only the fields that fall below their calibrated threshold. |
Study: Confidence calibration & stratified sampling (human-review routing) Study: Escalation design Calibration Human-in-the-loop Stratified sampling
Understand Q338's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Scarce review capacity belongs on the fields most likely to be wrong. Emit per-field confidence, calibrate each field's threshold against labelled data and route only fields below it, never the model's own uncalibrated sense of doubt.
Connect the design to the situation
A mortgage extractor whose employment-date and income fields are error-prone.
Best answer: A. Per-field scores with thresholds calibrated on labelled applications send reviewers to the specific fields likely to be wrong. The model's own overall sense of unease is uncalibrated self-assessment, and whole-application or random routing spends most reviewer time on fields that are almost always right.
What each choice would do here
A · Why this meets the requirement
Emit a confidence score for each field, set thresholds per field against a labelled set, and review only fields below them.
Correct: calibrated per-field thresholds send reviewers to the fields likely to be wrong.
Each field carries a score, and thresholds are set per field so that a flagged employment date really is likely to be wrong. Underwriters see only those fields, with the source excerpt, and the 15% capacity covers the fields that matter.
B · Why this does not meet the full requirement
Send every application that includes self-employed income to review in full, so underwriters see all fields with context.
Whole-application review spends effort on name and amount fields that are almost always right.
Every self-employed application goes to full review, including name and loan amount fields that are almost never wrong. Capacity runs out quickly and employment-date errors in other applications are never checked.
C · Why this does not meet the full requirement
At the end of each application, ask the model which applications it feels unsure about overall and send those to underwriters.
The model's overall unease is uncalibrated and ignores which fields are risky.
The model's sense of overall unease is not calibrated against outcomes and may miss confidently wrong income figures. It also sends whole applications, so reviewers spend time on reliable fields like applicant name.
D · Why this does not meet the full requirement
Pick a random 15% of all applications each day and have underwriters check every field in each application picked.
Random sampling measures quality but does not target review at weak fields.
A random 15% of applications gives an unbiased quality measure, which is useful for monitoring. As routing, though, it spreads reviewer effort evenly, so most error-prone fields in the other 85% are never reviewed.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Per-field thresholds from a labelled set
{
"applicant_name": {
"threshold": 0.6,
"measured_accuracy_above": 0.995
},
"loan_amount": {
"threshold": 0.7,
"measured_accuracy_above": 0.99
},
"employment_start_date": {
"threshold": 0.92,
"measured_accuracy_above": 0.97
},
"self_employed_income": {
"threshold": 0.95,
"measured_accuracy_above": 0.96
}
}Error-prone fields get stricter thresholds, so more of them are routed to underwriters.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
How do you target scarce reviewers at the fields most likely to be wrong?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Confidence calibration & stratified sampling (human-review routing) Study: Escalation design
Study: Confidence calibration & stratified sampling (human-review routing) Study: Escalation design Calibration Human-in-the-loop Stratified sampling
Answer
**A.** Per-field scores with thresholds calibrated on labelled applications send reviewers to the specific fields likely to be wrong. The model's own overall sense of unease is uncalibrated self-assessment, and whole-application or random routing spends most reviewer time on fields that are almost always right.Q339. A warehouse agent reads delivery paperwork. Printed domestic packing slips are 70% of volume at 98.8% accuracy, customs forms are 20% at 96.9%, and handwritten slips are 10% at 61%. Overall accuracy is about 94.6%. The plan is to auto-post every extraction with confidence of at least 0.9. Which fact makes the plan unsafe? A) Inventory reconciliation will not catch errors quickly enough, so validation checks after posting must be added first. B) A single global threshold would let handwritten slips through automatically, even though roughly two in five of them are wrong. C) The 0.9 threshold is too low for all three paperwork types, so it should simply be raised to 0.95 for every type. D) Handwritten slips are only 10% of volume, so their errors are too small a share of the total to matter for the plan.
Understand Q339 · the situation and each part of the question
The real situation behind this question
A distribution centre handles thousands of deliveries a day, and an agent extracts item counts and SKUs from paperwork so stock can be posted without manual entry. Operations wants to automate high-confidence extractions to free clerks. The headline accuracy looks strong, but the paperwork is not uniform: some suppliers still send handwritten slips. Wrong postings cause stock-outs and costly recounts, so the team must know where automation is safe.
Read the question in parts
Part 1 · handwritten slips are 10% at 61%
One segment is far less accurate than the rest, even though it is small.
Part 2 · every extraction with confidence of at least 0.9
The plan applies one global threshold across all paperwork types.
What you are being asked to decide
Why is automating on overall accuracy unsafe here? Seeing how aggregate accuracy hides a weak segment and routing by segment.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Calibration | Setting thresholds per paperwork type from measured accuracy, not one global value. |
| Human-in-the-loop | Keeping people reviewing handwritten slips until their accuracy reaches an acceptable level. |
Study: Confidence calibration & stratified sampling (human-review routing) Calibration Stratified sampling Human-in-the-loop
Understand Q339's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Overall accuracy is an average that high-volume segments dominate. Break accuracy down by input type and route weak segments to human review before automating anything with a single global threshold.
Connect the design to the situation
Handwritten slips at 61% hidden inside a 94.6% overall accuracy figure.
Best answer: B. The overall figure is carried by high-volume printed slips and hides that handwritten slips run at 61%. Segmenting by paperwork type and keeping handwritten slips under human review until they improve is what makes automation safe. A global threshold raise still judges all types by one uncalibrated bar.
What each choice would do here
A · Why this does not meet the full requirement
Inventory reconciliation will not catch errors quickly enough, so validation checks after posting must be added first.
Catching errors after posting is a detective control where a preventive one is needed.
Post-posting checks catch some errors after inventory is already wrong, causing stock-outs and recounts. Preventing handwritten errors from being auto-posted is cheaper than detecting them later.
B · Why this meets the requirement
A single global threshold would let handwritten slips through automatically, even though roughly two in five of them are wrong.
Correct: the global plan automates a segment that is wrong nearly 40% of the time.
Handwritten slips would be posted automatically whenever they scored 0.9, and at 61% accuracy about two in five would put wrong counts into inventory. The segment needs mandatory review until it improves, while printed slips can be automated.
C · Why this does not meet the full requirement
The 0.9 threshold is too low for all three paperwork types, so it should simply be raised to 0.95 for every type.
A higher global bar still ignores that each type needs its own calibrated threshold.
Raising the bar to 0.95 everywhere sends many accurate printed slips to clerks and still does not measure what a score means for handwriting. Handwritten slips can score 0.95 and be wrong if confidence was never calibrated for them.
D · Why this does not meet the full requirement
Handwritten slips are only 10% of volume, so their errors are too small a share of the total to matter for the plan.
Ten percent of volume at 61% means many wrong postings every day.
Ten percent of thousands of daily deliveries is hundreds of slips, and 39% of those wrong means many incorrect postings every day. Share of volume does not make an error rate acceptable.
Check your understanding · explain the design in your own words
Why is automating on overall accuracy unsafe here?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: Confidence calibration & stratified sampling (human-review routing)
Study: Confidence calibration & stratified sampling (human-review routing) Calibration Stratified sampling Human-in-the-loop
Answer
**B.** The overall figure is carried by high-volume printed slips and hides that handwritten slips run at 61%. Segmenting by paperwork type and keeping handwritten slips under human review until they improve is what makes automation safe. A global threshold raise still judges all types by one uncalibrated bar.Escalation drill (20)
Source: Escalation drill.
Q137. A support agent has lookup_order, process_refund, and escalate_to_human. The customer’s first message is: "I need to speak to a human about my refund." What should the agent do first?
A) Call lookup_order first so the human receives the order details with the handoff B) Call escalate_to_human immediately, passing what it already knows C) Explain that it can process refunds itself and ask to try before transferring D) Ask why the customer prefers a human, then decide whether escalation is needed
Understand Q137 · the situation and each part of the question
The real situation behind this question
A customer opens a chat and, before describing anything else, says they want a human about a refund. The agent is capable: it can look up the order and even issue the refund. The tempting instinct is to be helpful by doing some work first. The question tests whether the agent treats the customer’s explicit choice as binding, or as an input it may weigh against its own ability.
Read the question in parts
Part 1 · first message
The request comes before any investigation, so nothing has been tried or promised yet.
Part 2 · I need to speak to a human
This is an explicit request for a person, not a complaint or a hint of frustration.
Part 3 · has process_refund
Capability does not change the rule; being able to resolve is not permission to override the request.
What you are being asked to decide
What does the agent do when the customer asks for a human in the first message? Recognize an explicit request as a decision the customer has already made.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| Handoff | The structured package a human receives: who, what, what was tried, and what is recommended. |
| tool_use | The block in which the model requests a tool; the harness decides whether it actually runs. |
Study: escalation design Scenario S1 · customer support Escalation Handoff
Understand Q137's answer · full reasoning and worked examples
Claude synthesized · the point, straight
The customer already decided. An explicit request for a human is honored immediately, without investigating first; the handoff carries what is known, and the human does the lookup.
Connect the design to the situation
The first message asks for a human about a refund; the agent has tools that could handle refunds.
Best answer: B. An explicit request for a human is honored immediately, without first investigating. The handoff carries what the agent already knows; the human can look up the order.
What each choice would do here
A · Why this does not meet the full requirement
Call lookup_order first so the human receives the order details with the handoff
Investigating first delays an explicit request the agent must honor now.
Looking up the order feels thoughtful, but it is exactly the “investigate first” pattern the guidance rules out. The human agent has their own tools and can look up the order in seconds.
B · Why this meets the requirement
Call escalate_to_human immediately, passing what it already knows
The request is explicit, so escalation happens at once with the known facts.
The customer made the decision, so the agent honors it now. It passes the customer’s stated issue, any identifier already given, and a reason of explicit request, with no steps taken yet.
C · Why this does not meet the full requirement
Explain that it can process refunds itself and ask to try before transferring
Negotiating with an explicit request overrides the customer’s decision.
Offering to try first is appropriate when a customer is frustrated but has not asked for a person. Here the customer asked, so persuading them to stay with the agent overrides their choice.
D · Why this does not meet the full requirement
Ask why the customer prefers a human, then decide whether escalation is needed
Questioning the preference is another way of delaying it.
Asking for the reason puts a condition on the transfer. Even a polite question delays an explicit request and makes the customer justify a choice they are entitled to make.
Check your understanding · explain the design in your own words
What does the agent do when the customer asks for a human in the first message?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Study: escalation design Scenario S1 · customer support Escalation Handoff
Answer
**B.** An explicit request for a human is honored immediately, without first investigating. The handoff carries what the agent already knows; the human can look up the order.Q138. A customer writes: "This is the THIRD time my package is late. This is ridiculous." They have not asked for a person. Checking order status and offering a reship are within the agent’s tools and policy. What should the agent do? A) Escalate immediately, because strong negative sentiment signals a complex case B) Run a sentiment score and escalate if it falls below the configured threshold C) Skip the emotion and reply with the tracking number only D) Acknowledge the frustration, look up the order, and offer a concrete fix; escalate if the customer then asks for a human
Understand Q138 · the situation and each part of the question
The real situation behind this question
A customer has had three late deliveries and is angry. They vent, but they do not ask for a person. The agent can check the order and offer a reship, which is exactly what this customer needs. The question tests whether the agent reacts to tone by handing off a simple case, or recognizes that a frustrated customer with a solvable problem is best served by solving it.
Read the question in parts
Part 1 · THIRD time … ridiculous
Strong emotion is present, but no request for a human has been made in these words.
Part 2 · within the agent’s tools and policy
The fix is available without any exception, so the agent is capable of resolving the case itself.
What you are being asked to decide
Does an angry message alone mean escalate? Separate emotional tone from an explicit request and from case complexity.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| Calibration | Whether a stated confidence matches how often the answer is actually right. |
| System prompt | The standing instructions for every turn: role, criteria, and examples that shape the agent’s decisions. |
Study: escalation design Scenario S1 · customer support Escalation Calibration
Understand Q138's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Frustration is not a request. Within capability, the agent acknowledges and offers a resolution; only a reiterated wish for a person turns this into an escalation.
Connect the design to the situation
A late package, a frustrated customer, and a fix the agent can deliver itself.
Best answer: D. Frustration is not a request for a human. When the issue is within the agent’s capability, it acknowledges the frustration and offers a resolution, and escalates only if the customer reiterates that they want a person.
What each choice would do here
A · Why this does not meet the full requirement
Escalate immediately, because strong negative sentiment signals a complex case
Anger is not the same as complexity or a request.
Treating anger as complexity sends an easy case to a human queue. The customer waits longer for a fix the agent could have offered in one turn, and the humans lose time.
B · Why this does not meet the full requirement
Run a sentiment score and escalate if it falls below the configured threshold
Sentiment is an unreliable proxy for when a human is needed.
A sentiment threshold measures tone, not whether the case needs human judgment. Calm customers with policy exceptions slip through, and angry customers with simple issues are routed away.
C · Why this does not meet the full requirement
Skip the emotion and reply with the tracking number only
Ignoring the frustration is poor service and does not offer a resolution.
Replying with only a tracking number ignores the frustration and does not fix the repeated problem. Acknowledging the experience is part of a good resolution, not a trigger for escalation.
D · Why this meets the requirement
Acknowledge the frustration, look up the order, and offer a concrete fix; escalate if the customer then asks for a human
Acknowledge, resolve what the agent can, and escalate if the customer repeats a preference.
The agent acknowledges the frustration, checks the order, and offers a reship. If the customer then says they want a person, the preference is now explicit and the agent escalates at once.
Check your understanding · explain the design in your own words
Does an angry message alone mean escalate?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Study: escalation design Scenario S1 · customer support Escalation Calibration
Answer
**D.** Frustration is not a request for a human. When the issue is within the agent’s capability, it acknowledges the frustration and offers a resolution, and escalates only if the customer reiterates that they want a person.Q139. Continuing the late-package case: the agent acknowledged the frustration and offered a reship. The customer replies: "No. I just want a person." What now? A) Escalate now; the customer has stated a preference for a human after the offer B) Improve the offer with a discount code and try once more C) Process the reship anyway, since it is within policy, and then escalate D) Ask which department the customer wants before escalating
Understand Q139 · the situation and each part of the question
The real situation behind this question
The agent did the right thing a turn ago: it acknowledged the customer’s frustration and offered a concrete fix. The customer declined and asked for a person. The question is about what happens after that boundary. Some designs keep trying to retain the customer; others finish the action anyway. The guidance draws a clear line at the reiterated preference.
Read the question in parts
Part 1 · offered a reship
The agent already tried the resolve-first path that fits a frustrated but not requesting customer.
Part 2 · I just want a person
The customer now states the preference explicitly, which turns the case into an immediate escalation.
What you are being asked to decide
What changes when the customer repeats the request for a person? Recognize the point where offering to resolve must stop.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| Handoff | The structured package a human receives: who, what, what was tried, and what is recommended. |
| Harness | The application code around the model call. It checks policy, runs tools, and enforces rules deterministically. |
Study: escalation design Scenario S1 · customer support Escalation Handoff
Understand Q139's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Offer once when the customer is only frustrated; once they repeat that they want a person, the request is explicit and the agent escalates now.
Connect the design to the situation
The offer was made and declined with a clear request for a person.
Best answer: A. After an offer to resolve, the customer has reiterated that they want a human. The preference is now explicit, so the agent escalates immediately.
What each choice would do here
A · Why this meets the requirement
Escalate now; the customer has stated a preference for a human after the offer
The reiterated preference is explicit and is honored now.
The earlier offer was correct and the customer declined it. The request is now explicit, so the agent escalates with a handoff noting the offer and that it was declined.
B · Why this does not meet the full requirement
Improve the offer with a discount code and try once more
A sweeter offer is still negotiating with an explicit request.
Adding a discount is retention, and it treats the customer’s request as something to overcome. It delays the human and signals that the agent is ignoring what the customer said.
C · Why this does not meet the full requirement
Process the reship anyway, since it is within policy, and then escalate
Acting after a refusal performs a side effect the customer declined.
Running the reship after the customer declined performs a real action nobody agreed to. The human would inherit a case with an unrequested shipment already in flight.
D · Why this does not meet the full requirement
Ask which department the customer wants before escalating
Routing questions delay a transfer the customer has clearly asked for.
The handoff packet and routing rules decide where the case goes. Asking the customer to pick a department adds a step to a transfer they already requested.
Check your understanding · explain the design in your own words
What changes when the customer repeats the request for a person?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Study: escalation design Scenario S1 · customer support Escalation Handoff
Answer
**A.** After an offer to resolve, the customer has reiterated that they want a human. The preference is now explicit, so the agent escalates immediately.Q140. To improve handoff quality, a team adds to the system prompt: "Before escalating, always make at least one tool call to gather context." What is the problem with this instruction? A) There is none; handoffs will now always include order data B) There is none; the model will ignore it for explicit requests anyway C) It delays explicit requests for a human; exempt them so the agent escalates at once with what it knows D) It is fine as long as the tool calls are fast
Understand Q140 · the situation and each part of the question
The real situation behind this question
A team is unhappy with thin handoff summaries and writes a rule: always gather context before escalating. For policy gaps or stalled cases this can help. But the rule applies to every escalation, including the customer who simply asks for a person. The question tests whether you can see the collision between a quality rule and the requirement to honor explicit requests without first investigating.
Read the question in parts
Part 1 · always make at least one tool call
The rule is unconditional, so it applies even when the customer explicitly asked for a human.
Part 2 · improve handoff quality
The goal is legitimate, but it must be met without delaying explicit requests.
What you are being asked to decide
Can a prompt rule accidentally delay an explicit request? Spot an instruction that conflicts with honoring requests immediately.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| System prompt | The standing instructions for every turn: role, criteria, and examples that shape the agent’s decisions. |
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| Handoff | The structured package a human receives: who, what, what was tried, and what is recommended. |
Study: escalation design The prompt template System prompt Escalation
Understand Q140's answer · full reasoning and worked examples
Claude synthesized · the point, straight
A blanket “investigate first” rule collides with explicit requests. Carve them out: explicit request → escalate now, with the known facts in the packet.
Connect the design to the situation
A well-meant rule to gather context applies to every escalation, including explicit requests.
Best answer: C. A blanket "investigate before escalating" rule makes the agent delay explicit requests for a human. Explicit requests must be exempt: escalate immediately, and let the handoff carry what is already known.
What each choice would do here
A · Why this does not meet the full requirement
There is none; handoffs will now always include order data
Better data does not justify delaying a customer’s explicit decision.
Richer handoffs are good, yet this rule buys them by making every customer who asked for a person wait for tool calls first. That is the investigate-first behavior the guidance rules out.
B · Why this does not meet the full requirement
There is none; the model will ignore it for explicit requests anyway
Models follow standing instructions; relying on them to ignore it is unsafe.
Models tend to follow standing system-prompt instructions. Assuming the model will skip the rule exactly when it should is hoping for the opposite of the instruction’s effect.
C · Why this meets the requirement
It delays explicit requests for a human; exempt them so the agent escalates at once with what it knows
The rule must carve out explicit requests, which are honored immediately.
Keep context gathering for triggers such as policy gaps, and state that explicit requests escalate immediately. The handoff then includes what the agent already knows and notes that no lookup was performed.
D · Why this does not meet the full requirement
It is fine as long as the tool calls are fast
Speed does not change that investigation is being placed before the request.
Fast or slow, the instruction still puts investigation ahead of honoring the request. The issue is the order of operations, not the latency of the tools.
Check your understanding · explain the design in your own words
Can a prompt rule accidentally delay an explicit request?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Study: escalation design The prompt template System prompt Escalation
Answer
**C.** A blanket "investigate before escalating" rule makes the agent delay explicit requests for a human. Explicit requests must be exempt: escalate immediately, and let the handoff carry what is already known.Q141. You are writing the escalation section of a support agent’s system prompt. Which instruction captures both sides of the honor-versus-resolve rule? A) "Escalate whenever the customer seems upset; otherwise resolve the issue yourself." B) "Always attempt a resolution first; escalate only if your tools fail." C) "Escalate any conversation that involves a refund; resolve everything else." D) "If the customer asks for a human, escalate immediately without investigating. If they are frustrated but the issue is within your tools and policy, acknowledge it and offer a resolution; escalate if they repeat the request."
Understand Q141 · the situation and each part of the question
The real situation behind this question
The team has learned that vague escalation instructions produce inconsistent behavior, so they want explicit criteria in the system prompt. Each candidate sounds reasonable in isolation. The question asks which one covers both the explicit request, which must be honored at once, and the frustrated customer with a solvable issue, who should be offered a resolution first.
Read the question in parts
Part 1 · both sides
A correct rule must handle the explicit request and the frustrated-but-solvable case differently.
Part 2 · system prompt
The criteria live in standing instructions, where few-shot examples can also demonstrate them.
What you are being asked to decide
Which prompt wording encodes the whole escalation rule? Turn the decision rule into explicit criteria the agent can apply.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| System prompt | The standing instructions for every turn: role, criteria, and examples that shape the agent’s decisions. |
| Few-shot | Worked examples in the prompt that show the model how to handle a class of cases, including the ambiguous ones. |
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
Study: escalation design The prompt template System prompt Few-shot
Understand Q141's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Good criteria state both branches: explicit request → escalate at once; frustration within capability → acknowledge, offer a fix, escalate on a repeat.
Connect the design to the situation
Four candidate instructions for the same support agent.
Best answer: D. The instruction must cover both sides: explicit requests are honored immediately, and frustration without a request gets an offer to resolve, with escalation if the customer reiterates the preference.
What each choice would do here
A · Why this does not meet the full requirement
"Escalate whenever the customer seems upset; otherwise resolve the issue yourself."
Upset is a sentiment trigger, which is unreliable.
Escalating whenever the customer seems upset makes tone the trigger. It sends solvable cases to humans and misses calm customers who ask for a person or hit a policy gap.
B · Why this does not meet the full requirement
"Always attempt a resolution first; escalate only if your tools fail."
Resolve-first delays explicit requests for a human.
Resolving first is right for frustration, but applied to everyone it makes the customer who explicitly asked for a person wait while the agent tries tools.
C · Why this does not meet the full requirement
"Escalate any conversation that involves a refund; resolve everything else."
Topic is not a trigger; many refunds are routine.
Topic-based escalation sends every routine refund to a human and ignores explicit requests about other topics. It measures subject matter, not whether human judgment is required.
D · Why this meets the requirement
"If the customer asks for a human, escalate immediately without investigating. If they are frustrated but the issue is within your tools and policy, acknowledge it and offer a resolution; escalate if they repeat the request."
It encodes the explicit-request rule and the frustration rule together.
This states both branches: explicit request, escalate immediately; frustrated but solvable, acknowledge and offer to resolve, escalating if the request is repeated. Pair it with a few examples of each.
Check your understanding · explain the design in your own words
Which prompt wording encodes the whole escalation rule?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Study: escalation design The prompt template System prompt Few-shot
Answer
**D.** The instruction must cover both sides: explicit requests are honored immediately, and frustration without a request gets an offer to resolve, with escalation if the customer reiterates the preference.Q142. Midway through a return, the agent has found the order but has not yet called create_return. The customer says: "Actually, just get me a human." What should happen?
A) Finish the return first so the work is not lost, then escalate B) Stop, escalate now, and record in the handoff that the order was found and no return was submitted C) Escalate with no summary, since the customer abandoned the flow D) Ask the customer to confirm they want to abandon the return
Understand Q142 · the situation and each part of the question
The real situation behind this question
The agent is partway through a return. It has identified the order and is about to create the return when the customer asks for a person. Two instincts compete: finish the job, or drop everything. The question tests whether you can honor the request immediately while still preserving progress, and whether you record what has and has not happened.
Read the question in parts
Part 1 · has not yet called create_return
No side effect has happened, which is exactly the state the handoff must describe.
Part 2 · just get me a human
The request is explicit, so the agent stops the flow rather than finishing it.
What you are being asked to decide
What happens to half-finished work when the customer asks for a human mid-flow? Honor the request without executing more actions, and preserve progress in the handoff.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Handoff | The structured package a human receives: who, what, what was tried, and what is recommended. |
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| tool_use | The block in which the model requests a tool; the harness decides whether it actually runs. |
Study: escalation design What survives the handoff Handoff Escalation
Understand Q142's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Stop, escalate now, run no further side effects, and let the packet say what did and did not happen (order found, return not submitted).
Connect the design to the situation
An order was located; the return was not yet created.
Best answer: B. The explicit request is honored at once, and no further side effects run. The handoff records the progress so far, including that no return was submitted, so the human continues without repeating work.
What each choice would do here
A · Why this does not meet the full requirement
Finish the return first so the work is not lost, then escalate
Finishing runs a side effect after the customer changed course.
Completing the return after the customer asked for a person performs an action they did not confirm. The human may need to reverse it, and the customer’s request was delayed by it.
B · Why this meets the requirement
Stop, escalate now, and record in the handoff that the order was found and no return was submitted
Escalate now and pass the exact state, including what has not happened.
The agent escalates immediately and writes the handoff: the order identified, the return not submitted, and the reason of explicit request. The human continues from that exact point.
C · Why this does not meet the full requirement
Escalate with no summary, since the customer abandoned the flow
Dropping the progress forces the human to start again.
An empty handoff throws away the agent’s progress. The human must re-ask for the order and re-verify it, which is the repeated work a structured handoff exists to prevent.
D · Why this does not meet the full requirement
Ask the customer to confirm they want to abandon the return
A confirmation question delays an explicit request.
Asking whether they really want to abandon the return adds a condition to a clear request. The human can resume the return if the customer still wants it.
Check your understanding · explain the design in your own words
What happens to half-finished work when the customer asks for a human mid-flow?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Study: escalation design What survives the handoff Handoff Escalation
Answer
**B.** The explicit request is honored at once, and no further side effects run. The handoff records the progress so far, including that no return was submitted, so the human continues without repeating work.Q143. A customer asked for a human in their first message, so the agent escalated without investigating. Human agents cannot see the chat transcript. What belongs in the escalate_to_human call?
A) The customer ID if known, the issue in the customer’s words, a reason of explicit request, and a note that no investigation or action was taken B) A link to the raw transcript and nothing else C) Nothing; the human will ask the customer to start over D) The agent’s guess at the root cause, produced by running diagnostics before the call
Understand Q143 · the situation and each part of the question
The real situation behind this question
The agent correctly escalated at once. Now it must write the handoff for a human who cannot read the chat. It has very little: an identifier, perhaps, and the customer’s own words. The question tests whether the handoff can be useful without investigation, and whether it states plainly that nothing has been tried, so the human does not assume work was done.
Read the question in parts
Part 1 · cannot see the chat transcript
The handoff is the human’s only source, so it must be self-contained and structured.
Part 2 · escalated without investigating
The packet must say so, with no invented findings or implied actions.
What you are being asked to decide
What goes into a handoff when nothing has been investigated? Build a standalone handoff that is honest about what was not done.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Handoff | The structured package a human receives: who, what, what was tried, and what is recommended. |
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| Harness | The application code around the model call. It checks policy, runs tools, and enforces rules deterministically. |
What survives the handoff Study: escalation design Handoff Escalation
Understand Q143's answer · full reasoning and worked examples
Claude synthesized · the point, straight
The packet must stand alone: identity, the customer’s words, reason = explicit request, and an honest “nothing investigated or executed.”
Connect the design to the situation
An immediate escalation with only the customer’s first message as evidence.
Best answer: A. The human cannot see the transcript, so the handoff must stand alone: who, what they said, why it was escalated, and what was (not) done. Running diagnostics first would break the immediate-escalation rule.
What each choice would do here
A · Why this meets the requirement
The customer ID if known, the issue in the customer’s words, a reason of explicit request, and a note that no investigation or action was taken
It is standalone, honest about no actions, and carries the reason.
The human gets the customer’s identity, their words, the reason for the escalation, and an explicit statement that no tools were run or actions taken. That is enough to start without re-asking.
B · Why this does not meet the full requirement
A link to the raw transcript and nothing else
The human cannot open the transcript, and raw logs are not a summary.
A transcript link is useless to a human who lacks access, and a raw log is not a summary. Structured fields let the human act quickly.
C · Why this does not meet the full requirement
Nothing; the human will ask the customer to start over
Making the customer repeat themselves wastes the handoff.
Sending nothing makes the customer start over, which is the experience the handoff is designed to prevent. Even a minimal packet saves the customer from repeating themselves.
D · Why this does not meet the full requirement
The agent’s guess at the root cause, produced by running diagnostics before the call
Diagnostics before escalating delay an explicit request.
Running diagnostics to fill the packet reintroduces the delay the rule forbids. A guessed root cause may also mislead the human into the wrong path.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Immediate-escalation handoff (tool input)
{
"customer_id": "C-20931",
"reason": "customer_request",
"customer_statement": "I need to speak to a human about my refund.",
"steps_taken": [],
"actions_executed": [],
"recommended_action": "Review refund request for order the customer will reference."
}An empty steps_taken list is information: it tells the human nothing was looked up or changed, so they begin from the customer’s own statement.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
What goes into a handoff when nothing has been investigated?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
What survives the handoff Study: escalation design Handoff Escalation
Answer
**A.** The human cannot see the transcript, so the handoff must stand alone: who, what they said, why it was escalated, and what was (not) done. Running diagnostics first would break the immediate-escalation rule.Q144. A customer asks the agent to match a competitor’s lower price. Company policy covers price adjustments only when the company’s own site price drops, and says nothing about competitors. What should the agent do? A) Deny the request, because the policy covers only own-site price drops B) Approve it, because the policy’s intent is price fairness C) Escalate: the policy is silent on competitor matching, which is a policy gap D) Ask for a screenshot of the competitor price and approve if it is valid
Understand Q144 · the situation and each part of the question
The real situation behind this question
The policy was written for one situation, own-site price drops, and the customer is asking about another, competitor prices. Nothing forbids it and nothing allows it. The agent could read the silence either way. The question tests whether the agent recognizes that filling a policy gap is a business decision reserved for people, not a judgment call for the model.
Read the question in parts
Part 1 · only when the company’s own site price drops
The policy defines one case precisely and leaves other price comparisons unaddressed.
Part 2 · says nothing about competitors
Silence on the specific request means there is no rule for the agent to apply.
What you are being asked to decide
What should an agent do when policy does not address the request? Recognize a policy gap as a valid escalation trigger.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| Guardrail | A control that keeps the agent inside policy, strongest when enforced in code rather than requested in the prompt. |
| HITL | Human in the loop: an authorized person decides at a defined point before the run continues. |
Study: escalation design Scenario S1 · customer support Escalation Guardrail
Understand Q144's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Policy silent on the request = a policy gap = escalate. Denying and approving both invent policy the agent does not own.
Connect the design to the situation
A competitor price-match request under an own-site-only adjustment policy.
Best answer: C. When policy is ambiguous or silent on the specific request, that gap is an escalation trigger. The agent should neither invent a denial nor invent an approval.
What each choice would do here
A · Why this does not meet the full requirement
Deny the request, because the policy covers only own-site price drops
Silence is not a prohibition; denying invents policy.
Reading silence as a prohibition invents a rule the company never wrote. The customer may be refused something the business would approve, and the agent has made a policy decision it does not own.
B · Why this does not meet the full requirement
Approve it, because the policy’s intent is price fairness
Guessing intent invents policy in the other direction.
Reading silence as permission invents a rule in the opposite direction. The agent commits the company to a price-matching practice that nobody authorized.
C · Why this meets the requirement
Escalate: the policy is silent on competitor matching, which is a policy gap
A silent policy is a gap, and gaps go to a human.
A silent or ambiguous policy is a gap, and the guidance lists policy gaps as escalation triggers. A human with authority decides, and the decision can later be added to the policy.
D · Why this does not meet the full requirement
Ask for a screenshot of the competitor price and approve if it is valid
Collecting evidence then approving still invents a rule.
Collecting a screenshot looks rigorous, but approving afterwards still invents a competitor-matching rule. Evidence helps the human decide; it does not give the agent authority.
Check your understanding · explain the design in your own words
What should an agent do when policy does not address the request?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Study: escalation design Scenario S1 · customer support Escalation Guardrail
Answer
**C.** When policy is ambiguous or silent on the specific request, that gap is an escalation trigger. The agent should neither invent a denial nor invent an approval.Q145. An agent has tried three different ways to locate a customer’s account: by email, by phone, and by order number. Each returned no match, and the customer is patient and polite. What should happen next? A) Escalate with a handoff listing the three lookups and their results, because the agent cannot make meaningful progress B) Keep retrying the same lookups with exponential backoff until one succeeds C) Tell the customer the account does not exist and end the conversation D) Wait to escalate until the customer becomes frustrated
Understand Q145 · the situation and each part of the question
The real situation behind this question
The agent has been diligent. It tried the account lookup three different ways, and each came back empty, not with an error but with no match. The customer is calm. Nobody has asked for a person, and there is no emotional signal. The question tests whether the agent recognizes that being stuck is itself a reason to hand off, and what that handoff should contain.
Read the question in parts
Part 1 · three different ways
The agent has exhausted reasonable approaches, so another attempt is unlikely to change the result.
Part 2 · patient and polite
There is no sentiment signal, which shows the trigger here is lack of progress, not emotion.
What you are being asked to decide
When does a stuck agent escalate even though nobody asked? Recognize lack of progress as a trigger, and pass along the attempts.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| Handoff | The structured package a human receives: who, what, what was tried, and what is recommended. |
| Agent loop | The cycle of model call, tool execution, and result append that continues until the harness ends it. |
Study: escalation design What survives the handoff Escalation Handoff
Understand Q145's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Being stuck is a trigger: no meaningful progress → escalate, with each attempt and its result in the packet so the human does not redo them.
Connect the design to the situation
Three distinct lookups, three valid no-match results, and a calm customer.
Best answer: A. Inability to make meaningful progress is an escalation trigger. The handoff records what was attempted so the human does not repeat it.
What each choice would do here
A · Why this meets the requirement
Escalate with a handoff listing the three lookups and their results, because the agent cannot make meaningful progress
No progress is a trigger; the attempts go into the packet.
The agent stops and escalates. The handoff lists each lookup, its input, and the no-match result, so the human can try other systems or ask different questions without repeating these.
B · Why this does not meet the full requirement
Keep retrying the same lookups with exponential backoff until one succeeds
These are valid empty results, not transient errors.
Backoff suits transient failures such as timeouts. A clean no-match is a valid empty result; retrying it will return the same answer and waste the customer’s time.
C · Why this does not meet the full requirement
Tell the customer the account does not exist and end the conversation
No match in three lookups does not prove there is no account.
Three no-match lookups do not prove the account is missing; the data may be under another identifier. Ending the conversation abandons a customer the business may be able to help.
D · Why this does not meet the full requirement
Wait to escalate until the customer becomes frustrated
Customer mood is not the trigger; lack of progress is.
Waiting for frustration makes a sentiment signal the trigger and punishes a patient customer. The case needs a human now because the agent cannot move it forward.
Check your understanding · explain the design in your own words
When does a stuck agent escalate even though nobody asked?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Study: escalation design What survives the handoff Escalation Handoff
Answer
**A.** Inability to make meaningful progress is an escalation trigger. The handoff records what was attempted so the human does not repeat it.Q146. A team proposes routing every conversation to a human whenever a sentiment model scores the customer’s message below −0.6. What is the main weakness of this design? A) Sentiment models are too slow for real-time chat B) Sentiment is an unreliable proxy for case complexity: angry customers often have simple issues, and calm ones can hit policy gaps C) Sentiment scoring violates customer privacy regulations D) The design is sound, but the threshold should be −0.8
Understand Q146 · the situation and each part of the question
The real situation behind this question
The team wants an automatic, measurable trigger, and a sentiment score looks objective. But the reasons a case needs a person are an explicit request, a policy gap, or no progress, and none of those is measured by tone. The question tests whether you can see that the proposed signal is measuring the wrong thing, no matter how carefully it is tuned.
Read the question in parts
Part 1 · sentiment model scores
The trigger is a measure of emotional tone, not of the case’s needs.
Part 2 · below −0.6
A threshold makes the design look precise, but precision on the wrong signal does not help.
What you are being asked to decide
Why is a sentiment threshold a weak escalation trigger? Distinguish tone from the actual reasons a human is needed.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| Calibration | Whether a stated confidence matches how often the answer is actually right. |
| Harness | The application code around the model call. It checks policy, runs tools, and enforces rules deterministically. |
Study: escalation design Confidence calibration Escalation Calibration
Understand Q146's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Sentiment measures tone, not need. It escalates angry-but-simple cases and misses calm policy gaps, so no threshold fixes it.
Connect the design to the situation
A proposal to escalate on a sentiment score below a fixed threshold.
Best answer: B. Sentiment measures tone, not whether a case needs human judgment. It escalates simple cases from angry customers and misses calm customers with policy gaps or explicit requests.
What each choice would do here
A · Why this does not meet the full requirement
Sentiment models are too slow for real-time chat
Latency is not the core problem with the trigger.
Sentiment scoring can be fast enough for chat. Even if it were instant, it would still send the wrong conversations to humans, because tone and need are different things.
B · Why this meets the requirement
Sentiment is an unreliable proxy for case complexity: angry customers often have simple issues, and calm ones can hit policy gaps
Tone does not track complexity or the valid triggers.
An angry customer with a late package needs a reship, not a human; a calm customer asking about a competitor price match needs a human. Sentiment gets both wrong.
C · Why this does not meet the full requirement
Sentiment scoring violates customer privacy regulations
Privacy is not the issue the design question tests.
Privacy review may matter for any analytics, but it is not why this trigger fails. The design question is about whether the signal predicts the need for human judgment.
D · Why this does not meet the full requirement
The design is sound, but the threshold should be −0.8
Tuning the threshold does not fix the wrong signal.
Moving the threshold changes how many conversations are routed, not which kind. A stricter cutoff still escalates on tone and still misses calm customers who need a person.
Check your understanding · explain the design in your own words
Why is a sentiment threshold a weak escalation trigger?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Study: escalation design Confidence calibration Escalation Calibration
Answer
**B.** Sentiment measures tone, not whether a case needs human judgment. It escalates simple cases from angry customers and misses calm customers with policy gaps or explicit requests.Q147. An agent rates its own confidence from 1–10 on each case and escalates below 6. In review, it escalates many easy cases and confidently handles several hard ones incorrectly. What explains this? A) The threshold of 6 is too high and should be lowered B) Temperature is too high, which makes the confidence scores noisy C) Confidence should be computed in a separate batch job D) An LLM’s self-reported confidence is poorly calibrated: it does not track how complex or risky the case actually is
Understand Q147 · the situation and each part of the question
The real situation behind this question
The design looks principled: let the agent judge its own certainty and hand off when unsure. The review shows the opposite of what was hoped. Easy cases are escalated and hard ones are handled confidently and wrongly. The question asks you to name the root cause rather than tune the mechanism, and to connect it to why this is an unreliable trigger in general.
Read the question in parts
Part 1 · rates its own confidence
The signal is the model’s self-assessment, not a measured property of the case.
Part 2 · confidently handles several hard ones incorrectly
High stated confidence on wrong answers shows the score is not calibrated to accuracy.
What you are being asked to decide
Why does a self-rated confidence threshold misroute cases? Recognize that model self-assessment is not a reliable escalation signal.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Calibration | Whether a stated confidence matches how often the answer is actually right. |
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| Few-shot | Worked examples in the prompt that show the model how to handle a class of cases, including the ambiguous ones. |
Confidence calibration Study: escalation design Calibration Escalation
Understand Q147's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Self-reported confidence is poorly calibrated; the agent is confidently wrong on hard cases, so thresholds on it cannot route correctly.
Connect the design to the situation
Easy cases escalated, hard cases handled wrongly, under a 1–10 self-rating.
Best answer: D. Self-reported confidence is an unreliable proxy for case complexity. The agent can be confident and wrong on hard cases, and unsure on easy ones, so no threshold on it routes cases correctly.
What each choice would do here
A · Why this does not meet the full requirement
The threshold of 6 is too high and should be lowered
A different threshold on an uncalibrated score still misroutes.
Lowering the threshold escalates fewer cases but does not make the score track difficulty. The hard cases scored high will still be handled wrongly.
B · Why this does not meet the full requirement
Temperature is too high, which makes the confidence scores noisy
Lower temperature does not calibrate the self-rating.
Temperature changes sampling randomness, not whether the model knows when it is wrong. A deterministic but uncalibrated score is still uncalibrated.
C · Why this does not meet the full requirement
Confidence should be computed in a separate batch job
Where confidence is computed does not fix its calibration.
Moving the computation to a batch job changes when it runs, not what it measures. The same self-assessment produces the same misrouting.
D · Why this meets the requirement
An LLM’s self-reported confidence is poorly calibrated: it does not track how complex or risky the case actually is
The score itself does not track actual complexity.
The model’s stated confidence does not match how often it is right on this kind of case. Explicit criteria and examples of what should escalate address the real cause.
Check your understanding · explain the design in your own words
Why does a self-rated confidence threshold misroute cases?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Confidence calibration Study: escalation design Calibration Escalation
Answer
**D.** Self-reported confidence is an unreliable proxy for case complexity. The agent can be confident and wrong on hard cases, and unsure on easy ones, so no threshold on it routes cases correctly.Q148. For the miscalibrated agent in the previous question, which change is the most effective first step to improve when it escalates? A) Train a separate classifier on historical tickets to pre-route every conversation B) Add a sentiment model and escalate when the customer is frustrated C) Add explicit escalation criteria to the system prompt, with few-shot examples showing when to escalate and when to resolve D) Lower the self-rated confidence threshold from 6 to 4
Understand Q148 · the situation and each part of the question
The real situation behind this question
The team now knows the confidence score is unreliable. They must decide what to do first. The options range from new infrastructure to new signals to prompt changes. The question tests proportionality: pick the change that addresses why the agent decides badly, which is that it was never told clearly what should and should not go to a human.
Read the question in parts
Part 1 · most effective first step
The answer should target the root cause with the least new machinery.
Part 2 · when it escalates
The fix is about the decision boundary, which examples demonstrate well.
What you are being asked to decide
What is the first fix for an agent that escalates the wrong cases? Choose the proportionate fix that targets unclear criteria.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Few-shot | Worked examples in the prompt that show the model how to handle a class of cases, including the ambiguous ones. |
| System prompt | The standing instructions for every turn: role, criteria, and examples that shape the agent’s decisions. |
| Calibration | Whether a stated confidence matches how often the answer is actually right. |
The prompt template Study: escalation design Few-shot System prompt
Understand Q148's answer · full reasoning and worked examples
Claude synthesized · the point, straight
The cause is unclear criteria, so the first fix is explicit criteria + few-shot examples of escalate vs resolve, before classifiers or new signals.
Connect the design to the situation
The same agent: easy cases escalated, hard ones mishandled.
Best answer: C. The root cause is unclear decision criteria. Explicit criteria plus few-shot examples of escalate-versus-resolve address it directly and should be tried before heavier infrastructure.
What each choice would do here
A · Why this does not meet the full requirement
Train a separate classifier on historical tickets to pre-route every conversation
Heavy infrastructure before trying clear criteria is disproportionate.
A classifier may help at scale, but it needs labeled data, training, and maintenance. Building it before trying clear criteria skips the cheap fix that addresses the actual cause.
B · Why this does not meet the full requirement
Add a sentiment model and escalate when the customer is frustrated
Sentiment is an unreliable trigger and solves a different problem.
Sentiment measures tone, so it adds a second unreliable signal. It would escalate angry customers with simple issues and still miss calm policy gaps.
C · Why this meets the requirement
Add explicit escalation criteria to the system prompt, with few-shot examples showing when to escalate and when to resolve
Explicit criteria and examples target the root cause directly.
Stating the triggers (explicit request, policy gap, no progress) and showing two to four examples on both sides of the line teaches the agent the boundary it was guessing at.
D · Why this does not meet the full requirement
Lower the self-rated confidence threshold from 6 to 4
Retuning an uncalibrated score does not fix it.
Changing the threshold only changes how many cases the uncalibrated score sends away. It cannot move the hard cases the agent is confidently wrong about.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Escalation criteria with examples (system prompt excerpt)
Escalate to a human when:
- the customer explicitly asks for a person (do this immediately, before any lookup);
- policy is silent or ambiguous on the specific request;
- you cannot make meaningful progress after reasonable attempts.
Do NOT escalate only because the customer is upset or because the case has many steps.
Example 1: "Get me a human." -> escalate now, reason=customer_request, steps_taken=[].
Example 2: "Third late package, this is ridiculous." -> acknowledge, check the order, offer a reship. Escalate if they then ask for a person.
Example 3: "Will you match Competitor X's price?" (policy covers own-site drops only) -> escalate, reason=policy_gap.The criteria name the valid triggers and exclude the unreliable ones, and each example shows the reasoning on one side of the boundary.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
What is the first fix for an agent that escalates the wrong cases?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
The prompt template Study: escalation design Few-shot System prompt
Answer
**C.** The root cause is unclear decision criteria. Explicit criteria plus few-shot examples of escalate-versus-resolve address it directly and should be tried before heavier infrastructure.Q149. get_customer(name="Maria Garcia") returns three matching accounts. The customer wants to change a shipping address. What should the agent do?
A) Select the most recently active account and proceed B) Ask the customer for an additional identifier, such as email or an order number, before acting C) Escalate to a human, because the lookup is ambiguous D) Apply the address change to all three accounts
Understand Q149 · the situation and each part of the question
The real situation behind this question
A name lookup found three accounts. The change requested is small but touches personal data. The agent could guess, could hand off, or could act broadly. The question tests whether the agent recognizes ambiguity it can resolve on its own by asking one question, rather than treating it as a reason to escalate or as permission to guess.
Read the question in parts
Part 1 · returns three matching accounts
The tool result is ambiguous, so any action without narrowing it risks the wrong account.
Part 2 · change a shipping address
The action modifies personal data, so choosing the wrong account has real consequences.
What you are being asked to decide
What does the agent do when a lookup returns several people? Separate ambiguity the agent can resolve by asking from a reason to escalate.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| Guardrail | A control that keeps the agent inside policy, strongest when enforced in code rather than requested in the prompt. |
| tool_use | The block in which the model requests a tool; the harness decides whether it actually runs. |
Study: escalation design Scenario S1 · customer support Escalation Guardrail
Understand Q149's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Multiple matches → ask for another identifier. Don’t guess by heuristic, and don’t escalate what one question resolves.
Connect the design to the situation
Three accounts share a name; one of them belongs to this customer.
Best answer: B. Multiple matches call for clarification with an additional identifier, not heuristic selection. The agent can resolve this itself, so escalation is not needed.
What each choice would do here
A · Why this does not meet the full requirement
Select the most recently active account and proceed
A heuristic can pick the wrong person’s account.
Recency is a guess. If the most recent account belongs to another Maria Garcia, her order ships to a stranger’s address and the real customer’s problem is not solved.
B · Why this meets the requirement
Ask the customer for an additional identifier, such as email or an order number, before acting
An additional identifier resolves the ambiguity safely.
One question, email or order number, narrows three accounts to one. The agent then proceeds normally, which keeps a simple request inside its capability.
C · Why this does not meet the full requirement
Escalate to a human, because the lookup is ambiguous
The agent can resolve this itself by asking.
Ambiguity that the customer can clear up in one reply is not a policy gap or a stalled case. Escalating here moves routine work to a human queue for no reason.
D · Why this does not meet the full requirement
Apply the address change to all three accounts
Changing three accounts alters two strangers’ data.
Applying the change to every match modifies two accounts that belong to other people. That is a data-integrity and privacy failure, not a cautious choice.
Check your understanding · explain the design in your own words
What does the agent do when a lookup returns several people?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Study: escalation design Scenario S1 · customer support Escalation Guardrail
Answer
**B.** Multiple matches call for clarification with an additional identifier, not heuristic selection. The agent can resolve this itself, so escalation is not needed.Q150. Which of these situations is a valid trigger for escalating to a human? A) The customer asks for a refund exception that falls outside the documented return window B) The customer writes in all capital letters C) Resolving the case will take more than five tool calls D) The model’s self-reported confidence is below 0.7
Understand Q150 · the situation and each part of the question
The real situation behind this question
Four candidate triggers are on the table, each easy to measure. Only one reflects a situation in which the agent lacks authority rather than information or patience. The question tests whether you can tell policy exceptions apart from tone, length, and the model’s view of itself, which are the familiar but unreliable proxies.
Read the question in parts
Part 1 · valid trigger
The answer must name a reason a human is needed, not just a measurable signal.
Part 2 · outside the documented return window
The request needs an exception to written policy, which the agent is not authorized to grant.
What you are being asked to decide
Which situation actually requires human authority? Pick the policy-exception trigger over tone, complexity, and self-rating.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| Calibration | Whether a stated confidence matches how often the answer is actually right. |
| HITL | Human in the loop: an authorized person decides at a defined point before the run continues. |
Study: escalation design Scenario S1 · customer support Escalation Calibration
Understand Q150's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Policy exceptions need human authority. Tone, step count, and the model’s self-rating are proxies that misroute.
Connect the design to the situation
Four candidate triggers for the same support agent.
Best answer: A. A request for an exception to documented policy is a valid trigger. Tone, number of steps, and self-reported confidence are not reliable reasons to escalate.
What each choice would do here
A · Why this meets the requirement
The customer asks for a refund exception that falls outside the documented return window
Exceptions to policy require human authority.
Granting an exception to written policy is a business decision. The agent can explain the situation and escalate, and a person with authority decides.
B · Why this does not meet the full requirement
The customer writes in all capital letters
Capital letters are tone, not a reason for a human.
All capitals signal emotion. The customer may have a simple issue the agent can solve, and tone alone is not a reason to hand off.
C · Why this does not meet the full requirement
Resolving the case will take more than five tool calls
Many steps is complexity, which the agent can handle.
A long but routine sequence of tool calls is still within the agent’s capability. The guidance names policy exceptions and gaps, not complexity alone, as triggers.
D · Why this does not meet the full requirement
The model’s self-reported confidence is below 0.7
Self-reported confidence is poorly calibrated.
Self-reported confidence is poorly calibrated, so a threshold on it misroutes in both directions. It is a familiar distractor for exactly that reason.
Check your understanding · explain the design in your own words
Which situation actually requires human authority?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Study: escalation design Scenario S1 · customer support Escalation Calibration
Answer
**A.** A request for an exception to documented policy is a valid trigger. Tone, number of steps, and self-reported confidence are not reliable reasons to escalate.Q151. Policy says refunds over $500 require a human. The system prompt says "Never issue refunds over $500," yet about 1 in 200 conversations still issues one. What is the right fix?
A) Rewrite the rule in capital letters and repeat it at the end of the prompt B) Add few-shot examples of the agent refusing large refunds C) Lower the temperature to make the agent follow the rule consistently D) Add a hook or harness gate that blocks process_refund above $500 and redirects to escalate_to_human
Understand Q151 · the situation and each part of the question
The real situation behind this question
The rule is written clearly in the prompt, and the agent follows it almost always. Almost is the problem: at scale, one conversation in two hundred is many unauthorized refunds. The question tests whether you recognize that prompt instructions have a non-zero failure rate, and that rules requiring guaranteed compliance belong in code that runs before the tool executes.
Read the question in parts
Part 1 · 1 in 200 conversations
A small but non-zero failure rate shows the rule is being followed probabilistically.
Part 2 · require a human
The rule is a hard business constraint, so it needs enforcement and a route to escalation.
What you are being asked to decide
How do you guarantee a refund limit is never exceeded? Move a must-hold rule from the prompt into deterministic enforcement.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Hook | Code that runs at a fixed point, such as before a tool call, and can block or redirect it regardless of the model. |
| Guardrail | A control that keeps the agent inside policy, strongest when enforced in code rather than requested in the prompt. |
| Harness | The application code around the model call. It checks policy, runs tools, and enforces rules deterministically. |
Hooks — deterministic control Harness controls Hook Guardrail
Understand Q151's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Must-hold rule + non-zero failure rate → move it into a hook/gate that blocks process_refund > $500 and redirects to escalation.
Connect the design to the situation
A $500 limit stated in the prompt still fails in about 0.5% of conversations.
Best answer: D. When a business rule needs guaranteed compliance, prompt instructions are not enough. A hook or gate in the harness intercepts the tool call and redirects to escalation regardless of what the model decides.
What each choice would do here
A · Why this does not meet the full requirement
Rewrite the rule in capital letters and repeat it at the end of the prompt
Emphasis in a prompt still leaves a failure rate.
Capital letters and repetition may reduce the failure rate a little, but the rule still depends on the model complying. A rule that must never break cannot rest on emphasis.
B · Why this does not meet the full requirement
Add few-shot examples of the agent refusing large refunds
Examples improve behavior but do not guarantee it.
Examples of refusals are useful guidance and may help, yet they remain guidance. The harness still executes whatever refund the model requests.
C · Why this does not meet the full requirement
Lower the temperature to make the agent follow the rule consistently
Temperature does not turn guidance into enforcement.
Temperature changes sampling variety, not whether a stated rule is enforced. The agent can still request a large refund at any temperature.
D · Why this meets the requirement
Add a hook or harness gate that blocks process_refund above $500 and redirects to escalate_to_human
Code blocks the call and routes it to a human every time.
A PreToolUse-style hook checks the amount before process_refund runs. Above $500 it blocks the call and redirects to escalate_to_human with the refund details in the packet.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
Refund gate before execution (harness code)
REFUND_LIMIT = 500
def pre_tool_use(tool_name, tool_input, case):
if tool_name == "process_refund" and tool_input["amount"] > REFUND_LIMIT:
return {
"decision": "block",
"redirect": "escalate_to_human",
"handoff": {
"customer_id": case["customer_id"],
"reason": "threshold_exceeded",
"proposed_refund": tool_input["amount"],
"steps_taken": case["steps_taken"],
},
}
return {"decision": "allow"}
The check runs on the tool input before execution, so the model’s request is only a proposal. Above the limit, nothing executes and the case goes to a human with the evidence.
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
How do you guarantee a refund limit is never exceeded?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Hooks — deterministic control Harness controls Hook Guardrail
Answer
**D.** When a business rule needs guaranteed compliance, prompt instructions are not enough. A hook or gate in the harness intercepts the tool call and redirects to escalation regardless of what the model decides.Q152. Human agents say escalations are useless: each arrives as "Customer needs help with refund." They cannot see the chat transcript. What should each escalation carry? A) A link to the raw conversation log B) The agent’s final apology message to the customer C) A structured summary: customer ID, issue, root cause found, actions taken and their results, amounts, recommended next action, and the escalation reason D) The customer’s sentiment score across the conversation
Understand Q152 · the situation and each part of the question
The real situation behind this question
The escalation path works mechanically, but the humans on the other side get almost nothing. They cannot see the chat, so they re-ask the customer every question. The question tests what a handoff must carry for a person who starts with no context, which is the difference between a transfer and a restart.
Read the question in parts
Part 1 · cannot see the chat transcript
The handoff is the only context the human will have.
Part 2 · "Customer needs help with refund"
A one-line summary omits identity, findings, actions, and the reason for escalating.
What you are being asked to decide
What makes a handoff useful to a human who cannot read the chat? Specify the structured contents of an escalation packet.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Handoff | The structured package a human receives: who, what, what was tried, and what is recommended. |
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| HITL | Human in the loop: an authorized person decides at a defined point before the run continues. |
What survives the handoff Study: escalation design Handoff Escalation
Understand Q152's answer · full reasoning and worked examples
Claude synthesized · the point, straight
The human starts blind, so the packet must be structured and standalone: who, issue, root cause, actions + results, amount, recommendation, reason.
Connect the design to the situation
Humans receive one-line escalations and must re-ask everything.
Best answer: C. Human agents who lack the transcript need a structured handoff: who, what, what was found, what was done, and what is recommended, so they can act without repeating the investigation.
What each choice would do here
A · Why this does not meet the full requirement
A link to the raw conversation log
The humans cannot open it, and a log is not a summary.
A log link does not help a human without access, and even with access, reading a long transcript is slower than reading five structured fields.
B · Why this does not meet the full requirement
The agent’s final apology message to the customer
An apology tells the human nothing about the case.
The apology is written for the customer and describes nothing about the case. The human still has to find out who the customer is and what happened.
C · Why this meets the requirement
A structured summary: customer ID, issue, root cause found, actions taken and their results, amounts, recommended next action, and the escalation reason
Structured fields let the human act without re-investigating.
Identity, issue, root cause, actions and results, amounts, recommendation, and reason together let the human pick up the case at once and avoid repeating completed steps.
D · Why this does not meet the full requirement
The customer’s sentiment score across the conversation
Sentiment does not tell the human what to do.
A sentiment score says how the customer felt, not what they need or what has been done. It adds nothing the human can act on.
Check your understanding · explain the design in your own words
What makes a handoff useful to a human who cannot read the chat?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
What survives the handoff Study: escalation design Handoff Escalation
Answer
**C.** Human agents who lack the transcript need a structured handoff: who, what, what was found, what was done, and what is recommended, so they can act without repeating the investigation.Q153. Sometimes a support session ends with a tool error or stop_reason: "max_tokens" mid-case. The customer is left with neither a resolution nor an escalation. What design fixes this?
A) Raise max_tokens so sessions are less likely to be cut off B) An orchestration-level safeguard: if the loop ends without a resolved status, the harness creates an escalation with the handoff packet C) Add a prompt instruction: "Always end with a resolution." D) Restart the whole conversation from the beginning
Understand Q153 · the situation and each part of the question
The real situation behind this question
The agent loop can end in several ways: a clean answer, a tool error, a truncation, or a turn limit. Some of those endings leave the case in limbo. The customer sees the conversation stop with nothing decided. The question tests where the guarantee lives that every session ends in either a resolution or a handoff to a human.
Read the question in parts
Part 1 · tool error or max_tokens mid-case
The loop can end for reasons unrelated to whether the customer’s issue was solved.
Part 2 · neither a resolution nor an escalation
The failure is a missing end state, which must be enforced outside the model.
What you are being asked to decide
How do you guarantee no case is silently abandoned? Put the end-state guarantee in the harness, not in the model.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Agent loop | The cycle of model call, tool execution, and result append that continues until the harness ends it. |
| Harness | The application code around the model call. It checks policy, runs tools, and enforces rules deterministically. |
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
Understand Q153's answer · full reasoning and worked examples
Claude synthesized · the point, straight
The end-state guarantee lives in orchestration: whatever stopped the loop, an unresolved case is escalated automatically with its packet.
Connect the design to the situation
Loops that end on errors or truncation leave customers without an outcome.
Best answer: B. Every session must end with a resolution or an escalation, however the loop terminates. That guarantee belongs to the orchestration layer, which checks the final status and escalates when the case is not resolved.
What each choice would do here
A · Why this does not meet the full requirement
Raise max_tokens so sessions are less likely to be cut off
Fewer truncations still leaves errors and other endings unhandled.
A larger budget reduces one cause but not tool errors, turn limits, or other failures. The guarantee must cover every way the loop can end.
B · Why this meets the requirement
An orchestration-level safeguard: if the loop ends without a resolved status, the harness creates an escalation with the handoff packet
The harness checks the final status and escalates if unresolved.
After the loop exits for any reason, the harness checks whether the case is resolved. If it is not, it builds the handoff from the saved state and escalates, so nobody is abandoned.
C · Why this does not meet the full requirement
Add a prompt instruction: "Always end with a resolution."
The model cannot act after the loop has already ended.
A prompt instruction depends on the model running to a clean finish. When the loop stops on an error or truncation, the model gets no further turn to follow it.
D · Why this does not meet the full requirement
Restart the whole conversation from the beginning
Restarting repeats work and can repeat the same failure.
Restarting discards progress, may repeat side effects, and may hit the same error. It also leaves the customer waiting without any human involvement.
Check your understanding · explain the design in your own words
How do you guarantee no case is silently abandoned?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Answer
**B.** Every session must end with a resolution or an escalation, however the loop terminates. That guarantee belongs to the orchestration layer, which checks the final status and escalates when the case is not resolved.Q154. Where should a support agent’s escalation criteria and their examples live so they shape every decision?
A) In the system prompt: explicit criteria plus two to four few-shot examples covering both sides of the boundary, with the reasoning for each B) Only in the escalate_to_human tool description, as "Use when needed" C) Appended to each user message by the frontend D) In a fine-tuned model trained on past escalations
Understand Q154 · the situation and each part of the question
The real situation behind this question
The team has written good escalation criteria and wants the agent to apply them consistently. The question is placement. Each option would get the text in front of the model somehow, but they differ in authority, consistency, and cost. The exam expects the standard place for standing behavior, with examples that demonstrate the hard cases.
Read the question in parts
Part 1 · shape every decision
The criteria must apply on every turn, which is the role of standing instructions.
Part 2 · criteria and their examples
Examples work best when they show the reasoning on both sides of the boundary.
What you are being asked to decide
Where do escalation rules go so they apply to every turn? Place criteria and examples in standing instructions.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| System prompt | The standing instructions for every turn: role, criteria, and examples that shape the agent’s decisions. |
| Few-shot | Worked examples in the prompt that show the model how to handle a class of cases, including the ambiguous ones. |
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
The prompt template Study: escalation design System prompt Few-shot
Understand Q154's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Criteria are standing policy: system prompt + 2–4 boundary examples with reasoning, not a vague tool description.
Connect the design to the situation
Four places the team could put the escalation rules.
Best answer: A. Escalation criteria are standing instructions, so they belong in the system prompt with a few targeted examples, including the ambiguous boundary cases, that show why each decision was made.
What each choice would do here
A · Why this meets the requirement
In the system prompt: explicit criteria plus two to four few-shot examples covering both sides of the boundary, with the reasoning for each
Standing criteria and boundary examples apply to every decision.
The system prompt holds the standing policy, and two to four examples covering explicit requests, frustration, and policy gaps show the model where the line is and why.
B · Why this does not meet the full requirement
Only in the escalate_to_human tool description, as "Use when needed"
A vague tool description gives no criteria.
A tool description helps the model choose among tools, but “use when needed” states no criteria. The model is left to guess the same boundary it was already getting wrong.
C · Why this does not meet the full requirement
Appended to each user message by the frontend
Criteria mixed into user input are untrusted and duplicated.
Injecting rules into user messages mixes policy with untrusted customer input and repeats it every turn. It is weaker and messier than a standing instruction.
D · Why this does not meet the full requirement
In a fine-tuned model trained on past escalations
Fine-tuning is out of scope and heavier than needed.
Fine-tuning is outside this exam’s scope and far heavier than writing clear criteria. It also makes the rules harder to inspect and change.
Check your understanding · explain the design in your own words
Where do escalation rules go so they apply to every turn?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
The prompt template Study: escalation design System prompt Few-shot
Answer
**A.** Escalation criteria are standing instructions, so they belong in the system prompt with a few targeted examples, including the ambiguous boundary cases, that show why each decision was made.Q155. The escalate_to_human tool needs a reason field that analytics can group, while still representing cases nobody anticipated. Which schema design fits?
A) A free-text reason string B) A required enum of exactly three values: customer_request, policy_gap, no_progress C) A boolean is_urgent D) An enum of the known triggers plus "other", with a nullable reason_detail string
Understand Q155 · the situation and each part of the question
The real situation behind this question
Operations wants to know why cases are escalated, so the reason must be structured. But no list of reasons is complete; new situations appear. The question combines escalation with schema design. It tests whether you can give analytics clean categories without forcing the model to mislabel a case that fits none of them.
Read the question in parts
Part 1 · analytics can group
The field needs fixed values, which points to an enum rather than free text.
Part 2 · cases nobody anticipated
The schema must allow an honest answer when no listed category fits.
What you are being asked to decide
How should the escalation reason be structured? Design an extensible enum that stays honest about unexpected cases.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| tool_use | The block in which the model requests a tool; the harness decides whether it actually runs. |
| Escalation | Handing the case to a human, with a reason and a structured summary, instead of continuing autonomously. |
| Handoff | The structured package a human receives: who, what, what was tried, and what is recommended. |
Schema details vs hallucination Study: escalation design tool_use Escalation
Understand Q155's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Enum of known triggers + "other" + nullable detail: groupable for analytics and honest when nothing fits.
Connect the design to the situation
Analytics wants to group reasons; reality includes cases nobody listed.
Best answer: D. An enum keeps the reason groupable, and an "other" value with a detail field represents unanticipated cases without forcing the model to pick a wrong category.
What each choice would do here
A · Why this does not meet the full requirement
A free-text reason string
Free text is hard to group reliably.
Free text captures everything but groups poorly: the same reason appears in many wordings, and analytics must interpret each one.
B · Why this does not meet the full requirement
A required enum of exactly three values: customer_request, policy_gap, no_progress
A closed enum forces unexpected cases into wrong buckets.
A closed three-value enum forces every unanticipated case into one of three labels. The data looks clean, but some of it is wrong.
C · Why this does not meet the full requirement
A boolean is_urgent
A boolean loses the reason entirely.
Urgency is a different question from reason. A boolean discards why the case was escalated, which is what the analytics team asked for.
D · Why this meets the requirement
An enum of the known triggers plus "other", with a nullable reason_detail string
Known categories group cleanly; other + detail captures the rest.
Known triggers group cleanly, and "other" with a nullable detail string lets the model describe a new situation truthfully. New common values can be promoted into the enum later.
Walk through complete payloads or code · every step explained
Illustrative examples, not recorded live calls. Check each block's direction and endpoint: API requests, API responses, MCP messages, and configuration files are different contracts.
escalate_to_human input schema
{
"name": "escalate_to_human",
"input_schema": {
"type": "object",
"properties": {
"customer_id": {
"type": [
"string",
"null"
]
},
"reason": {
"type": "string",
"enum": [
"customer_request",
"policy_gap",
"no_progress",
"threshold_exceeded",
"other"
]
},
"reason_detail": {
"type": [
"string",
"null"
]
},
"steps_taken": {
"type": "array",
"items": {
"type": "string"
}
},
"recommended_action": {
"type": "string"
}
},
"required": [
"reason",
"steps_taken",
"recommended_action"
]
}
}customer_id is nullable because an immediate escalation may happen before identification, and reason_detail carries the explanation whenever reason is "other".
Which omitted settings use defaults or leave features unconfigured?
Check your understanding · explain the design in your own words
How should the escalation reason be structured?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Schema details vs hallucination Study: escalation design tool_use Escalation
Answer
**D.** An enum keeps the reason groupable, and an "other" value with a detail field represents unanticipated cases without forcing the model to pick a wrong category.Q156. process_refund must never run until get_customer has returned a verified customer ID in the current session. Which design guarantees this?
A) A system-prompt instruction: "Always verify the customer before refunding." B) Few-shot examples showing verification happening before every refund C) A programmatic prerequisite in the harness that blocks process_refund until session state holds a verified customer ID D) Asking the model to confirm verification in its reasoning before calling the tool
Understand Q156 · the situation and each part of the question
The real situation behind this question
Identity verification before a financial action is a classic must-hold rule. The agent usually verifies first, but “usually” is not acceptable when money moves. The question tests whether you place the ordering guarantee where it cannot be skipped: in code that checks session state before the refund tool is allowed to execute.
Read the question in parts
Part 1 · must never run until
The requirement is absolute, which calls for deterministic enforcement.
Part 2 · verified customer ID in the current session
The prerequisite is a fact the harness can check in state, not a claim the model makes.
What you are being asked to decide
How do you guarantee one tool runs only after another succeeded? Enforce workflow ordering in code rather than in instructions.
Keep all the stated requirements in view. An option may be useful elsewhere while addressing only part of this situation.
Words and related concepts · open glossary explanations
| Term | Meaning here |
|---|---|
| Guardrail | A control that keeps the agent inside policy, strongest when enforced in code rather than requested in the prompt. |
| Harness | The application code around the model call. It checks policy, runs tools, and enforces rules deterministically. |
| Hook | Code that runs at a fixed point, such as before a tool call, and can block or redirect it regardless of the model. |
Harness controls Hooks — deterministic control Guardrail Harness
Understand Q156's answer · full reasoning and worked examples
Claude synthesized · the point, straight
Ordering that must hold → a programmatic prerequisite: the harness blocks process_refund until state holds a verified customer ID.
Connect the design to the situation
Refunds must follow identity verification in every session.
Best answer: C. When deterministic compliance is required, prompt guidance has a non-zero failure rate. A programmatic prerequisite blocks the downstream tool until the verification step has actually completed.
What each choice would do here
A · Why this does not meet the full requirement
A system-prompt instruction: "Always verify the customer before refunding."
An instruction is guidance with a failure rate.
The instruction states the rule clearly, but compliance still depends on the model following it every time. Financial operations need a guarantee rather than a strong suggestion.
B · Why this does not meet the full requirement
Few-shot examples showing verification happening before every refund
Examples improve compliance but do not guarantee it.
Examples of the right order make it more likely, not certain. The harness would still run a refund the model requested without verification.
C · Why this meets the requirement
A programmatic prerequisite in the harness that blocks process_refund until session state holds a verified customer ID
The harness blocks the call until the prerequisite is met.
The harness keeps verified_customer_id in session state and refuses process_refund until it is set by a successful get_customer call. The ordering is enforced whatever the model does.
D · Why this does not meet the full requirement
Asking the model to confirm verification in its reasoning before calling the tool
The model’s own confirmation is not a verification.
The model writing “verified” in its reasoning is not the same as a verification result. The check must read real tool output from state, not the model’s claim.
Check your understanding · explain the design in your own words
How do you guarantee one tool runs only after another succeeded?
Describe the situation, identify the controlling requirement, and explain what the chosen design does before and after the critical step. Then choose one alternative and explain which part of this situation it fails to address. Use the example rather than memorizing the answer letter.
Study: escalation design Scenario S1 · customer support
Harness controls Hooks — deterministic control Guardrail Harness