CCAR-P practice › Evaluation, Testing & Optimization · Question 70 of 110
Evaluation, Testing & Optimization · Select TWO
A customer-service chat assistant has a p95 latency complaint from users, who mostly perceive the wait before any text appears. Usage logs show requests average a long, unchanging system prompt with tool definitions, a short user message, and replies of about 700 output tokens, mostly a polite preamble and a restated summary of the question. Which two changes most directly address the problem? Select two.
Show answer and explanation
Answer: B and D — Stream responses and structure the stable prefix for prompt caching, so the first token reaches users sooner / Ask for a concise reply without the preamble or restated question, and set max_tokens accordingly
(b) and (d) are right. Streaming improves the perceived wait users complain about, and caching a long stable prefix cuts time to first token (see 2.4 for prefix structure). Generation time grows with output length, so removing unneeded preamble shortens total latency and cost. (a) adds cost and doesn't reliably shorten replies. (c) adds a sequential call, increasing latency.
Keep going
More Evaluation, Testing & Optimization questions
- A financial-services firm's research assistant shows healthy dashboards: 99.9% uptime…
- A SaaS company's monitoring shows that, after a release, cost per conversation rose 30%…
- A bank is preparing to launch a Claude-based assistant that answers customer questions…
- An engineering lead reports that a new configuration of a document-processing agent…
- A healthcare provider's patient-intake assistant passed launch review with a zero rate…