CertPrep
Domain 5 · 12% of the exam

Model Selection and Optimization

Tokens, context windows, sampling and non-determinism, adaptive thinking and effort; choosing a model tier against quality, latency and cost and planning for model releases with regression evaluations; and finding the dominant cost driver and fixing it with caching, batching or token budgets.

  1. 5.1Tokens, Sampling, Thinking and EffortExplain and control what the model does with tokens, the context window, sampling and model options: count tokens instead of guessing, fit input, thinking and output inside the window, expect some non-determinism, and use thinking and effort to trade depth for speed and cost.
  2. 5.2Choosing a Model Tier and Planning UpgradesChoose the model tier that meets a task's quality bar under its binding constraint (latency, cost, platform, error tolerance), justify it with an evaluation, route mixed traffic to different tiers, and plan model upgrades with pinned versions, regression evaluations, gradual rollout and a rollback path.
  3. 5.3Finding and Fixing the Cost DriverBreak usage data down to find the dominant cost driver, then apply the optimization that targets it (single, layered or rolling cache breakpoints placed after stable content, batch processing for work that can wait, token budgets for long outputs, tool search for large tool sets) and estimate the saving.