Every Request Repeats a 10,000-Token Prompt. What Do You Do?
The interviewer asksEvery request to your assistant starts with the same 10,000-token set of instructions and documents. What are the cost and latency implications, and what would you do?
AI Product EngineerAI Platform PMAI Infrastructure PM (secondary)CoreTechnical roundRepresentative5–7 min
On this page
The 30-second version
- 10,000 repeated tokens per request: at 1 million requests a day, that's 10 billion input tokens.
- They also add prefill time before the first token.
- Prompt (prefix) caching reuses the processed prefix: lower cost and faster first token.
- Keep the shared part identical and at the start so it can be cached.
- Also ask whether all 10,000 tokens are needed per request.
What it's really testing
- Recognising repeated context costs
- Prefix caching
- Context trimming
How to structure your answer
- Quantify.
- Explain the latency effect.
- Caching.
- Trimming.
The interview, played out
- InterviewerEvery request to your assistant starts with the same 10,000-token set of instructions and documents. What are the implications?
- CandidateHow many requests a day?
- Revealed when askedAbout a million.
- CandidateThen that's 10 billion input tokens a day just repeating the same text. It also slows every request: the model processes those 10,000 tokens before writing anything.
- CandidatePrompt caching fixes most of it: the processed version of that identical opening is reused across requests, so it's cheaper and the first token arrives sooner. Providers usually charge much less for cached input.
- Strong moveNames prefix caching and why it helps both cost and latency.
- CandidateFor it to work, the shared part must be byte-for-byte identical and come first; anything per-user goes after it.
- InterviewerAnything else?
- CandidateQuestion the 10,000 tokens. Are all those documents needed on every request, or could we retrieve only relevant ones?
The strong answer, distilled
- Scale: 10B repeated input tokens/day at 1M requests.
- Latency: extra prefill on every request.
- Caching: reuse the processed prefix; cheaper, faster first token.
- Design for it: identical shared prefix first; per-user content after.
- Trim: retrieve only needed documents.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Quantification | None | Some | Tokens per day |
| Mechanism | None | Caching named | Prefix caching and its requirements |
| Alternatives | None | Shorter prompt | Retrieval instead of always-on documents |
Round scorecard: AI Infrastructure PM: technical round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Structure | Jumps to a number. | Some steps. | Formula first, steps said out loud. | Strong. Quantified the repeated tokens across traffic. |
| Assumptions | Hidden or wrong. | Stated. | Stated, reasonable, and the sensitive ones identified. | Strong. Stated request volume and pricing assumptions. |
| Technical depth | Weights only. | Weights and throughput. | Weights, KV cache, batching and latency targets. | Strong. Explained prefix caching and prefill savings. |
| Product judgment | Stops at the number. | Mentions cost. | Turns the estimate into a capacity and cost decision. | Strong. Also questioned whether all 10,000 tokens are needed. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| AI Product Engineer | Prompt structure for caching |
| AI Platform PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation | Offering caching and pricing it |
| AI Infrastructure PM | Cache memory and hit rates |
Common mistakes
- Ignoring repeated context cost
- Putting per-user data before the shared prefix
- Never questioning prompt size
More follow-ups to practise
- "Cache hit rate is low." Hint: find what varies in the prefix.
- "Instructions change weekly." Hint: cache resets; fine.
Go deeper
- Module: AI numbers: serving, cost and latency
- Framework: Back-of-Envelope Method for AI Numbers
- Framework: Explain a Concept Framework
- Framework: Opening Any Interview Answer
- Lesson: Where latency comes from
- Lesson: Estimating cost per token
- Also tests: Prompting and context engineering
Sources
Representative question: written to match technical rounds for AI product roles, not a specific reported interview.