All jobs / AI engineer / LLM APIs

AI engineer interview question · 3–5 years

Traffic to the assistant grew by a tenth this month and the model bill doubled. How do you find out why, and what do you expect to find?

The strongest answer

Log the input and output token counts each response reports, tagged by feature and prompt version, and see which grew. Often it is input — longer history, more retrieved context, a fatter system prompt, or retries

Why it works

Exactly — you pay for tokens, not requests, and the usage figures come back with every call. Find the feature whose tokens per request grew, then trim, cache or cap that one.

What a good answer covers

Answers that fall short

Who gets asked this

More LLM APIs questions