AI-resistant coding interview questions: what actually works
Tarunpreet Singh — Co-founder, DeftBench
AI-resistant coding interview questions are problems designed so an AI tool can't produce a strong answer by itself — they lean on missing context, debugging a specific system, trade-off judgment, or genuine novelty. Some of these formats work well. But "resistant" is temporary: each model release solves questions the last one couldn't. The durable approach is to pick formats where the model being capable doesn't erase the signal — or to let candidates use AI and assess how they use it.
What are AI-resistant coding interview questions?
The term covers any question built so that pasting it into a chatbot or coding agent doesn't yield a passing answer. In practice teams reach for one of four levers:
- Hidden context.The answer depends on a codebase, dataset, or constraint the candidate sees and the model doesn't — unless the candidate hands it over.
- Novelty. The problem has no public solution to pattern-match against.
- Judgment.There's no single correct answer, only trade-offs the candidate has to argue for.
- Live reasoning. The question changes mid-interview, so a pre-generated answer goes stale.
The trouble is that the first two levers are exactly what models keep getting better at, and the last two are more about the interview format than the question.
Do AI-resistant interview questions work?
For a while. The clearest public account comes from Anthropic. In Designing AI-resistant technical evaluations, Tristan Hume describes a performance-engineering take-home that more than 1,000 candidates completed. AI use was explicitly allowed. Successive Claude models then caught up: by Claude Opus 4.5, the model matched the best human score achieved in the two-hour window, and the team had to redesign the test again as each model caught up. His summary is worth quoting: "The original worked because it resembled real work. The replacement works because it simulates novel work."
That's an expert team with unusually hard, specialised problems. If their questions expire, a general-purpose backend question will expire faster.
Why LeetCode variations aren't AI-proof
Tweaking a known problem is the most common response. In The Pulse #146, The Pragmatic Engineer reported a survey of 63 interviewers recruited via interviewing.io: interviewers described asking modified versions of public LeetCode questions, and 58% of the Big Tech respondents said they'd changed their questions to counter possible AI cheating. None of the Big Tech or New Big Tech respondents said their company had moved away from algorithmic questions.
Variations defeat memorisation. They don't defeat a model, which solves unfamiliar algorithm problems too. A variation mostly tests whether the candidate's hidden tool is good enough, which is the opposite of what you wanted. For the detection side of this problem, see AI cheating in technical interviews.
Examples of AI-resistant coding interview questions that hold up
These formats keep producing signal even as models improve, because the signal lives in the candidate's decisions rather than in the final code:
- Debug a real-ish system. A small service with a failing behaviour report and logs. What you score is how the candidate narrows it down: which hypotheses they form, what they check first, when they change course.
- Review a pull request with a planted flaw.A plausible diff with a subtle bug, a security issue, or a design that will hurt in six months. Ask what they'd block, what they'd approve, and why.
- Extend an existing codebase.Add a feature that has to fit conventions and constraints that aren't written down. Fitting in is the skill.
- Resolve an ambiguous requirement. Leave a real gap in the brief. Strong candidates ask; weak ones guess and build.
- Change the requirement mid-session. Halfway through, add a constraint that breaks the obvious design. Watch how they adapt.
- Defend a trade-off."You can have lower latency or simpler operations — pick one for this system and argue it." Follow-up questions expose whether the reasoning is theirs.
Notice that none of these depend on the model being unable to help. A candidate could use AI on every one and you'd still learn a lot from how they did it.
How to write coding interview questions AI can't solve alone
- Make context the bottleneck. The hard part should be understanding the system, not writing the code.
- Make the answer a decision, not an artefact. Score what they chose and why, not just whether the output is correct.
- Build in a follow-up. Every question should have a second step that depends on the first answer, so a canned response falls apart.
- Test it against current models before you use it. Paste it into the tools candidates have. If one prompt produces a strong answer, the question measures the model.
- Put an expiry date on it. Re-test every few months, or whenever a major model ships.
How to make technical interviews AI-proof (and why you might not want to)
If the job genuinely excludes AI tools — some safety-critical, regulated, or air-gapped environments — then an AI-resistant round in a controlled setting is reasonable, and in-person or closely observed sessions do more than clever question design. The same goes for a round whose purpose is checking fundamentals: a candidate who can't reason about code without the AI can't catch the AI's mistakes either.
For most teams, though, the engineers you hire will work with coding agents every day. Designing questions to keep the agent out means never observing the skill you're hiring for.
AI-resistant vs. AI-native interview questions
An AI-resistant question asks: can the candidate do this without the model? An AI-native coding interview asks: can the candidate do this well with the model — framing the problem, directing the agent, verifying what it produces, and overriding it when it's wrong? The second question doesn't expire when the model gets better. If anything, a stronger model makes weak direction and lazy verification easier to spot, because the candidate has more output to check.
The six formats above work in both modes. The difference is whether you treat the AI as a threat to keep out or as part of the job to assess.
Where DeftBench fits
DeftBenchtakes the AI-native side of that choice. The candidate solves an ambiguous problem in a browser IDE with a real coding agent; the session is captured as telemetry that attributes each action to the human or the agent; and the evaluation links every score to the moment that produced it, with a human making the final call. It's pre-GA. To see how that compares with incumbent assessment platforms, read DeftBench vs HackerRank. If you're tired of rewriting questions every time a model ships, get in touch.