Two years ago, using AI in a technical interview was straightforward cheating. Today the same behaviour is either cheating, expected, or actively scored — depending entirely on the company, and usually without anyone telling you which. Guessing wrong is expensive in both directions: hide it and you look dishonest, over-announce it and you look like you cannot work without it.
The three policies you will actually meet
Almost every interview falls into one of three regimes. The problem is that candidates assume the first one and prepare for it, while most companies have quietly moved to the second or third.
Common in proctored assessments and in some banks, defence-adjacent firms and regulated roles. Detection is usually behavioural rather than technical: tab switches, paste events, implausible speed. Do not test this policy. Ask before the interview, in writing.
The most common policy among product companies. You may use tools; you must say which, and you must be able to defend every line. This is the regime most candidates are unprepared for, because they prepare either to hide it or to skip it.
Increasingly common for AI-adjacent roles. You are given a broken function and a model, and marked on how fast you locate the lie in the output. Here, refusing to use AI is the failure mode.
You can usually find out which regime you are in before the interview with one email: "For the technical round, should I assume AI assistants are permitted, and if so do you want tool use declared?" Interviewers answer this. It is a normal question, and asking it signals that you have done this before.
What actually gets you rejected
It is almost never the use of a tool. It is one of four behaviours around it.
- Undisclosed use that the interviewer detects. The interview is over not because you used a model, but because you were willing to conceal it. Trust is the thing being assessed, and it is now unrecoverable in that room.
- Being unable to explain your own submission. If you cannot walk through a line of code you just presented, the interviewer concludes the work is not yours. One "why did you write it that way?" is enough to surface this.
- Confident output you did not verify. A model that invents a library method produces code that looks correct and fails at runtime. Handing that in is worse than handing in nothing, because it shows you cannot tell the difference.
- Using AI as the first move, not the second. Interviewers notice when you reach for a tool before you have read the problem. It reads as dependence, and dependence is the trait the "expected" regime is specifically screening out.
Most interviewers form a view of your AI judgement within the first four minutes of a technical task — before you have written much code. What they are watching is whether you read first, plan second, generate third, and verify fourth. Get that order wrong and the rest of the interview is spent recovering.
How to disclose well
Disclosure is not a confession. Done properly it is evidence of exactly the judgement employers are short of. A useful shape:
"I used the assistant to draft the parsing function and to suggest edge cases. I rewrote the error handling myself because it mishandled empty input, and I tested it against three cases before running it."
That sentence does four things in twelve seconds: it names the tool, states the scope, shows a specific correction you made, and proves you tested. Compare it with "I used ChatGPT for some of it", which names nothing and proves nothing.
The disclosure should also be honest about what you did not use it for. Interviewers are alert to overclaiming in both directions, and a candidate who says "I did the data model by hand because I wanted to be sure of the relationships" is telling them something useful about how they work.
Verifying an AI answer in sixty seconds
The skill the "expected" regime is testing has a repeatable shape. It is worth rehearsing until it is automatic.
- Does it run? Execute the smallest possible case before reading the logic. A worked example catches invented methods immediately.
- Does it survive an edge? Empty input, one item, duplicates, a negative number. Models are trained on the happy path and fail at the boundaries.
- Is the claim in the comment true? Generated comments often describe what the model intended rather than what the code does. Read the code, not the prose.
- Would I defend this line under questioning? If there is a line you cannot explain, delete it and write your own. Unexplainable code is a liability you are volunteering for.
The interview is measuring judgement, not purity
There is a version of this advice that says "never use AI in an interview, it looks weak". That is now as wrong as the opposite. Companies are hiring people who will use these tools on Monday. What they cannot hire is someone whose output they cannot trust, or whose process they cannot see.
So the thing to practise is not abstinence. It is the sequence: read, plan, generate, verify, disclose. Every part of that sequence is observable, and every part of it is a mark in your favour when you do it out loud.
Our assessment rubric makes this explicit — undisclosed tool use where disclosure is required invalidates a result, and verified use scores higher than unassisted work of the same quality. The reasoning is the same one an interviewer uses: a credential that cannot be defended is worth nothing to the person holding it.
Frequently asked questions
Is it cheating to use AI in a technical interview?
Only if the company has said not to. Under a disclosed-use policy it is permitted and expected; under a closed-book policy it is cheating. The policy is usually discoverable by asking before the interview, and asking is itself a positive signal.
Should I tell the interviewer I used AI?
If the policy requires disclosure, yes, and precisely: name the tool, the scope, what you changed, and how you tested. If the policy is silent, disclose anyway — undisclosed use that is later detected ends the process, while disclosed use is a demonstration of judgement.
What if I cannot explain the AI-generated code?
Delete it and write your own. Unexplainable code is worse than slower code, because the interviewer is assessing whether your output can be trusted, not how fast you typed.
Do companies ban AI in interviews?
Some do, particularly in proctored assessments and regulated industries. Detection is usually behavioural rather than technical, and the penalty is typically disqualification rather than a lower score — which is why asking first is worth the email.
How do I get better at verifying AI output?
Practise the four-step check until it is automatic: run the smallest case, test an edge case, read the code rather than the comments, and delete anything you cannot defend line by line. It takes about sixty seconds once rehearsed.
The diagnostic scores you the way a real paper does, then shows you the reasoning behind every miss.