productinterview.tools
MenuClose

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
  1. The 30-second version
  2. What it's really testing
  3. How to structure your answer
  4. The interview, played out
  5. The strong answer, distilled
  6. How it's scored
  7. How the answer changes by role
  8. Common mistakes
  9. More follow-ups to practise
  10. Go deeper
  11. Sources

The 30-second version

  1. 10,000 repeated tokens per request: at 1 million requests a day, that's 10 billion input tokens.
  2. They also add prefill time before the first token.
  3. Prompt (prefix) caching reuses the processed prefix: lower cost and faster first token.
  4. Keep the shared part identical and at the start so it can be cached.
  5. Also ask whether all 10,000 tokens are needed per request.

Watch it played outSee the strong answerHow it's scored

What it's really testing

  • Recognising repeated context costs
  • Prefix caching
  • Context trimming

How to structure your answer

  1. Quantify.
  2. Explain the latency effect.
  3. Caching.
  4. Trimming.

The interview, played out

A written example interview, not a real candidate or company transcript.Strong moveRevealed when asked
  1. Interviewer
    Every request to your assistant starts with the same 10,000-token set of instructions and documents. What are the implications?
  2. Candidate
    How many requests a day?
  3. Revealed when asked
    About a million.
  4. Candidate
    Then 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.
  5. Candidate
    Prompt 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.
  6. Strong move
    Names prefix caching and why it helps both cost and latency.
  7. Candidate
    For it to work, the shared part must be byte-for-byte identical and come first; anything per-user goes after it.
  8. Interviewer
    Anything else?
  9. Candidate
    Question 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

DimensionWeakPassableStrongThe mock candidate
StructureJumps to a number.Some steps.Formula first, steps said out loud.Strong. Quantified the repeated tokens across traffic.
AssumptionsHidden or wrong.Stated.Stated, reasonable, and the sensitive ones identified.Strong. Stated request volume and pricing assumptions.
Technical depthWeights only.Weights and throughput.Weights, KV cache, batching and latency targets.Strong. Explained prefix caching and prefill savings.
Product judgmentStops 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

Sources

Representative question: written to match technical rounds for AI product roles, not a specific reported interview.