CCAR-F practice questions: Context management.

33 original questions on Context management, which carries 15% of the Claude Certified Architect – Foundations exam per the published guide. Study notes first, then the questions with an explanation for each. When this domain feels solid, take the timed CCAR-F practice exam and check the domain breakdown.

What to know about Context management

  • The context window is a budget: system prompt, conversation, tool definitions, tool results, and the response all share it.
  • Context rot: quality falls as the window fills with stale material. Compaction, summarization, and clearing exist to fight it.
  • Load context when it is needed rather than up front. Give the agent lightweight identifiers (file paths, record ids, URLs) and let it fetch what it needs.
  • Structured note-taking and memory files as persistence across sessions; subagents as a way to isolate context for a subtask and return only the conclusion.
  • Prompt caching: what makes a prefix cacheable, why stable system prompts and tool definitions go first, and the cost effect.
  • Retrieval versus stuffing: when to search and load a slice versus pasting a whole corpus, and how chunking and citations interact.

Context management questions

Context management

You want prompt caching to work across many requests that share a large system prompt and tool set. How should the prompt be ordered?

Show answer

Answer: Stable content first (system prompt, tool definitions), a cache breakpoint after it, volatile content last. Caching matches prefixes. Stable material goes first so the cached prefix is reused; anything that changes per request goes after it. A breakpoint at the very end after volatile content caches a prefix that no other request will match.

Context management

A coordinator delegates research to a subagent. What should the coordinator pass, and what should it get back?

Show answer

Answer: A complete, self-contained brief with everything the subagent needs, and only the conclusion back. Subagents start with a clean context. Give them a complete brief and take back the result, not the working, to keep the coordinator's window lean. Passing the whole conversation both ways defeats the purpose of delegation; a pointer to a memory file leaves the subagent without the task.

Context management

What is 'context rot'?

Show answer

Answer: The decline in response quality as the window fills with stale or irrelevant content. Recognizing context rot is why compaction and clearing exist. It is about what is in the window now, not a caching fault or model updates; compaction is the cure, not the cause.

Context management

An agent needs occasional access to a 500-page manual. Best approach?

Show answer

Answer: Index it and retrieve relevant sections on demand, giving the model identifiers it can fetch. Just-in-time retrieval keeps the window lean and accurate. Caching makes the full manual cheaper but not free, and 500 pages of mostly irrelevant text still degrades attention; a one-time summary loses the details the occasional question needs.

Context management

Which content should sit at the start of the prompt for prompt caching to help?

Show answer

Answer: The stable system prompt and tool definitions. Cache hits depend on a stable prefix. Tool results and the latest question change every turn, so placing them first breaks the prefix for every request.

Context management

A long-running agent needs to remember decisions across sessions. Which mechanism fits?

Show answer

Answer: A memory file or structured notes the agent reads at start and updates as it works. Persistence across sessions needs an explicit store the agent maintains. Caching a transcript keeps it cheap to send but does not curate it, and the cache expires; a system prompt edited by hand is memory the agent cannot update.

Context management

Why hand a subagent a task instead of doing everything in one context?

Show answer

Answer: The subagent's working context stays separate and only its conclusion returns, preserving the main window. Context isolation is the main benefit of delegation. Subagents do not share the main context, which is the point; the model and tool set can be configured but are not why you delegate.

Context management

A prompt includes the full history of a two-hour support chat. Most of it is resolved. What should you do?

Show answer

Answer: Summarize the resolved parts and keep the open issue verbatim. Summarize the settled, keep the live. Keeping everything wastes the window on closed threads; a fixed tail of twenty messages may cut through the middle of the open issue.

Context management

Which is a symptom that a context window is being wasted?

Show answer

Answer: Large tool results the model never uses and repeated boilerplate in every turn. Unused bulk and repetition are the usual waste. Cache hits and fast responses are signs of a healthy prompt; empty headroom is not waste.

Context management

What is the trade-off of aggressive summarization in an agent loop?

Show answer

Answer: Headroom and speed at the cost of detail, so keep exact values and identifiers later steps need. Summaries lose detail; preserve what downstream steps depend on. Later turns are usually faster with a shorter context, not slower, and tool results can be summarized like anything else.

Context management

Which information should be kept verbatim through compaction?

Show answer

Answer: Identifiers, exact values, and the current task definition. Precision-critical items survive; chatter does not. The earliest turns matter only for the task definition, which is what is kept; resolved errors are exactly what a summary can compress.

Context management

A team wants to cut cost on a chat product with a long, stable system prompt and many short user turns. First lever?

Show answer

Answer: Prompt caching on the system prompt and tool definitions. Caching the stable prefix is the cheapest win for that shape. Trimming the system prompt may cost quality; batching turns breaks the chat experience; a smaller model changes the product.

Context management

What does 'give the agent lightweight identifiers' mean in context engineering?

Show answer

Answer: Pass file paths, record ids, and URLs so the agent can fetch details when needed instead of front-loading everything. Identifiers enable on-demand retrieval. Short names and tool aliases save a handful of tokens; anonymization is a privacy measure, not a context strategy.

Context management

How should an architect decide the context budget for a step in a workflow?

Show answer

Answer: From what the step must read and produce, leaving headroom for tool results and reasoning. Budget from the step's real needs, with headroom. An even split starves the heavy steps and pads the light ones; the maximum on every step invites bloat and cost.

Context management

A prompt is 150k tokens and quality is uneven. What is the first question to ask?

Show answer

Answer: How much of that context the task needs, and whether retrieval or summarization could replace the bulk. Budget the context from what the task needs; retrieval or summarization usually replaces the bulk. A larger window carries the same irrelevant material, and max_tokens affects output, not input.

