All jobs / AI engineer / AI Coding & Agentic Development
AI engineer interview question · 5+ years
A production incident is traced to agent-written code. The author says the agent wrote it; the reviewer says it looked fine and CI passed. Neither can explain what the function does.
You lead the team. What do you change?
The strongest answer
Ownership, not the tool: whoever opens the pull request answers for every line as their own, review holds the same bar whatever wrote it, and we fix the pressure that made unread merges normal
Why it works
Exactly — the tool has no accountability, so it cannot share any. The incident is that two people signed for code neither understood.
What a good answer covers
- The person who merges owns the code.
- Author must be able to explain it.
- Same review bar for any source.
- Fix the pressure behind rubber-stamping.
Answers that fall short
- Close, but not the strongest: Add a label for AI-generated pull requests and require a second reviewer on each of those
A second reviewer who also does not read it changes nothing. The rule that matters is that the author can explain every line. - Weak: Ban coding agents for production code until the tools have become more reliable
A ban treats the tool as the cause. The same unread merge would have happened with a snippet pasted from anywhere. - Red flag: Record the root cause as an AI tool error; nobody on the team did anything wrong here
A tool cannot own a root cause. An interviewer hears a lead who will not hold the line on review.
Who gets asked this
More AI Coding & Agentic Development questions
- You want to use coding agents to move about 300 modules off a deprecated internal API. How do you run that so…
- What is the difference between an AI coding assistant and a coding agent, and why does it matter for how you…
- Your coding assistant’s solution imports a library you have never heard of. What do you do before you install…
- You are handing a feature to a coding agent. What goes into the task you write for it?
- You asked an assistant to write unit tests for an existing module. It produced forty tests, all green, and…
- A teammate’s coding agent opens one pull request: 2,400 changed lines across 45 files, mixing a rename, a…
- Your team’s coding agent keeps producing working code that ignores the codebase: a second HTTP client, a new…