All jobs / AI engineer / AI Product Thinking
AI engineer interview question · 0–1 years
A teammate wants to call an LLM to work out the sales tax on each invoice. What do you say?
The strongest answer
That is a rule with one right answer, so plain code does it exactly, instantly, cheaply and testably. A model earns its place on fuzzy input — language, judgment, variation — where rules cannot be written down
Why it works
Exactly — deterministic problems want deterministic software. The model can still help next to it, for example reading a messy invoice before the code does the sums.
What a good answer covers
- Rules in code, fuzziness in models.
- One right answer? Write code.
- Messy language or judgment? Consider a model.
- Never leave money math unchecked.
Answers that fall short
- Close, but not the strongest: Code is cheaper than a model call, so we should write it in code here
Right call, thin reason. Cost matters less than correctness here: code gives the same exact answer every time and can be unit-tested. - Weak: Use the LLM — it is more flexible and will handle edge cases we have not thought of
Flexibility is the problem: a tax calculation must not vary between runs. Edge cases in a rule are handled by writing the rule. - Red flag: Use the LLM and do not bother checking the results; models are good at math now
Unchecked model arithmetic on money is an audit finding waiting to happen. It would worry any interviewer.
Who gets asked this
More AI Product Thinking questions
- Your assistant does not have the answer to a user’s question. What should it do, and why does that matter for…
- Your assistant answers from company documents. Why show citations to the user, and what makes a citation…
- You add thumbs up and thumbs down to an AI feature. What do you do with that signal, and what is its weakness?
- How do you design the interface around an extraction model that is sometimes wrong?
- Every AI draft is approved within seconds. What does that tell you, and what do you change?
- Six months after launch, how do you show that an AI feature is worth keeping?
- Product wants the largest model on every request while the bill climbs. What is your counter-proposal?
- When do you say no to an AI feature, and how do you say it here?