All jobs / AI engineer / AI Observability
AI engineer interview question · 1–3 years
A user reports that your agent gave a confidently wrong answer yesterday. All you stored was the final answer.
What is missing, and what would you add?
The strongest answer
A trace of the whole run: each model call and tool call as a step under one trace id, with inputs, outputs, errors and timings — so I can see which step went wrong
Why it works
Exactly — in a multi-step run the wrong answer is usually made several steps before the last one. The trace shows where.
What a good answer covers
- Trace the run, not just the answer.
- One trace id per user request.
- A step per model and tool call.
- Inputs, outputs, errors, timings.
Answers that fall short
- Close, but not the strongest: More logging around the final model call, including the full prompt that produced the answer
Helpful, but the final prompt already contains the damage. You need the earlier steps to see which tool result or retrieval put it there. - Weak: Nothing; I can re-run the same question today and watch what the agent does with it
A re-run can take a different path over different data. It may pass today and tell you nothing about yesterday. - Red flag: I would tell the user that models sometimes make mistakes, and close the ticket
Every unexplained failure is a free test case. Closing it teaches the team nothing and teaches the user to stop reporting.
Who gets asked this
More AI Observability questions
- Your LLM bill doubled this month while the number of requests stayed flat. How do you find out why?
- 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…