Skip to content
Claude Certified Architect – Professional (CCAR-P) Exam Prep

Lesson 14 of 31 · 7 min

x
14/31

Accuracy-Latency-Cost Tradeoff Analysis

Video lesson: CCAR-P 14/31: Accuracy-Latency-Cost Tradeoff Analysis

Everything marked verified comes from Anthropic's cost-and-intelligence guidance; its figures are Anthropic-internal and directional, so measure on your own workload.

Two kinds of lever (verified framing)

Free wins (cut spend, keep quality)Tradeoffs (exchange cost for intelligence)
Prompt caching (D2.2), token hygiene, prompt audit, batch at 50% for work that can wait up to 24 hours, workspace spend limits as a backstopModel tier, effort, output caps and budgets, an elapsed-time clock, multi-model architectures

Cost levers and measured guidance (verified, directional)

  • Compare models on cost per completed task, not per token.
  • Costs too high, quality fine: try lower effort on the current model.
  • Not on the latest model: upgrading usually solves at least as many tasks for less per solved task.
  • High-volume, checkable outputs: try Haiku 5.5 first.
  • Quality not good enough: restore effort, else move up a tier.
  • Attempts end in max_tokens: raise it (Anthropic's tests suggested 64,000).
  • Outputs verifiable: low effort first, re-run failures at high: about 40% lower cost than all-high at the same pass rate.
  • Agent loops with a few very costly runs: session budgets and workspace spend limits.
  • Faster runs: tell the model time matters and show elapsed time (7% to 47% less time for a few points of score).
  • A lower-cost model that stalls on hard decisions: an advisor; the work exceeds one context: an orchestrator.

Latency (verified or design guidance)

  • Streaming improves perceived latency.
  • Fast mode tunes synchronous latency; it does not apply to batches (verified).
  • Keep prompts short, cache prefixes, trim tool output, avoid unnecessary agent turns.
  • The API has a guide on reducing latency (existence verified).

Accuracy

Accuracy is a function of model, effort, prompt, context quality and verification. Add validators and tests before spending on a larger model (D4.1).

A repeatable method (design guidance)

  1. Write service-level objectives: accuracy floor, p95 latency, cost per task.
  2. Build an evaluation set and a cost meter.
  3. Sweep configurations (tier, effort, caching, tools) and plot accuracy vs cost vs latency.
  4. Choose the cheapest configuration that meets all objectives; keep a fallback.
  5. Re-run on each model or prompt change (D6.5).

Exam traps

  • Optimising one axis (cost) and silently losing another (accuracy).
  • Comparing per-token prices.
  • No objectives, so "good enough" is undefined.
  • Cutting effort without re-running evals.
  • Using fast mode or streaming inside batches.

References

  1. Optimizing for cost and intelligence — checked Oct 16, 2026
  2. Batch processing — checked Oct 16, 2026
  3. Prompt caching — checked Oct 16, 2026

Check your understanding

  • First, cost-free wins to try?Show answer

    Answer

    Prompt caching, trimming tokens, batching eligible work.
  • How do you reduce cost when you can automatically check outputs?Show answer

    Answer

    Low effort first, re-run failures at higher effort.
  • What does fast mode not apply to?Show answer

    Answer

    Batch requests.
Previous

Progress is saved in this browser.

Next Lesson