All jobs / AI engineer / AI Observability
AI engineer interview question · 1–3 years
Your LLM bill doubled this month while the number of requests stayed flat. How do you find out why?
The strongest answer
Break token usage down per request by feature, prompt version and model, input against output: with flat traffic something grew — longer history, more retrieved context, retries, or an agent taking more steps
Why it works
Exactly — cost follows tokens, so with flat requests you look for tokens per request growing, and the per-feature breakdown says where.
What a good answer covers
- Flat traffic, bigger bill: tokens per request.
- Record tokens on every call.
- Slice by feature, version and model.
- Look for growing context, retries, loops.
Answers that fall short
- Close, but not the strongest: Check the provider’s usage dashboard to see on which day the spending went up
The date helps you match it to a release, but the provider’s total cannot tell you which feature or prompt is responsible. Your own per-request data can. - Weak: Requests are flat, so the provider must have raised its prices; I would ask them
Possible, and quick to rule out, but the usual cause is your own prompts getting longer. Look at tokens per request first. - Red flag: Switch everything to the cheapest model straight away and look into the cause when there is time
A blind model swap changes quality for every user with no eval, and the growing prompt keeps growing on the cheaper model.
Who gets asked this
More AI Observability questions
- Complaints about answer quality jumped this week, and your team deployed nothing. How does your observability…
- You have a few hundred traces that users marked as bad. How do you turn them into improvements?
- Error-rate and latency alerts are already in place for your LLM feature. What else do you monitor in…
- What do you record for each LLM call so that you can debug it later?
- To debug a chatbot, a teammate adds a line that writes every full prompt and response into the general…
- A user reports that your agent gave a confidently wrong answer yesterday. All you stored was the final…