CCDV-F practice › Prompt & Context Engineering · Question 54 of 92
Prompt & Context Engineering
An agent's search tool returns 40 results; the agent needed 3. All 40 stay in the conversation history for the rest of the session. What's the cheapest fix?
Show answer and explanation
Answer: B — Tool output pruning — drop what isn't needed before it enters history
Pruning tool output at the source is the cheapest of the three context remedies — do it before reaching for compaction (which is for when history itself is the bulk) or isolation.
Keep going
More Prompt & Context Engineering questions
- A constraint applies only when one specific tool runs — not on every turn. Where should…
- A summarization prompt says 'don't be too long, don't leave out anything important…
- An instruction reads: 'Don't be too verbose, don't omit key findings, avoid vagueness.'…
- A rule applies only when one particular tool runs. Where should it live?
- Model output occasionally arrives as valid JSON wrapped in a sentence of prose. What…