D5: Token Budgeting & Cost Management
Claude Certified Developer – Foundations exam practice questions · 10 flashcards
Question
How do you track token usage?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Token Budgeting & Cost Management practice questions and answers
- How do you track token usage?Read the usage object in every response and aggregate it in logs/dashboards.
- What is a token budget?A planned limit of tokens per request, user or task to control cost.
- How do you model application cost?Requests × (input tokens × input price + output tokens × output price), adjusted for caching and batching.
- Which tokens are usually more expensive?Output tokens cost more than input tokens.
- How can you reduce output cost?Ask for concise output, set sensible max_tokens and use structured formats.
- How can you reduce input cost?Trim context, prune tool results, and cache repeated prefixes.
- Which features give big discounts?Prompt caching (cheap cache reads) and the Batch API (~50% off).
- How do you count tokens before sending?Use the token counting endpoint.
- Why set spend limits in the Console?To cap monthly spend and avoid surprise bills.
- What is cost per outcome?Total cost divided by successful results; a better metric than cost per call.