Module 5 practice questions: Context and reliability
15 questions · Context Management & Reliability
Practice questions written by Sanjay Shah. Not exam questions, not affiliated with or endorsed by Anthropic.
Question 1
A support agent's conversations often run past 60 turns. Older turns are summarized automatically. Customers complain that late in the chat the agent asks again for the order number and quotes the wrong refund amount. What is the best fix?
- A) Keep a small "case facts" block (order number, amounts, dates, decisions), updated by code from tool results and included in every request, so summaries never have to carry exact values.
- B) Turn off summarization and keep the full history.
- C) Tell the summarizer to "keep all important numbers".
- D) Ask the customer to repeat key details every 20 turns.
Show answer
Answer: A
- A: Right: summaries are good at the story and bad at exact values. Facts kept by code, from tool results, survive any amount of summarizing.
- B: Wrong: unbounded history grows cost and eventually hits the limit.
- C: Wrong: a request to the summarizer, not a guarantee.
- D: Wrong: it shifts the system's job onto the customer.
Question 2
An incident coordinator gets this from its log-search subagent:
status: partial,error: timeout,retryable: true,tried: errors in api-* from 09:00 to 11:00,partial_results: 3 lines. What is the best next step?- A) Treat the three lines as the full picture and write the report.
- B) Drop the log source and write the report from metrics alone, without mentioning logs.
- C) Retry once with a narrower query (for example, a shorter time window); if it still fails, put "log search incomplete for 09:00 to 11:00" in the report and flag the gap to the incident lead.
- D) Retry the same query in a loop until it succeeds.
Show answer
Answer: C
- A: Wrong:
partialmeans it isn't the full picture. - B: Wrong: silently dropping a source hides a gap the reader needs to know about.
- C: Right: the subagent reported honestly; now the coordinator acts on it. One narrower retry is reasonable; after that, the gap goes into the report and to a person.
- D: Wrong: unbounded retries burn budget and may never succeed.
Question 3
A team says: "Our model has a 1M-token context window, so we don't need to think about context size; we'll just pass every tool result in full." What is the best response?
- A) Agree; 1M tokens is enough for any task.
- B) Agree, but turn on prompt caching for the tool results.
- C) Disagree only for batch jobs.
- D) Disagree: cost and latency grow with every token on every turn, unrelated material dilutes attention, and runs can still hit the limit; trim at the tool, measure tokens, and keep exploration in subagents.
Show answer
Answer: D
- A: Wrong: long runs can still exceed it, and cost and latency matter long before.
- B: Wrong: fresh tool results change every turn, so they're poor cache candidates; caching is for stable prefixes.
- C: Wrong: the same costs apply to live systems, often more painfully.
- D: Right: window size changes the limit, not the economics. Every token is paid for on every turn, and irrelevant material competes for attention.
Question 4
A team enabled prompt caching on a long system prompt, but the cache almost never hits. The system prompt starts with "Current time: {now}" and then has 6,000 tokens of fixed instructions. What is the most likely fix?
- A) Increase the cache lifetime to 1 hour.
- B) Move the changing parts (the time, user details, fresh tool results) after the stable prefix, because any change early in the prompt order breaks the cache for everything after it.
- C) Add more cache breakpoints, the more the better.
- D) Shorten the fixed instructions so the cache warms faster.
Show answer
Answer: B
- A: Wrong: lifetime doesn't help if the prefix is different on every request.
- B: Right: the cache key follows the prompt order (tools, system, messages). A value that changes at the very start makes every request a cache miss.
- C: Wrong: there's a maximum of 4 breakpoints, and they don't fix a changing prefix.
- D: Wrong: the length isn't the problem; the changing timestamp is.
Question 5
A product owner believes that turning on prompt caching means "Claude will remember our customers between sessions". What is the accurate correction?
- A) Caching reuses a processed prompt prefix to cut cost and latency for a short time; it doesn't store facts or change answers. For memory across sessions, keep data in your own store (or a memory tool your code implements) and add it to the prompt.
- B) Caching remembers customers, but only for 1 hour.
- C) Caching remembers customers only on cloud platforms.
- D) Caching works as memory if you use 4 breakpoints.
Show answer
Answer: A
- A: Right: caching reuses processing of an identical prefix for a short time. It's a cost and speed feature, not memory. Memory is your data, put into the prompt by your code.
- B: Wrong: even the 1-hour cache isn't memory of facts.
- C: Wrong: it isn't memory anywhere.
- D: Wrong: breakpoints mark cache boundaries; they don't create memory.
Question 6
A due-diligence agent reads 45 long documents directly in its main conversation. Halfway through, answers about early documents get vague, and each turn is slow and expensive. What is the best redesign?
- A) Ask the agent to re-read early documents near the end.
- B) Put all 45 documents into the system prompt and cache them.
- C) Split the documents across several separate conversations and merge the final texts by hand.
- D) Give document groups to subagents that each return a fixed-shape summary with quotes and page references; the coordinator holds only the summaries and the case facts.
Show answer
Answer: D
- A: Wrong: re-reading adds even more to the same overloaded context.
- B: Wrong: caching cuts cost but doesn't fix attention or size.
- C: Wrong: merging by hand loses the cross-document reasoning and the provenance.
- D: Right: subagents read the bulk in their own contexts and hand back compact, sourced summaries. The coordinator's context stays small and focused.
Question 7
A batch job gets HTTP 429 errors with a
retry-afterheader. The job's own retry loop retries immediately, many times per second, and errors get worse. Which two changes are best? (Choose TWO.)- A) Switch to a different API key each time.
- B) Remove retries and fail the job.
- C) Retry immediately, but only ten times.
- D) Honour
retry-after, and back off exponentially with jitter and a retry cap. - E) Since nobody is waiting on this job, move it to the Message Batches API.
Show answer
Answer: D, E
- A: Wrong: dodging limits with extra keys is the wrong fix and may break terms of use.
- B: Wrong: rate limits are often temporary; a good retry policy handles them.
- C: Wrong: ten immediate retries still hammer the API.
- D: Right:
retry-aftersays when to retry, and capped backoff with jitter avoids a retry storm. - E: Right: batch suits work nobody waits on, at lower cost, without live request pressure.
Question 8
Overnight, a job kept getting 429 errors with no
retry-afterheader. Its backoff retried for six hours and finished nothing. The docs describe this case as a spending-cap limit. What should the design add?- A) A longer backoff ceiling.
- B) Detection and alerting: a 429 with no
retry-after(a spend cap) needs a person, because it keeps failing until access resumes; stop retrying, and mark the work as pending. - C) A fallback model on the same account.
- D) More parallel workers to get through faster.
Show answer
Answer: B
- A: Wrong: a longer ceiling just wastes more hours.
- B: Right: a spend-cap 429 has no
retry-afterand keeps failing until access resumes. Backoff can't fix a billing limit, so a person must be told. - C: Wrong: the cap applies to the account, not to one model.
- D: Wrong: more workers mean more failures.
Question 9
When the main model is unavailable, a pipeline silently switches to a smaller fallback model for every step, including the step that decides refund eligibility. Refund decisions changed noticeably during an outage. What is the best policy?
- A) Use fallback models only for non-critical steps (labels, summaries); for critical decisions, pause and queue until the evaluated model is back, and record which model produced each output.
- B) Never use fallback models anywhere.
- C) Always use the smallest model, so there's nothing to fall back from.
- D) Use the fallback for critical steps, but ask it to be extra careful.
Show answer
Answer: A
- A: Right: a fallback keeps low-stakes steps moving. For critical decisions, an unevaluated model is a silent change in behaviour; pausing is safer. Recording the model makes outputs auditable.
- B: Wrong: it gives up resilience where it's safe to have it.
- C: Wrong: quality for critical steps would suffer all the time.
- D: Wrong: "be careful" doesn't make an unevaluated model evaluated.
Question 10
An incident report says "the incident began around 10:00". The deploy log shows the change went out at 10:02, and the status monitor shows errors starting at 09:55. What should the report have said?
- A) "Around 10:00", because it averages the two sources.
- B) 10:02, because deploy logs are more reliable.
- C) Both times with their sources, marked as a conflict to resolve, because the order of events matters for the cause.
- D) Nothing about the time, since the sources disagree.
Show answer
Answer: C
- A: Wrong: averaging erases exactly the fact that matters.
- B: Wrong: choosing one source hides the disagreement.
- C: Right: conflicts are information. Errors before the deploy may mean the deploy didn't cause the incident. Show both, with sources, and mark the conflict.
- D: Wrong: leaving it out hides a key unresolved question.
Question 11
A research agent's reports mix things it read in sources with conclusions it drew, in the same sentences, with no citations. Reviewers can't tell what to verify. Which two changes are best? (Choose TWO.)
- A) Require every claim to carry a source ID and a quote or query result.
- B) Ask the agent to write more confidently.
- C) Add a confidence score to each paragraph.
- D) Split the report into "Observed" and "Inferred" sections.
- E) Shorten the reports.
Show answer
Answer: A, D
- A: Right: sources and quotes make each claim checkable.
- B: Wrong: confidence without evidence makes things worse.
- C: Wrong: self-reported confidence isn't calibrated and isn't evidence.
- D: Right: separating what was seen from what was concluded tells reviewers which parts need judgment.
- E: Wrong: shorter isn't more checkable.
Question 12
A system escalates conversations to a human when the customer "sounds angry" or when the model writes "I'm not sure". A calm customer reporting that their payroll data was sent to the wrong company was handled automatically. Which two changes are best? (Choose TWO.)
- A) Lower the anger threshold.
- B) Ask the model to rate how worried it is.
- C) Escalate on checkable rules (a data-exposure category, a policy-defined amount, the user asked for a human, an out-of-scope action, an unresolved gap), whatever the tone.
- D) Escalate every conversation.
- E) Send a random sample of the automatically handled conversations to reviewers.
Show answer
Answer: C, E
- A: Wrong: tone is still the trigger.
- B: Wrong: the model's self-rated worry isn't a reliable signal.
- C: Right: severity is about what happened, not how the customer sounds; rules catch calm-but-critical cases.
- D: Wrong: it overloads people, and the important cases get lost in the queue.
- E: Right: sampling finds the failures the rules didn't anticipate.
Question 13
Escalation rules work well, and the auto lane handles 92% of cases. Nobody looks at auto-lane outputs unless a customer complains. What should be added?
- A) A random sample of auto-lane outputs reviewed by people (for example 5%), with findings fed into the evaluation set and prompt or tool fixes.
- B) Nothing; complaints are a good enough signal.
- C) Review 100% of the auto lane.
- D) A second model that re-checks every auto-lane output.
Show answer
Answer: A
- A: Right: sampling finds the failures you didn't predict, and the findings make the system better through evals and fixes.
- B: Wrong: complaints catch a fraction of errors, late.
- C: Wrong: full review defeats the purpose of the auto lane.
- D: Wrong: a second model is a useful extra check in some cases, but not a replacement for human sampling, and it doubles the cost.
Question 14
A three-hour analysis agent crashed at hour two. Restarting meant starting from zero, because its progress lived only in the conversation. What is the best design change?
- A) Make the agent faster so it finishes before crashes.
- B) Increase the context window.
- C) Have the agent write progress, decisions and open questions to a notes file or store outside the context at each step, and design steps so a restart reads the notes and resumes.
- D) Run two copies of the agent and keep whichever finishes.
Show answer
Answer: C
- A: Wrong: crashes don't wait for a fast agent.
- B: Wrong: window size doesn't survive a crash.
- C: Right: state that lives only in the context dies with the process. External notes and resumable steps make long runs survive crashes and context resets.
- D: Wrong: it doubles the cost and both copies can fail.
Question 15
A team on Amazon Bedrock designs their agent around a Claude API feature that, on 2026-11-25, the docs listed for some platforms but not Bedrock. What is the best advice?
- A) Assume all platforms get every feature at the same time.
- B) Move the whole company to a different cloud.
- C) Drop the feature and the agent.
- D) Check feature availability per platform before designing around it; if it isn't available, implement the same capability in your own code (for example, your own MCP client or the Agent SDK) or choose a platform that supports it, with data residency and procurement in mind.
Show answer
Answer: D
- A: Wrong: on 2026-11-25 the docs showed differences.
- B: Wrong: platform choice usually rests on residency, procurement and existing infrastructure, not one feature.
- C: Wrong: the capability can usually be built another way.
- D: Right: features can differ by platform. Check first, then either build the capability yourself or pick the platform that has it, weighing the reasons the company chose its platform.