All jobs / AI engineer / Production AI Engineering

AI engineer interview question · 5+ years

You moved your agent to a model that costs a third as much per token. The cost per request fell, yet the monthly bill went up.

What is going on, and what should you have measured?

The strongest answer

Cost per completed task, not per request: the cheaper model needs more turns, retries more and fails more often, so each finished task consumes more tokens — I compare models on success rate and total cost per success, and route easy work to the cheaper one only where the eval shows it holds

Why it works

Exactly — price per token is an input, not the outcome. An agent that takes twice the steps at a third of the price has not saved money, and the failures cost support time too.

What a good answer covers

Answers that fall short

Who gets asked this

More Production AI Engineering questions