Software engineer interview prep: the questions you'll actually be asked
Software engineer interviews test whether you can own a feature end to end: design it, code it, test it, ship it, and support it in production. Expect a coding or data structures problem, SQL and API questions, and behavioral questions about code review, ambiguity, and incidents. Here's what a typical software engineer posting tells you about the interview, with model answers you can adapt.
Practice one software engineer question now, free
Free demo · no signup
The green bar should move when you talk. If it doesn't, pick a different microphone.
Aim for 1 to 2 minutes: the situation, what you did, and how it turned out. ·
What software engineer interviews focus on
Coding fundamentals
Data structures, algorithms, and object-oriented design in your strongest language. Narrate your reasoning and the Big-O as you go.
Databases and APIs
Relational databases, efficient SQL, and REST API design, including the security basics. Expect to read a slow query or sketch a small service.
Testing and delivery
What you test at each level, how you use Git and pull requests, and what a CI/CD pipeline should do. They want to see tests as part of done.
Production ownership and teamwork
On-call, incident response, code review, and turning vague requirements into estimated, sliced work. Calm, clear communication counts as much as the fix.
What the posting says, and what they'll ask
Every line of a job posting points to a question. These come from a typical software engineer posting.
“Deliver features from concept through production”
Engineers likely own features after release instead of handing them to a separate ops team.
A release goes wrong. How do you handle deployment, monitoring, and rollback?
“Periodic on-call rotation”
The team supports its own services, so incident response is a real duty of the role.
You're paged for elevated errors in production. What are your first fifteen minutes?
“Participate in code reviews, providing and receiving constructive feedback”
This may signal that review quality and consistency matter to the team.
Tell me about a time you received critical feedback in a code review.
“Writing efficient SQL queries”
The data layer is relational, and query performance is a skill they want to see.
A query that was fast last month is now slow. How do you diagnose it?
Likely questions, with model answers
Given a list of integers and a target, find two numbers that add up to it. Talk me through your approach and its complexity.
I'd start with the brute force, two nested loops, and say it's O(n²) time and O(1) space. Then I'd improve it with one pass and a hash map from value to index, checking whether the target minus the current value is already stored. That's O(n) time and O(n) space. I'd confirm edge cases out loud: duplicates, negatives, no answer, and empty input. If the array is sorted, I'd mention two pointers, which gives O(n) time with O(1) space. Then I'd run a couple of test cases by hand.
Why they ask: It shows whether you can reason about tradeoffs and complexity out loud, not just reach a working answer.
A query that was fast last month is now slow. How do you diagnose it?
I'd get the actual query and run EXPLAIN, or EXPLAIN ANALYZE where available, against realistic data. ANALYZE actually executes the query, so for writes I'd wrap it in a transaction I roll back, or use a replica or staging copy. I'd look for sequential scans on big tables, bad row estimates, expensive sorts, and joins on unindexed columns. Then I'd check whether data growth or a recent change caused it. The fix might be a targeted index, a rewrite, or removing an N+1 pattern. After the change I'd measure again.
Why they ask: Query performance is a stated skill, and the answer shows whether you diagnose with evidence instead of guessing.
How do you decide what to cover with unit, integration, and end-to-end tests?
I want many fast unit tests for business logic, fewer integration tests that hit a real database or API boundary, and a small set of end-to-end tests for critical user flows. End-to-end tests are slow and flaky, so I keep them to the paths where failure would hurt the most. I test behavior, not implementation details, so refactors don't break tests. When I find a bug, I write a failing test first, then fix it. If a test turns flaky, I find the cause instead of just rerunning it.
Why they ask: Interviewers want to know that tests are part of how you define done and that you keep a pipeline trustworthy.
You're paged for elevated errors in production. What's your first fifteen minutes?
I'd acknowledge the page and scope it: which service, which users, and since when. Then I'd check dashboards and recent deploys, since a recent change is the most common cause. If one lines up, I'd confirm a rollback is safe given any schema or data changes, then roll back or turn the feature flag off. I'd post status in the incident channel so people know what's happening. Once things are stable, I'd find the root cause and write a blameless postmortem.
Why they ask: The role includes on-call, so they need to see calm triage, clear communication, and learning afterward.
Tell me about a time you received critical feedback in a code review and what you did with it.
I'd pick a small, real example. First I check whether the feedback is right before I react to the tone. If it is, I change the code and thank the reviewer. If I disagree, I explain my reasoning respectfully with evidence, or suggest a quick call if the comments are going in circles. Then I apply the lesson later, for example by adding the point to my own checklist before I open a pull request, so the same comment doesn't come up twice.
Why they ask: Review is a daily team habit, and they want someone who can take feedback without getting defensive.
A product manager wants a feature by the end of the sprint. The requirements are vague and you think it's two sprints of work. What do you say?
I'd ask questions early about the user problem, the must-haves, and what success looks like. Then I'd split the work into slices and find the smallest piece that delivers real value. I'd give an honest range with my assumptions stated and offer options: a thin first slice this sprint and the rest next, or a trade against other work. I'd write down the agreed scope, flag risks early in stand-up, and demo the first slice to get feedback before building the rest.
Why they ask: Requirements often arrive loosely defined, so they want to see you push back with options instead of just saying yes or no.
Scenario walkthrough
“After yesterday's release, a key API endpoint went from 200 milliseconds to several seconds, and customers are complaining. You're on call. What do you do?”
- Scope
Confirm the impact on dashboards: which endpoints, which customers, since what time. Check whether it lines up with the deploy and whether the error rate moved too. - Stabilize
If the deploy clearly lines up and the impact is severe, first confirm a rollback is safe given any schema or data changes, or switch the change off with a feature flag if one exists. Then roll back and tell the team. - Root-cause and fix
With customers protected, compare traces before and after to find where the time goes: the database, a downstream call, or app code. Check query plans and connection pool usage, then fix forward properly, for example by adding a missing index or removing an N+1 query, and verify against production-like data. - Prevent
Add a performance test or latency alert for that endpoint, note the cause in a blameless postmortem, and add a review checklist item for query changes.
What earns points: Confirming the deploy correlation, stabilizing before deep diagnosis, checking that the rollback is safe, communicating during the incident, using data instead of guessing, and adding a lasting prevention step.
The night before
- Note the language and stack the team uses in the posting, then pick the language you know best for your coding examples.
- Do one data structures warm-up set, such as hash maps, two pointers, and an LRU cache, and narrate your reasoning and Big-O aloud as you code.
- Practice explaining EXPLAIN plans, indexing, and transactions out loud, using a real query you've written.
- Prepare short STAR stories for a code review, a requirements clarification, a production issue, an improvement you made, and a missed estimate.
- Decide how you'll honestly describe your level with cloud, Docker, Kubernetes, and CI/CD, and have a short bridge ready for each.
Reading answers isn't the same as saying them.
Send the posting you're actually applying for. An AI interviewer asks the questions it will produce, follows up like a hiring manager, and scores every answer with a stronger way to say it. You also get flash cards, an audio study session, and a guide with 12–14 likely questions and model answers, within 24 hours.
Practice for your interview · $59Try a practice interview free.
Paste your job posting and we'll email you 3 questions your interview is likely to ask, as flash cards, plus a free practice round: our AI interviewer asks you 2 of them out loud, follows up like a hiring manager, and scores each answer.
More interview prep by job
- Account Executive interview prep
- Accountant interview prep
- Administrative Assistant interview prep
- Bank Teller interview prep
- Business Analyst interview prep
- Customer Service Representative interview prep
- Data Analyst interview prep
- Executive Assistant interview prep
- Financial Analyst interview prep
- Help Desk Technician interview prep
- Human Resources Generalist interview prep
- Licensed Practical Nurse interview prep
- Marketing Coordinator interview prep
- Medical Assistant interview prep
- Operations Manager interview prep
- Pharmacy Technician interview prep
- Project Manager interview prep
- Registered Nurse interview prep
- Retail Store Manager interview prep
- Sales Representative interview prep
- Systems Administrator interview prep
- Teacher interview prep
- Warehouse Associate interview prep
Written from a guide our system built for a typical software engineer posting and reviewed by a person. Updated November 12, 2026.