Question 470
The Claude application case reports: A developer places cache_control after a volatile retrieval passage that changes every request. Which TWO options form a suitable correction and a separate proof of effectiveness? (Select TWO.)
Explanation
Correct Answers
This corrective action targets A developer places cache_control after a volatile retrieval passage that changes every request by applying: Place cache breakpoints on sufficiently stable prompt prefixes, preserve exact content order, and measure actual cache reads. It addresses: Changing the cached prefix or assuming every request is a cache hit can make an optimization cost more than it saves.
This evidence independently verifies the intervention for A developer places cache_control after a volatile retrieval passage that changes every request: Usage records show repeated stable prefixes yield cache-read tokens and lower measured total costs at the intended volume.
Incorrect Answers
Output length and reasoning budget management: An insufficient max_tokens setting can cut off machine-readable results, while excessive budgets waste time and money. Here the decisive check is Prompt caching stable-prefix design, not that separate capability.
Batch processing economics and latency tradeoffs: Using batches for real-time chat or ignoring partial batch failures can violate latency and completeness requirements. The observed issue still requires Prompt caching stable-prefix design; the proposed alternative tests another control.
Context windows and message compaction: Unbounded conversation history can exceed context limits or discard vital constraints during compression. Without demonstrating Prompt caching stable-prefix design, that option does not satisfy the requested outcome.