2.4 Optimizing Context Windows & Token Usage
Claude Certified Architect – Professional (CCAR-P) exam practice questions · 10 flashcards
Question
What consumes the context window?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 2.4 Optimizing Context Windows & Token Usage practice questions and answers
- What consumes the context window?System prompt, tool definitions, conversation history, retrieved content and output.
- How do you reduce token usage?Retrieve only relevant content, trim history, prune tool outputs and use concise formats.
- Why is more context not always better?Irrelevant content adds cost, latency and can degrade quality.
- What is compaction?Summarizing earlier context to stay within limits.
- What is context rot or degradation?Quality drops as long contexts accumulate noise.
- How do you prioritize context?Put critical instructions and key facts where they're clearly visible; drop low-value content.
- Why truncate the policy document is a bad fix for cost?It removes required information; cache it instead.
- How do you track token usage?Log usage per request and aggregate by feature/user.
- How does output length affect cost?Output tokens are pricier; request concise outputs and set max_tokens.
- How do subagents help token management?They keep verbose work out of the main context.