CCAR-P · Domain 2: Claude Models, Prompting, and Context Engineering · 13% of the exam
Task 2.6: Reasoning Effort and Context Lifecycle
Setting reasoning effort and choosing context editing, the memory tool or compaction so a long-running agent keeps performing for the whole session within its latency and accuracy needs.
Study it
Reasoning effort and the context lifecycle: context editing, the memory tool and compaction
Try each one before opening the answer. Every option is explained, with the Anthropic documentation page that proves it.
Question 1 · choose 1
A research harness runs a lead agent on Claude Opus 5.5 that delegates to several subagents. Runs take about 40 minutes; the business needs results in about 20 minutes with answer quality close to today's, and a run must never exceed 30 minutes. The harness controls every message it sends back to the model. How should the architect allocate the agents' effort against this requirement?
AAppend the elapsed time against a budget set somewhat above 20 minutes to each message, and keep the harness's own 30-minute timeout
BLower the effort setting of the lead agent and the subagents so that each of them does less work and the run finishes sooner
CAppend the elapsed time against a 30-minute budget to each message and rely on the budget to end the run at that limit
DSet the budget to exactly 20 minutes and drop the timeout, since the model finishes inside any budget it is given
Show the answer and why
AAppend the elapsed time against a budget set somewhat above 20 minutes to each message, and keep the harness's own 30-minute timeout
Correct
The model paces its work to a stated budget, mostly by keeping more agents working in parallel, but the budget is advisory.
BLower the effort setting of the lead agent and the subagents so that each of them does less work and the run finishes sooner
Incorrect
Lowering effort reduces the work itself; the guidance contrasts it with a time budget, which keeps quality while finishing sooner.
CAppend the elapsed time against a 30-minute budget to each message and rely on the budget to end the run at that limit
Incorrect
The budget is advisory and nothing stops the model at the limit, so a hard stop needs the harness's own timeout.
DSet the budget to exactly 20 minutes and drop the timeout, since the model finishes inside any budget it is given
Incorrect
The model can finish well before the budget, so set it somewhat above the target, and keep a timeout for the hard stop.
Claude Opus 5.5 is highly responsive to elapsed-time information. A harness can add a short line such as "elapsed 340s / 1200s" to each message; the model paces its work to finish inside the budget and can finish well before it, so set the budget somewhat above the time you want. A tighter budget differs from lower effort: lower effort reduces the work, while a budget mostly keeps more agents working in parallel. The budget is advisory, so keep your own timeout for a hard stop.
An architect designs the context lifecycle of two long-running agents built on the Messages API. The migration agent runs on Claude Sonnet 5 and makes many tool calls per session; the research agent runs on Claude Opus 5.5. Both send the memory tool in tools, and a handler on the team's servers maps /memories onto a store for each agent. Which TWO statements can the design rely on? (Choose TWO.)
AThe migration agent gets its remaining context capacity from the API after each tool call, with nothing to enable
BThe research agent gets the same remaining-capacity updates after each tool call, so it can pace itself against the space left
CMemory written in one conversation is kept by Anthropic for the workspace, so a later conversation can continue from it with any handler
DEvery file under /memories is loaded into each request's context automatically, so the context grows with each file an agent writes
ENeither system prompt needs its own instruction to check memory first, since the API adds one when the memory tool is present
Show the answer and why
AThe migration agent gets its remaining context capacity from the API after each tool call, with nothing to enable
Correct
Claude Sonnet 5 has context awareness: the API gives it its token budget and, after each tool call, the capacity that remains.
BThe research agent gets the same remaining-capacity updates after each tool call, so it can pace itself against the space left
Incorrect
Claude Opus 4.7 and later Opus models don't receive these injected updates.
CMemory written in one conversation is kept by Anthropic for the workspace, so a later conversation can continue from it with any handler
Incorrect
Memory lives entirely in your application; a later conversation continues only when your handler serves the same store.
DEvery file under /memories is loaded into each request's context automatically, so the context grows with each file an agent writes
Incorrect
Claude reads memory files back on demand with tool calls, which keeps the active context focused on the current task.
ENeither system prompt needs its own instruction to check memory first, since the API adds one when the memory tool is present
Correct
With the memory tool in tools, the API adds an instruction to view the memory directory before doing anything else.
Context awareness is automatic on the models that have it, such as Claude Sonnet 5: the API states the model's token budget in the system prompt and reports the remaining capacity after each tool call. Claude Opus 4.7 and later Opus models don't receive these tags. The memory tool supports just-in-time retrieval: Claude checks its memory directory before starting a task and reads files back on demand, and when the tool is present the API adds an instruction to view the memory directory first and record progress, because the context window might be reset. Memory operations run in your application against storage you control.
An agent runs coding and agentic tasks that last several hours each and consume several million tokens per task. On a model that supports every effort level, which level does Anthropic's effort documentation describe for this kind of work?
Axhigh, described for long-running agentic and coding tasks over 30 minutes
Blow, described as the most efficient level for long-running agentic work
Cmedium, described as the level that gives the deepest reasoning for long tasks
Dmax, described as the starting point for every long-running agent workload
Show the answer and why
Axhigh, described for long-running agentic and coding tasks over 30 minutes
Correct
The effort table gives xhigh this typical use case.
Blow, described as the most efficient level for long-running agentic work
Incorrect
low suits simpler tasks that need the best speed and lowest cost, such as subagents.
Cmedium, described as the level that gives the deepest reasoning for long tasks
Incorrect
medium is a balanced approach with moderate token savings.
Dmax, described as the starting point for every long-running agent workload
Incorrect
The guidance reserves max for measuring the ceiling and rare tasks where time and tokens don't matter.
The effort documentation's table describes xhigh as extended capability for long-horizon work, with long-running agentic and coding tasks over 30 minutes and token budgets in the millions as its typical use. low suits simple, speed-sensitive tasks such as subagents, and max is reserved for tasks where time and tokens don't matter.