Software engineer interview questions and answers
12 questions that come up in software engineer interviews, each with a model answer and the reason it is asked. Plus how to prepare and what to ask back.
Short answer
Interviewers want to know whether you can write code that works, explain why you built it that way, and keep working well when a teammate disagrees with you. They are also listening for how you handle a bug you did not cause. Below are 12 questions software engineer candidates get asked, with a model answer for each and what the interviewer is really checking. Know your number too: live postings put the median software engineer pay at $149,000 a year.
12 software engineer interview questions
Four on skills, four on how you have behaved, two on what you would do, two on why this role. Answers are a shape to make your own, not a script.
- 1
Skills
Walk me through how you would design a service that handles file uploads for a large customer base.
What they are checking. The interviewer is checking whether you can break a vague problem into parts and talk about trade offs out loud.
Model answer
I would start by asking what kinds of files, how big they get, and who needs to read them afterwards. Then I would separate the upload path from the processing path, so a slow virus scan or image resize never blocks the user. Files would go to object storage with a short lived signed link, and a queue would hand the processing work to workers that can be scaled on their own. I would add retries with a dead letter queue so a bad file never takes the system down. If the interviewer pushed me on cost, I would talk about lifecycle rules that move old files to cheaper storage.
- 2
Skills
How do you decide what to cover with unit tests and what to leave to integration tests?
What they are checking. They want to see that you test on purpose, not out of habit, and that you understand what each kind of test catches.
Model answer
Unit tests are where I put the logic that has many branches, like pricing rules or date handling, because they run fast and point straight at the broken line. Integration tests cover the joins between parts, such as the database layer or a call to another service, because that is where most real bugs hide. I try to keep the integration suite small enough that people still run it before pushing. When a bug reaches production I write the test that would have caught it first, then fix the code.
- 3
Skills
Explain a time you had to make a slow piece of code fast. What did you measure before you changed anything?
What they are checking. This checks whether you profile before you optimise or just guess.
Model answer
On a reporting page that users complained about, my instinct was that the query was slow, but I ran the profiler first. It turned out the query was fine and the time went into building the response object in a loop that called the database once per row. I rewrote it to fetch everything in a single query and map it in memory. The page went from painfully slow to instant, and I added a timing log so we would notice if it crept back up. The lesson I took is that my guess was wrong, and the profiler was right.
- 4
Skills
How do you handle a pull request where you disagree with the approach but the code works?
What they are checking. Code review behaviour tells them whether you will make the team better or harder to work with.
Model answer
I ask myself whether my concern is about correctness, maintainability, or just taste. If it is taste, I say so and approve it, maybe with a comment marked as optional. If it is about how hard the code will be to change later, I explain the specific case that worries me and suggest an alternative, but I keep the tone curious rather than corrective. I have been wrong in those discussions often enough to know that asking a question works better than stating a verdict. If we still disagree, we take it to a short call rather than a long comment thread.
- 5
Behaviour
Tell me about a time you shipped a bug to production. What happened and what did you change afterwards?
What they are checking. They want honesty, ownership, and proof that you learn from mistakes instead of hiding them.
Model answer
I once changed the way we rounded currency amounts and did not realise an older part of the system depended on the old behaviour. Customers started seeing totals that did not match their invoices by a few cents. I raised it in the team channel straight away, rolled back, and wrote up what I had missed. Afterwards I added a contract test between the modules and we agreed that any change touching money gets a reviewer from the billing team. Owning it quickly meant the fix took an afternoon instead of a week of confusion.
- 6
Behaviour
Describe a time you had to learn a new language or framework quickly to deliver something.
What they are checking. This checks how you learn under pressure and whether you can be useful before you are an expert.
Model answer
My team inherited a service written in a language none of us knew well, and it needed a security patch within days. I read the existing code before reading any tutorials, because I wanted to learn the house style first. Then I made the smallest change that fixed the problem, got it reviewed by someone outside the team who knew the language, and wrote down what I had learned for the next person. Within a few weeks I was comfortable enough to refactor parts of it. I still think the order matters: read real code first, then docs.
- 7
Behaviour
Tell me about a time a project requirement changed late and how you handled the rework.
What they are checking. They are checking how you react when work gets thrown away and whether you protect the team or complain.
Model answer
We were close to finishing a checkout flow when the legal team told us a consent step had to appear before payment, not after. My first move was to find out exactly what was required rather than what people assumed, which turned out to be smaller than feared. I mapped which parts of our work survived and which had to move, and shared that so the product manager could reset expectations with stakeholders. We lost some time but kept most of the code. I try to treat late changes as information rather than as an insult.
- 8
Behaviour
Give an example of a time you helped a junior developer get unstuck without doing the work for them.
What they are checking. This shows whether you lift the people around you, which matters more as you grow.
Model answer
A newer colleague had been stuck on a failing test for most of a day and was embarrassed to ask. I sat with them and asked them to explain what the test expected, line by line, and about halfway through they spotted the mismatch themselves. I then showed them how I narrow down a failure by commenting out parts of the input. The point was to leave them with a method, not just an answer. They came back later with a trick of their own that I now use.
- 9
Situation
A critical service is down and the person who built it has left the company. What do you do in the first hour?
What they are checking. The interviewer wants calm, a clear order of steps, and good communication under pressure.
Model answer
I would first tell the people affected that we know and are on it, because silence makes an outage worse. Then I would check the obvious things: recent deploys, logs, resource limits, and whether a dependency is failing. If a recent change looks suspicious I would roll it back before fully understanding it, since getting users working matters more than my curiosity. Once it is stable I would write a timeline while it is fresh. Later, I would push for documentation and a second owner so we are never in this position again.
- 10
Situation
Your product manager asks for a feature by a date that you think is unrealistic. How do you respond?
What they are checking. They want to see that you can push back with options rather than just saying no.
Model answer
I would ask what is driving the date, because sometimes it is a real customer commitment and sometimes it is a guess. Then I would break the feature into the pieces that matter most to the customer and the pieces that can follow. I would present options: the full thing later, a thinner version on the date, or the date with more people and more risk. I try to give the decision back to the product manager with honest estimates rather than taking on a deadline I privately know we will miss. Most of the time the thinner version is what the customer actually wanted.
- 11
Motivation
Why do you want to work on our product specifically, rather than any engineering job?
What they are checking. This separates people who researched the company from people applying everywhere.
Model answer
I used your product before I ever thought of applying, and I noticed how much care went into the parts most companies ignore, like error messages. That tells me engineers here are trusted to sweat the details. I also read about how your team runs incident reviews without blame, and that matches how I like to work. I want to build things people rely on every day, not a demo, and this is that kind of product.
- 12
Motivation
What kind of engineering culture helps you do your strongest work, and what kind holds you back?
What they are checking. They are checking fit with how the team actually operates, and whether you know yourself.
Model answer
I do well where code review is quick and kind, where people write things down, and where asking a question is seen as normal rather than weak. I struggle in places where every decision needs a meeting or where heroics are praised more than steady delivery. I also like having some ownership of a piece of the system so I can see my decisions play out over time. If your team works that way, I think we would get on well.
Red flags interviewers notice
- Jumping into code before asking what the problem actually is.
- Blaming a past teammate or manager for a failed project.
- Claiming to know a tool you cannot explain under follow up questions.
- Staying silent during a design question instead of thinking aloud.
The week before
- Rebuild a small project from scratch to warm up your coding hands.
- Pick a few past projects and practise explaining each in plain words.
- Read the company's engineering blog and public repositories if they have any.
- Practise a system design problem each day, speaking your reasoning out loud.
- Prepare a short story about a bug you caused and what you learned.
Questions to ask them
- How does code get from a pull request to production here, and what slows it down?
- What does your on call rotation look like, and how often does it page people?
- How do you decide what technical debt to pay down, and who decides?
- What would a strong engineer here have done in their first few months?
Looking for software engineer roles? We apply, you interview.
AI agents find the roles and tailor your CV to each one. Human agents apply, answer the screening questions, message recruiters and follow up, in your name. You relax with your family and take the interview calls.
Interviews guaranteed on the main plan
We keep hunting at no extra cost until you are in interviews for roles you agreed to.
$1,000 once upfront fee + half of first month's salary, only after you are hired and paid
Or $350 a month, or $250 for 15 days.
Every application checked by a person
No blank screening answers, no bot forms.
Software engineer interviews: common questions
How many interview rounds are there for a software engineer job?
+
Most companies start with a short call with a recruiter, then a technical screen, then a longer set of sessions covering coding, system design and behaviour. Smaller companies often compress this into fewer conversations. Ask the recruiter for the exact shape so you can prepare for each part.
Will there be a live coding test?
+
Usually yes, either shared screen coding with an engineer or a take home task that you discuss afterwards. The interviewer cares more about how you think and communicate than about finishing every line. Say what you are doing as you do it and name the trade offs.
Any tips for a remote software engineering interview?
+
Test your camera, microphone and the shared coding tool the day before. Have a quiet space, a glass of water and a notepad for sketching designs. If your connection drops, calmly rejoin and pick up where you were rather than apologising repeatedly.
What salary should I ask for as a software engineer?
+
Live job postings show a median of $149,000 a year in US dollars, with most offers between $115,000 and $185,000. Open with the median for your city and seniority, and let the employer name a figure first where you can. The salary page has the city bands.
Software engineer: the rest of the picture
Software engineer salary
Median pay by city and seniority, from live postings.
Software engineer job description
A ready template with duties, requirements and hiring tips.
Software engineer resume example
A full example plus the words applicant systems look for.
Software engineer staffing agency
Hire vetted people, or get leads if your agency places them.
Getting interviews is the hard part. We handle that.
We find the roles, tailor your CV, apply and follow up. You prepare with this page and turn up.