Context management

What goes in a memory file that an agent maintains across sessions?

Show answer

Answer: Decisions, open items, and pointers to sources, kept short and current. Durable, compact state. Transcripts and tool results bloat the file, and credentials belong in secure configuration.

Context management

Which practice supports prompt caching across many users of the same app?

Show answer

Answer: A shared stable prefix, with user-specific content after the cache breakpoint. Shared prefix first, user content after. Putting the profile first makes every user's prefix different, so nothing is shared.

Context management

How should long tool outputs be handled in an agent loop?

Show answer

Answer: Truncated or summarized to the essentials, keeping identifiers so details can be re-fetched. Keep the essentials and the pointers. Full outputs crowd out later reasoning, and deleting them outright loses details a later step may need.

Context management

What is a reasonable trigger for compaction in a long session?

Show answer

Answer: Approaching the context budget or finishing a subtask. Compact at natural boundaries or near limits. Compacting every message loses detail constantly for no benefit.

Context management

Why can a smaller, curated context beat a larger one?

Show answer

Answer: Less irrelevant material means better attention to what matters, alongside lower cost. Relevance beats volume: irrelevant material competes for attention. Cost is a bonus, not the only difference.

Context management

An agent must reference a style guide on every task. Where does it belong?

Show answer

Answer: In the stable prefix so it caches, or loaded once per session. Stable reference content lives in the cached prefix. Pasting it into each message duplicates it and defeats caching.

Context management

What should be true of the summary you carry forward after compaction?

Show answer

Answer: It preserves task definition, decisions, exact values, and next steps. Preserve state, drop chatter. The system prompt persists on its own, and a one-line goal loses the decisions and values later steps need.

Context management

Which is a symptom of context overflow rather than a bad prompt?

Show answer

Answer: Late-conversation instructions ignored and earlier details contradicted. Overflow shows as lost or contradicted details. Asking for missing information is a sign of too little context, and slower responses are a cost symptom, not a quality one.

Context management

How do subagents relate to context budgets?

Show answer

Answer: Each has its own budget, so heavy subtasks do not consume the coordinator's window. Separate budgets per subagent; only the returned summary lands in the coordinator's window.

Context management

An agent's context contains three copies of the same document from repeated tool calls. What is the fix?

Show answer

Answer: Deduplicate tool results and cache the document by identifier so it loads once. Deduplicate and cache. Asking the model to ignore copies still pays for them, and compacting every call loses detail.

Context management

What is the value of a 'scratchpad' or notes file for a long task?

Show answer

Answer: Durable working memory outside the window, so progress survives compaction and restarts. External working memory that survives compaction. Notes do not stop the window from growing; they make compaction safe.

Context management

Which order helps prompt caching for a multi-tenant assistant with shared instructions?

Show answer

Answer: Shared instructions and tools first, tenant data after the breakpoint. Shared prefix, tenant suffix. Tenant data first makes the prefix unique per tenant, so nothing is shared.

Context management

A workflow step needs only two fields from a large upstream result. Best practice?

Show answer

Answer: Extract the two fields and pass only those, keeping an identifier to fetch more if needed. Pass what the step needs plus a pointer. A prose summary may drop the exact values the step depends on.

Context management

What does compaction risk if done carelessly?

Show answer

Answer: Dropping exact values, identifiers, or the current task definition that later steps need. Preserve precision-critical state. Cache misses are a real but minor cost next to losing the task definition.

Context management

An agent must consult a policy document on every decision. Which approach balances cost and accuracy?

Show answer

Answer: Keep it in the cached prefix, or retrieve the relevant section per decision. Cached prefix or targeted retrieval. A one-time summary loses the detail decisions depend on, and pasting per turn pays full price every time.

Context management

Which is a symptom of too little context rather than too much?

Show answer

Answer: The model asks for information it should have, or guesses at details that were never provided. Missing inputs show as guessing or asking. Contradictions late in a conversation are the overflow symptom.

Context management

How should you size retrieval chunks for a technical manual?

Show answer

Answer: Large enough to hold one complete idea, like a procedure or section, and small enough to keep only relevant material in context. Complete ideas, minimal noise. Single sentences lose the procedure they belong to, and chapters carry mostly irrelevant material.

Context management

A coordinator agent's window is filling with subagent chatter. What is the structural fix?

Show answer

Answer: Have subagents return only structured results and keep their transcripts out of the coordinator. Return results, not transcripts. Compacting after the fact pays for the chatter first; fewer subagents reduces capability rather than fixing the leak.

Next

Other CCAR-F domains

FAQ

How much of the CCAR-F exam is context management?

15% of the marks, per the published CCAR-F exam guide. The full domain list with weights is on the CCAR-F exam page.

Are these real CCAR-F exam questions?

No. They are 33 original scenario questions written from the blueprint for this domain. Reproducing exam content would violate the candidate agreement.

How should I study context management for CCAR-F?

Read the domain notes on this page, answer the questions with explanations hidden, then take the timed CCAR-F practice exam and check the per-domain breakdown for this domain.

Who wrote this

Matei Olaru

Matei Olaru

CEO, Your AI Department

Former public-company CEO, corporate attorney, and World Bank consultant. Runs the YAID Network and the partner relationship with Anthropic.

Michael Greenberg

Michael Greenberg

AI Product Lead, Your AI Department

AI at Google, Meta, and Samsung. Six patents. Leads member support and the certification prep guidance.

Claude Partner NetworkYour AI Department is a registered Claude Partner Network company. Our members sit these exams under our partner standing. Facts on this page were last checked on October 15, 2026.