Get started

Software engineering: interview questions and model answers

Each question below shows what interviewers look for, a model answer in four parts, the follow-up questions they are likely to ask next and the most common mistake. Read it, then say your own version aloud.

Open the interview drill
  1. 1. What kind of engineering work do you enjoy most, and why?

    What interviewers look for: Self-awareness about what motivates them, an honest example of that work and a clear link to what this team builds.

    Model answer

    Answer structure: Direct answer, Main reason, Evidence, and Link to the role

    Direct answer
    I enjoy backend work most, especially building services that are reliable and easy for other teams to use.
    Main reason
    I like problems where good design choices early on save a lot of pain later, and where I can measure the result.
    Evidence
    In my current role I rebuilt an internal booking service that kept timing out. After the redesign, response times dropped to about a fifth of what they were, and support tickets about it almost stopped.
    Link to the role
    Your platform team works on exactly this kind of shared infrastructure, which is why this role appeals to me.

    Likely follow-up questions

    • What made that piece of work satisfying, and what was your specific contribution?
    • Which kind of engineering work drains you, and how do you handle it when it is needed?

    Avoid: Avoid naming a favourite language or framework instead of a type of work; interviewers want insight into what motivates you and how it fits their team.

    Practise this question aloud
  2. 2. Tell me about a time you fixed a particularly difficult bug.

    What interviewers look for: A systematic debugging approach, persistence, use of evidence such as logs and tests, and a fix that prevented the bug from returning.

    Model answer

    Answer structure: Situation, Task, Action, and Result

    Situation
    Customers of our payments app occasionally saw the same transaction appear twice, but we could never reproduce it.
    Task
    I was asked to find the cause because it was damaging customer trust.
    Action
    I added detailed logging around the payment flow and collected examples over a week. The pattern showed that duplicates happened when the mobile network dropped and the app retried a request. The server treated each retry as new. I added a unique request key so the server could safely ignore repeats, and wrote a test that simulated the retry.
    Result
    Duplicate payments stopped completely.

    Likely follow-up questions

    • How did you narrow down the cause, and which hypotheses did you rule out along the way?
    • What test or safeguard did you add so the bug could not return?

    Avoid: Do not describe the fix without the method; making random changes until it worked suggests luck rather than systematic, evidence-based debugging.

    Practise this question aloud
  3. 3. Describe a time you disagreed with a technical decision made by your team or lead.

    What interviewers look for: Raising concerns respectfully with evidence, listening to other views, accepting the final decision and supporting it professionally.

    Model answer

    Answer structure: Situation, Task, Action, and Result

    Situation
    My team lead, Priya, proposed building our own message queue for a new feature, while I believed an established open-source option would be safer.
    Task
    I wanted to make my case without undermining her or slowing the project.
    Action
    I wrote a short comparison covering development time, maintenance effort and reliability risks, and asked for thirty minutes to discuss it with the team. Priya explained a constraint I had not known about, but agreed that the maintenance cost was high. We chose the open-source tool with a thin wrapper to address her concern.
    Result
    It went live smoothly, and we both learned from the discussion.

    Likely follow-up questions

    • What evidence did you bring, and how did your lead respond to it?
    • If the decision went against you, how did you support it afterwards?

    Avoid: Avoid stories where you were proven right and everyone else wrong; it suggests ego, whereas interviewers value respectful challenge followed by commitment.

    Practise this question aloud
  4. 4. How do you approach code reviews, both giving and receiving feedback?

    What interviewers look for: Seeing review as shared learning and quality control, giving specific, kind feedback, and receiving criticism openly without defensiveness.

    Model answer

    Answer structure: Direct answer, Main reason, Evidence, and Link to the role

    Direct answer
    I see code review as a way to share knowledge and catch problems early, not to judge people.
    Main reason
    When reviewing, I focus on correctness, clarity and risk, explain the reasons behind my comments and separate essential changes from small suggestions. When receiving feedback, I assume good intent and ask questions if I disagree.
    Evidence
    In my current team, I suggested that we keep pull requests small, and review times fell from two days to a few hours.
    Link to the role
    I would bring that constructive review culture to your team.

    Likely follow-up questions

    • Tell me about review feedback you received that changed how you write code.
    • How do you handle a reviewer who blocks your change over a matter of personal style?

    Avoid: Do not describe reviews as only catching bugs or enforcing style; interviewers want to hear about shared learning, kindness and openness to criticism.

    Practise this question aloud
  5. 5. Tell me about a time you helped resolve a production incident.

    What interviewers look for: Calm, structured response, clear communication, restoring service first, then finding the root cause and preventing recurrence through a blameless review.

    Model answer

    Answer structure: Situation, Task, Action, and Result

    Situation
    One evening our order service started failing for about a third of customers shortly after a deployment.
    Task
    I was the on-call engineer, so I had to restore service quickly and keep everyone informed.
    Action
    I opened an incident channel, posted regular updates and checked the deployment history. Error logs pointed to a database query introduced in the release, so I rolled the deployment back and confirmed that error rates returned to normal. The next day I led a blameless review, and we added a test and a slower, staged deployment for database changes.
    Result
    Service was restored within twenty minutes.

    Likely follow-up questions

    • What was your specific role, and how did you communicate status during the incident?
    • What came out of the post-incident review, and were the actions actually implemented?

    Avoid: Avoid jumping to the root cause before restoring service; interviewers want to see that you prioritised users and communicated clearly under pressure.

    Practise this question aloud
  6. 6. How do you decide between shipping a feature quickly and paying down technical debt?

    What interviewers look for: Balanced judgement based on risk, user value and long-term cost, making trade-offs visible and agreeing them with product colleagues.

    Model answer

    Answer structure: Direct answer, Main reason, Evidence, and Link to the role

    Direct answer
    I treat it as a business decision, so I make the trade-off visible rather than deciding it alone.
    Main reason
    Some debt is fine if it helps us learn quickly, but debt in critical or frequently changed code slows every future change and raises the risk of failures. I estimate that cost and discuss it with the product manager.
    Evidence
    In my last team we agreed to spend about a fifth of each sprint on improvements, and our release frequency actually increased.
    Link to the role
    I would aim for that same sustainable balance here.

    Likely follow-up questions

    • How do you make the cost of technical debt visible to product colleagues?
    • Tell me about technical debt you chose to leave in place. Why was that the right call?

    Avoid: Do not claim you always pay down debt first or always ship first; both positions suggest poor judgement about risk and user value.

    Practise this question aloud
  7. 7. Tell me about a time you improved the performance of a system.

    What interviewers look for: Measuring before optimising, finding the real bottleneck, choosing a proportionate fix and verifying the improvement with data.

    Model answer

    Answer structure: Situation, Task, Action, and Result

    Situation
    Our product search page was taking up to six seconds to load during busy periods, and users were abandoning it.
    Task
    I was asked to bring load times down without rewriting the whole search system.
    Action
    I started by measuring where the time was spent and found that each search made dozens of separate database calls. I combined them into a single query, added an index on the most used filter and cached popular searches for a few minutes. I load-tested each change before releasing it.
    Result
    Typical load time fell to under one second, and searches per visit increased.

    Likely follow-up questions

    • How did you measure performance before and after, and under what load conditions?
    • Which simpler fixes did you consider before the one you chose?

    Avoid: Avoid optimising without measuring first; interviewers want to hear how you found the real bottleneck and verified the improvement with data.

    Practise this question aloud
  8. 8. How would you design a feature that sends users reminder notifications?

    What interviewers look for: Clarifying requirements first, then a sensible high-level design covering scheduling, reliability, user preferences, scale and monitoring.

    Model answer

    Answer structure: Direct answer, Main reason, Evidence, and Link to the role

    Direct answer
    I would start by clarifying requirements: which channels, how many users, how precise the timing must be and what users can control.
    Main reason
    Then I would store reminders with their scheduled times, use a scheduler to add due reminders to a queue, and have workers send them through each channel. I would make sending safe to retry, respect user preferences and time zones, and add monitoring for failures and delays.
    Evidence
    I built a similar system for appointment reminders at a clinic network.
    Link to the role
    I would follow the same approach here.

    Likely follow-up questions

    • How would you make sure a reminder is not sent twice if a worker crashes mid-send?
    • How would you handle users in different time zones and their quiet hours?

    Avoid: Do not jump into technology choices before clarifying requirements; it suggests you design without understanding the problem, users or scale involved.

    Practise this question aloud
  9. 9. Tell me about a time you worked with unclear or changing requirements.

    What interviewers look for: Asking good questions, building small pieces to get early feedback, communicating trade-offs and adapting without losing quality.

    Model answer

    Answer structure: Situation, Task, Action, and Result

    Situation
    I was asked to build a reporting tool for our finance team, but the request was simply to make reporting easier.
    Task
    I needed to deliver something useful even though nobody could yet describe exactly what they wanted.
    Action
    I spent an afternoon watching two analysts prepare their monthly reports and noted the slowest steps. I built a small prototype that automated just one of them and showed it after a week. Their feedback shaped the next version, and we repeated this every fortnight, adjusting priorities as their needs became clearer.
    Result
    After two months the tool saved each analyst several hours a month.

    Likely follow-up questions

    • Which questions did you ask to reduce the ambiguity, and who did you ask?
    • How did you keep quality high while the requirements kept shifting?

    Avoid: Avoid complaining about the product team or waiting for perfect specifications; interviewers want proactive clarification and small iterations that gather early feedback.

    Practise this question aloud
  10. 10. What is your approach to testing your code?

    What interviewers look for: A practical, layered testing approach focused on risk, with automated tests that are fast, reliable and part of everyday development.

    Model answer

    Answer structure: Direct answer, Main reason, Evidence, and Link to the role

    Direct answer
    I see testing as part of writing code, not a separate stage at the end.
    Main reason
    I write fast unit tests for logic, a smaller number of integration tests for important connections such as databases, and a few end-to-end tests for critical user journeys. I focus most effort on areas where a failure would be costly.
    Evidence
    In my current team, adding tests to our billing module before refactoring it meant we could make major changes without a single customer-facing billing error.
    Link to the role
    That confidence to change code safely is what good testing gives a team.

    Likely follow-up questions

    • How do you decide what not to test?
    • What do you do about flaky tests in a shared test suite?

    Avoid: Do not quote a coverage percentage as your strategy; interviewers want a risk-based, layered approach with fast, reliable tests run as part of everyday work.

    Practise this question aloud
  11. 11. Tell me about a time you mentored or supported a less experienced developer.

    What interviewers look for: Patience, adapting support to the person, encouraging independence rather than doing the work for them, and visible growth as a result.

    Model answer

    Answer structure: Situation, Task, Action, and Result

    Situation
    A graduate developer, Yusuf, joined our team and was struggling to work confidently in our large codebase.
    Task
    I was asked to help him become productive and independent as quickly as possible.
    Action
    I met him twice a week, starting with a guided tour of the main services and how they connected. I chose small, real tasks for him, paired with him on the first few and then moved to reviewing his work. I encouraged him to ask questions in the team channel so others could help too.
    Result
    Within three months he was delivering features independently.

    Likely follow-up questions

    • How did you adapt your support as the developer became more confident?
    • What did you do when they were stuck, without simply doing the work for them?

    Avoid: Avoid stories where you fixed things for the junior developer; it shows helpfulness but not mentoring, and it does not demonstrate their growth.

    Practise this question aloud
  12. 12. How do you keep your technical skills up to date?

    What interviewers look for: A sustainable learning habit, choosing what to learn based on real needs, and evidence of applying new knowledge at work.

    Model answer

    Answer structure: Direct answer, Main reason, Evidence, and Link to the role

    Direct answer
    I keep my skills current through regular, focused learning linked to the problems I actually work on.
    Main reason
    Technology changes quickly, but chasing every new tool is not useful. I set aside a little time each week to read documentation, follow a few engineering blogs and try ideas in small side projects.
    Evidence
    Last year I learned infrastructure as code this way, then used it to automate our test environments, which cut setup time from a day to under an hour.
    Link to the role
    I would continue that habit and share what I learn with the team.

    Likely follow-up questions

    • Tell me about something you learned recently and how you applied it at work.
    • How do you decide which new technologies are worth your time?

    Avoid: Do not list blogs, courses or sources without application; interviewers want evidence that your learning actually changed how you work.

    Practise this question aloud
  13. 13. Tell me about a time you made a mistake that reached production.

    What interviewers look for: Honest ownership, fixing the problem quickly, communicating clearly, and improving processes so the same mistake cannot easily happen again.

    Model answer

    Answer structure: Situation, Task, Action, and Result

    Situation
    Early in my career I deployed a configuration change that pointed our staging service at the production email system.
    Task
    As a result, a few hundred customers received test emails, and I had to fix it quickly and openly.
    Action
    As soon as I noticed, I reverted the change and told my lead and the support team. I helped write a short apology email to the affected customers. In the review, I suggested separating staging and production credentials completely and adding an automated check before configuration changes were deployed.
    Result
    Both changes were adopted, and that type of mistake has not happened again.

    Likely follow-up questions

    • How did you discover the mistake, and how quickly did you tell others?
    • What process change made the same mistake harder to repeat?

    Avoid: Avoid choosing a trivial mistake or blaming the review process; interviewers want honest ownership and a meaningful improvement to how the team works.

    Practise this question aloud
  14. 14. In your view, what makes code maintainable?

    What interviewers look for: Practical principles such as clarity, simplicity, good naming, tests and documentation, with an example of their impact on a team.

    Model answer

    Answer structure: Direct answer, Main reason, Evidence, and Link to the role

    Direct answer
    Maintainable code is code that another developer can understand, change and test safely, even months later.
    Main reason
    That comes from clear names, small focused functions, consistent structure, good tests and short notes explaining why unusual decisions were made. Simplicity matters more than clever tricks.
    Evidence
    When I joined my current team, one module was so hard to follow that everyone avoided it. We refactored it gradually with tests, and new developers can now make changes there in their first week.
    Link to the role
    I would write code with the next person in mind.

    Likely follow-up questions

    • How would you judge maintainability when reviewing someone else's pull request?
    • Tell me about code you wrote that others found hard to maintain. What did you learn?

    Avoid: Do not recite principles without an example; interviewers want to see how maintainability, or the lack of it, affected a real team.

    Practise this question aloud
  15. 15. Describe a time you had to deliver under a very tight deadline. What trade-offs did you make?

    What interviewers look for: Clear prioritisation, agreeing trade-offs openly, protecting quality where it matters most and planning to address shortcuts afterwards.

    Model answer

    Answer structure: Situation, Task, Action, and Result

    Situation
    Our company needed a new consent screen in its mobile app within two weeks to meet a regulatory deadline.
    Task
    I was the lead developer and had to deliver it on time without introducing risk.
    Action
    I met the product manager to separate what was legally required from what was nice to have. We agreed to launch with a simple design and add personalisation later. I kept full test coverage on the consent logic itself, but postponed some refactoring, which I logged as follow-up work with a target date.
    Result
    We launched two days early and completed the follow-up work the next month.

    Likely follow-up questions

    • Which shortcuts did you take, and where did you refuse to cut corners?
    • Did you actually address those shortcuts afterwards, and how?

    Avoid: Avoid stories of heroic all-night efforts; interviewers want open trade-offs, protected quality where it matters most and a plan to repay shortcuts.

    Practise this question aloud
  16. 16. How do you think about security in your everyday development work?

    What interviewers look for: Treating security as part of normal engineering: input validation, least privilege, secret handling, dependency updates, reviews and reporting concerns.

    Model answer

    Answer structure: Direct answer, Main reason, Evidence, and Link to the role

    Direct answer
    I treat security as part of everyday engineering, not something for a separate team to add later.
    Main reason
    In practice that means validating input, using parameterised queries, never putting secrets in code, giving services only the access they need and keeping dependencies updated. I also think about how a feature could be misused.
    Evidence
    During a code review last year, I noticed an endpoint returning other users' account details if the identifier was changed. We fixed it before release and added an access test.
    Link to the role
    That mindset is essential for a team handling customer data.

    Likely follow-up questions

    • Tell me about a security issue you caught in your own or a colleague's code.
    • How do you handle a vulnerable dependency when upgrading it would break other things?

    Avoid: Do not treat security as someone else's job; interviewers want everyday practices such as validation, least privilege and secret handling built into normal engineering.

    Practise this question aloud
  17. 17. Tell me about a time you worked with product and design colleagues to change a feature's scope.

    What interviewers look for: Collaborative problem-solving, explaining technical constraints clearly, suggesting alternatives that still meet user needs and reaching a shared decision.

    Model answer

    Answer structure: Situation, Task, Action, and Result

    Situation
    Our designer, Mei, proposed a live map showing delivery drivers in real time, but building it fully would have taken about two months.
    Task
    I needed to explain the cost and help the team find a better option for the release.
    Action
    I met Mei and the product manager and asked what users really needed. It turned out customers mainly wanted to know when their order would arrive. I suggested showing an estimated arrival time that updated every few minutes, which we could build in two weeks, and keep the live map for later.
    Result
    Customer queries about deliveries dropped after launch.

    Likely follow-up questions

    • How did you explain the technical constraint so non-engineers understood the trade-off?
    • What alternative did you propose, and how did it still meet the user need?

    Avoid: Avoid presenting yourself as simply saying something cannot be done; interviewers want clear constraints, workable alternatives and a decision reached together.

    Practise this question aloud
  18. 18. You inherit a legacy service with no tests and no documentation. Where do you start?

    What interviewers look for: Understanding before changing, observing real behaviour, adding safety nets such as tests and monitoring, and improving gradually rather than rewriting.

    Model answer

    Answer structure: Direct answer, Main reason, Evidence, and Link to the role

    Direct answer
    I would start by understanding what the service does and who depends on it before changing anything.
    Main reason
    I would read the code, check logs and traffic, talk to the people who use it and write down what I learn. Then I would add tests around its current behaviour and basic monitoring, so that later changes are safe.
    Evidence
    I took this approach with an old invoicing service, and after two months we could change it confidently without a risky rewrite.
    Link to the role
    Careful, gradual improvement is usually the safest path.

    Likely follow-up questions

    • How would you learn the service's real behaviour before changing anything?
    • When, if ever, would you argue for a full rewrite?

    Avoid: Do not propose an immediate rewrite; it ignores hidden behaviour and risk, and interviewers favour gradual improvement protected by tests and monitoring.

    Practise this question aloud
  19. 19. Tell me about a time you introduced a new tool or practice to your team.

    What interviewers look for: Identifying a real problem, building support through evidence and a small trial, helping colleagues adopt it, and showing the benefit.

    Model answer

    Answer structure: Situation, Task, Action, and Result

    Situation
    Our team often merged code that broke the main branch, which wasted hours each week for everyone.
    Task
    I wanted to introduce automated checks without making people feel that their work was being policed.
    Action
    I collected a month of examples showing the time lost, then suggested a trial: automated tests and linting on every pull request for one service. I set it up, wrote a short guide and helped anyone who had problems. After two weeks I shared the results with the team.
    Result
    Broken builds dropped sharply, and the team voted to apply the checks to every service.

    Likely follow-up questions

    • How did you prove the benefit with evidence after the trial?
    • How did you bring sceptical colleagues on board?

    Avoid: Avoid introducing a tool simply because it was new or exciting; interviewers want a real problem solved and clear evidence of benefit.

    Practise this question aloud
  20. 20. What does a good engineering culture look like to you?

    What interviewers look for: Values such as psychological safety, ownership, learning from failure, collaboration and quality, illustrated with personal experience.

    Model answer

    Answer structure: Direct answer, Main reason, Evidence, and Link to the role

    Direct answer
    A good engineering culture is one where people feel safe to ask questions, admit mistakes and challenge ideas respectfully.
    Main reason
    That safety leads to better decisions and faster learning. It works best alongside clear ownership, honest code reviews, blameless incident reviews and time for improving the systems we maintain.
    Evidence
    In my current team, our blameless reviews mean people report problems early, and our incidents are usually resolved quickly because nobody hides information.
    Link to the role
    I would contribute to and protect that kind of culture here.

    Likely follow-up questions

    • Tell me about a time you helped build that kind of culture yourself.
    • What would you do if you joined a team where blame was common?

    Avoid: Do not list values without experience; interviewers want concrete examples of how you personally contributed to a healthy engineering culture.

    Practise this question aloud

Model answers are examples that show the structure. In a real interview, use your own true experience.

All interview questions