CCDV-P Cost and Latency Optimization at Scale practice questions
8% of the CCDV-P exam. These worked examples come from free Form 1, with an explanation for every answer option.
An online marketplace generates a listing-quality report while each seller waits in the listing editor. Every request carries cached seller guidelines plus the listing text. Cost data for the feature shows cache reads already covering most input tokens, while output tokens make up about 70% of its spend. Sampled responses average 1,800 output tokens: the model restates the full listing, then gives five recommendations, the only part the editor displays. Which change best reduces the feature's cost?
- A
Request only the recommendation fields the editor renders, as structured output without the restated listing, and recheck quality.Correct
Output tokens dominate spend and most of them are a restatement nobody sees, so changing the output contract removes the largest cost driver while keeping the part sellers use.
- B
Lower max_tokens to about 400 for this feature so that no response can run long, which puts a firm cap on output spend for every request.
A lower cap does limit spend, but the restatement comes first, so responses would hit the limit mid-listing and the recommendations the editor needs would be cut off.
- C
Submit report generation through the Message Batches API so that every report is billed at the batch discount instead of standard rates.
Batch pricing is a real discount, but batch results can take hours, which does not work for a report that sellers wait for in the editor.
- D
Add a second cache breakpoint after the listing text, so that a larger share of each request's input tokens is billed at the cache-read rate.
Each listing is different, so caching it mostly adds write premiums that are rarely read, and input is already the smaller part of this feature's bill.
The principle
Break cost down by token type before choosing a lever: caching and batching act on input price and scheduling, but when output tokens dominate, the biggest saving comes from asking the model to generate only what the product actually uses.
A bank's internal policy Q&A tool returns answers of several hundred words. Staff complain that the screen stays blank for about ten seconds per question. Traces show the model starts producing output within a second, and the interface renders only after the full response has arrived. Which change best addresses the complaint?
- A
Switch to a smaller, faster model so complete answers arrive sooner, accepting some loss of nuance on detailed policy questions.
A faster model shortens total generation time somewhat, but staff would still see a blank screen until the whole answer finished, and quality on policy nuance suffers.
- B
Stream the response and render text as it arrives, since output starts quickly and the wait is spent buffering the full answer.Correct
Time-to-first-token is already low, so streaming turns the perceived wait from the full generation time into roughly one second without changing the answer.
- C
Enable prompt caching on the shared policy context so the model processes the common prefix faster on every question.
Caching cuts prefill work and therefore time-to-first-token, but that is already about a second; the blank screen comes from waiting for the full output.
- D
Lower the max_tokens limit so answers end sooner, reducing how long staff wait before the complete answer is displayed.
A lower output cap shortens generation but truncates answers mid-thought with max_tokens stops, trading correctness for a wait that streaming removes anyway.
The principle
Separate time-to-first-token from total latency before optimizing: when the first token is fast but the user waits for the whole response, streaming fixes perceived latency without touching model, prompt or output length.
An airline sends three internal features to its largest Claude model: extracting fields from baggage-claim forms (about 70% of calls), summarizing crew reports, and planning rebookings during disruptions. On a labeled set, a smaller model matches the large model's accuracy on form extraction but scores far lower on rebooking plans; crew-report summaries are still being evaluated. Which change best lowers cost without hurting quality?
- A
Send each of the three features to the smaller model first, escalating to the large model when a confidence check flags an answer as uncertain.
A cascade suits mixed traffic, but most rebooking requests would fail the first tier and pay for two calls, and confidence checks can miss answers that are confidently wrong.
- B
Keep the three features on the large model and cache their shared instructions, so most input on each request bills at the cache-read rate.
Caching trims input cost and is worth doing, but it leaves the high-volume extraction work on the most expensive model even though a cheaper one matches it.
- C
Give the claim-form work to the cheaper tier, leave disruption planning where it runs today, and settle the summaries once testing ends.Correct
Routing by task type on evidence moves extraction to the cheaper model where it has proven equal, keeps rebooking on the larger model where quality depends on it, and waits for data on summaries.
- D
Move the three features to the smaller model, since form extraction is most of the calls and is where nearly all of the savings would come from.
Most savings do come from extraction, but moving rebooking plans to a model that scores far lower trades quality away on the feature where errors strand passengers.
The principle
Model routing should follow per-task evaluation evidence: send each task type to the cheapest model that meets its quality bar, rather than making one fleet-wide model choice or adding an escalation tier where most traffic would escalate anyway.