Software engineering interviews test two things at once: whether you can solve problems, and whether people would want to solve problems alongside you. A correct solution written in silence often lands worse than a slightly slower one where the interviewer could follow your thinking.
This guide covers the questions that come up across most rounds: general questions about your experience, computer-science fundamentals explained the way you would say them out loud, the basics of system design, and behavioural questions drawn from everyday engineering work. The sample answers use [placeholders] for your own details. Replace them with real projects, real results and decisions you actually made.
Early in your career, put most of your effort into fundamentals and one or two projects you know inside out. With more experience, expect the weight to shift towards design decisions, trade-offs and how you work with other people.
How the interview usually goes
- Recruiter or HR screen: a short call about your background, your main tech stack, why you’re looking, notice period and salary expectations.
- Coding rounds (often one to three): you solve one or two problems in a shared editor or on a whiteboard while explaining your approach. Some companies add a timed online coding test or a take-home task before these.
- Computer-science fundamentals, especially for freshers and graduate roles: data structures, operating systems, databases and networking, often as quick questions between or during coding problems.
- System design, mostly for mid-level and senior roles: an open problem such as a URL shortener or a notification service. You’re judged on how you clarify requirements and weigh trade-offs, not on reaching one “correct” design.
- Behavioural or hiring-manager round: production issues, disagreements, deadlines and feedback. Many companies weigh this as heavily as the technical rounds.
General questions
Tell me about yourself.
What they’re checking: They want a short, relevant summary that connects your experience to this role, and an early sense of how clearly you communicate.
- Use present, past, next: what you work on now, what led you here, and why this role is a logical next step.
- Name your main stack once, then talk about what you built and who used it.
- Keep it under two minutes; the interviewer will follow up on whatever interests them.
- For a structured first draft, try the tell me about yourself tool, then reword it until it sounds like you.
Sample answerI’m a [backend/full-stack] engineer with [X years] of experience, currently at [Company], where I work on [the system or product area]. Most of my work is in [main language and framework]. Recently I led [a project you led], which [the outcome — for example, removed a manual step for the support team]. Before that, I [earlier role or degree], which is where I got interested in [area such as distributed systems or developer tooling]. The work I enjoy most is [a specific kind of problem]. I’m interested in this role because [a specific reason tied to the team or product], and it would let me go deeper into [a skill you want to grow].
Walk me through a project you’re proud of.
What they’re checking: This is a depth check. Interviewers listen for whether you understand the whole system, which decisions were yours, and what you would change.
- Pick a project where you made real technical decisions, not just one where the team did well.
- Say “I” for your part and “we” for the team’s; interviewers notice when the two blur.
- Expect follow-ups: why that database, how you tested it, what broke first under load.
- Mention one thing you would do differently. It shows judgement, not weakness.
Sample answerAt [Company], I built [system or feature] to solve [the problem — for example, customers waiting too long for order confirmations]. The main constraint was [traffic, latency, budget or deadline]. I designed [your part — for example, the event pipeline between orders and notifications] using [technology], and chose it over [alternative] because [reason]. The hardest part was [a specific challenge], which I handled by [what you did]. After launch, [result, with your real metric]. Looking back, I’d [one thing you’d change — for example, load-test earlier], because we found [an issue] later than we should have.
What’s your strongest programming language, and what would you change about it?
What they’re checking: Liking a language is easy. Knowing its weak spots shows you have used it seriously, on real projects.
- Pick the language you plan to code in during the interview.
- Name one or two genuine limitations and how you work around them, for example in concurrency, null handling or dependency management.
- Keep it balanced; running down other languages rarely goes well.
Coding and computer-science fundamentals
These often come up conversationally, as a warm-up or in the middle of a coding problem. Aim for a clear spoken explanation with one example, rather than a textbook definition.
How do you approach a coding problem you haven’t seen before?
What they’re checking: In live coding, the process matters as much as the final code. Interviewers want to see you clarify, plan, communicate and test.
- Restate the problem and ask about input size, edge cases and constraints before writing anything.
- Describe a brute-force approach first, give its complexity, then improve it. This shows reasoning rather than recall.
- Before you say you’re done, walk through your code with a small example and at least one edge case: empty input, duplicates, very large values.
- If you get stuck, say what you’re trying and why. The interviewer can only nudge you if they know where you are.
Explain time and space complexity.
What they’re checking: They want to know you can reason about how code behaves as input grows, and that you can state the cost of your own solution without being prompted.
- Big O describes how work grows with input size, usually in the worst case. It isn’t the exact running time.
- Count both: a solution that runs in O(n) time by storing every element in a hash map also uses O(n) extra space.
- Say the trade-off out loud whenever you choose between a faster approach and a leaner one.
Sample answerTime complexity describes how the number of operations grows as the input grows, and space complexity does the same for extra memory. We usually express both in Big O, which keeps the dominant term and ignores constants. Take checking an array for duplicates. Comparing every pair is O(n²) time but needs almost no extra memory. Putting each element into a hash set as I go brings it down to O(n) time on average, at the cost of O(n) space. Sorting first and comparing neighbours sits in between: O(n log n) time, with little extra space if the sort is in place. Which one I’d choose depends on the constraints, so I’d ask about input size and memory limits before deciding.
When would you use a hash map instead of an array?
What they’re checking: This checks that you know what each structure is good at, not just how to call it.
- Arrays: constant-time access by index, ordered, cache-friendly; finding a value means scanning unless the array is sorted.
- Hash maps: average constant-time lookup by key, but more memory, no guaranteed order, and slower behaviour when many keys collide.
- Anchor your answer in a problem you have actually solved.
Sample answerI use an array when I’m accessing items by position or the data has a natural order, like readings for each day of a month. Access by index is constant time, the memory is contiguous so iteration is fast, and the overhead is low. Finding a particular value, though, means scanning the whole thing, which is O(n), unless it’s sorted and I can binary search. A hash map fits when I need to look things up by key: counting how often each word appears, or finding a user by ID. Lookups, inserts and deletes are O(1) on average. The costs are extra memory, no guaranteed ordering, and worse performance if many keys collide. So my rule of thumb is: position or order, array; lookup by key, hash map.
What happens when you type a URL into the browser and press Enter?
What they’re checking: A classic breadth question. It shows how much of the stack you understand, from networking and security to servers and rendering, and how well you structure a long explanation.
- Go in order and signpost each step so the interviewer can stop you and dig into one.
- Mention caching at each layer: browser, operating system, DNS resolver, CDN.
- Go deeper on the part closest to your role: rendering for frontend, load balancing and application servers for backend.
Sample answerThe browser first parses the URL and checks its own cache. To find the server, it resolves the domain through DNS: the browser cache, then the operating system, then a recursive resolver, which may ask the root, top-level-domain and authoritative name servers in turn. With an IP address, the browser opens a connection: a TCP handshake and then a TLS handshake for HTTPS, or a single QUIC connection if HTTP/3 is used. It sends the HTTP request, which often reaches a CDN or load balancer first, then an application server that may read from a cache or database. When the HTML comes back, the browser parses it, fetches CSS, JavaScript and images, builds the DOM and CSSOM, and then lays out and paints the page.
What is the difference between a process and a thread?
What they’re checking: Concurrency bugs are expensive, so interviewers check that you understand what is shared and what is isolated.
- Lead with memory: each process has its own address space, while threads in a process share one.
- Follow with the consequence: sharing makes communication cheap but needs synchronisation to avoid race conditions.
- If you know your language’s concurrency model, such as an event loop or a global interpreter lock, mention it briefly.
Sample answerA process is a running program with its own memory space and resources, such as open files, isolated from other processes by the operating system. A thread is a unit of execution inside a process. Threads in the same process share its memory, but each has its own stack and registers. That makes threads cheaper to create and switch between, and they can share data directly. The sharing is also the risk: two threads updating the same data without a lock or other synchronisation can cause race conditions that are hard to reproduce. Processes are heavier and need explicit inter-process communication, like pipes or sockets, but a crash in one doesn’t take down the others. That isolation is why many browsers run tabs in separate processes.
How do you design a good REST API?
What they’re checking: Most engineers build or consume APIs every day. This checks that you know the conventions and think about the people who will call your API.
- Use nouns for resources and HTTP methods for actions: GET /orders/123 rather than /getOrder?id=123.
- Know the common status codes, including the difference between 401 (not authenticated) and 403 (authenticated but not allowed), and 429 for rate limiting.
- Mention pagination, versioning, safe retries and a consistent error format.
Sample answerI start from the resources and how clients will use them. For orders, I’d expose /orders and /orders/{id}, with GET to read, POST to create, PUT to replace, PATCH for partial updates and DELETE to remove. Status codes should mean something: 201 with the new resource on create, 404 when it doesn’t exist, 400 or 422 for validation errors, always with a consistent error body. List endpoints need pagination, usually cursor-based for large or fast-changing data, plus filtering and sorting through query parameters. GET, PUT and DELETE should be idempotent. POST isn’t, so for something like payments I’d accept an idempotency key so clients can retry safely after a timeout. Then authentication, versioning, rate limits, and an OpenAPI spec so the contract is agreed before anyone builds against it.
SQL or NoSQL: how do you choose?
What they’re checking: Interviewers want reasoning from the data and how it is accessed, not loyalty to a favourite technology.
- Start from the data: relationships, query patterns, consistency needs and expected scale.
- Avoid “NoSQL scales, SQL doesn’t”. Relational databases go a long way with good indexes, read replicas and partitioning.
- “NoSQL” covers very different designs: document, key-value, wide-column and graph stores.
Sample answerI start with the data and how it will be read and written. If it’s relational, like customers, orders and payments that reference each other, and I need transactions and flexible queries with joins, a relational database is my default. It also scales further than people expect with good indexing, read replicas and, eventually, partitioning. I’d look at a NoSQL store when the access pattern is simple, known in advance and very high-volume, such as a key-value store for sessions or a wide-column store for event data, or when records vary so much in shape that a document model fits naturally. The usual trade-offs are limited joins and, in some systems, weaker consistency guarantees. Plenty of systems use both, each for what it does best.
System design basics
System design questions are deliberately open-ended. A steady structure helps: clarify requirements, sketch the API, choose the data model, then talk about scaling and trade-offs. State your assumptions out loud and check them with the interviewer as you go.
Design a URL shortener.
What they’re checking: It’s small enough to cover in one round but touches ID generation, storage, caching and scale, which makes it a good test of how you structure an open problem.
- Spend the first few minutes on requirements: custom aliases, expiry, click analytics, and how many reads there are for every write.
- Only do rough capacity estimates if they change a decision, and present them as assumptions.
- Spend real time on how short codes are generated. That is where most of the interesting trade-offs are.
Sample answerI’d start with requirements: create a short link for a long URL, redirect quickly, and perhaps support custom aliases and expiry. It’s read-heavy, so redirects must be fast and highly available. The API is simple: POST /links takes a long URL and returns a short code, and GET /{code} redirects. A 301 lets browsers cache the redirect; a 302 means every click reaches us, which matters for analytics. Storage is essentially a key-value lookup from code to URL. For codes, I could take a unique ID from a counter service and encode it in base62, which avoids collisions but makes codes guessable, or hash the URL and handle collisions. To scale, I’d cache popular links, add read replicas or partition by code, and record clicks through a queue so redirects stay fast.
How would you design a rate limiter?
What they’re checking: Rate limiting protects services from abuse and overload. Interviewers look for the main algorithms and the problems that appear once there is more than one server.
- Clarify first: limit per user, per API key or per IP? Strict or approximate? Enforced at the gateway or inside each service?
- Know two or three algorithms, such as fixed window, sliding window and token bucket, and a weakness of each.
- Say what the client sees: HTTP 429 Too Many Requests, ideally with a Retry-After header.
Sample answerFirst I’d ask what we’re limiting, per user, per API key or per IP, and whether the limit has to be exact. For the algorithm, a token bucket is a good default. Each client has a bucket that refills at a steady rate, each request takes a token, and an empty bucket means the request is rejected. That allows short bursts while enforcing an average rate. A fixed-window counter is simpler, but a client can send up to twice the limit across a window boundary; a sliding window fixes that at some extra cost. With several servers, the counters must be shared, so I’d keep them in a fast in-memory store and update them atomically. Rejected requests get a 429 with Retry-After. I’d also decide whether to fail open or closed if that store goes down.
Behavioural questions for engineers
These questions are about judgement under pressure and working with other people. Use real stories with a clear situation, what you did and what changed afterwards; the STAR method is a reliable structure.
Tell me about a bug you caused or handled in production.
What they’re checking: Everyone ships bugs. Interviewers want to see calm triage, ownership without blame, and what you changed so it doesn’t happen again.
- Separate the phases: stopping the damage, finding the root cause, preventing a repeat.
- Own your part plainly; don’t blame a colleague or “the process”.
- End with the lasting fix, such as a test, an alert or a safer release step, not just the hotfix.
Sample answerAt [Company], a change I shipped to [component] caused [the symptom — for example, some customers being charged twice] for about [duration]. When the alerts fired, my first priority was stopping the impact, so I rolled the change back rather than patching it live, and confirmed the error rate had returned to normal. Then I traced the root cause: [the actual cause — for example, a retry that wasn’t idempotent]. I wrote a blameless post-mortem, worked with [the support or finance team] to correct the affected [records or accounts], and added [the prevention — a regression test, an idempotency check, a staged rollout]. Since then I’ve [a specific habit you changed] on every [similar change].
Tell me about a time you disagreed with a technical decision.
What they’re checking: They want to see that you can push back with evidence, listen properly, and commit once a decision is made, even when it isn’t the one you wanted.
- Choose a disagreement about substance, like architecture, a library or a deadline trade-off, not personalities.
- Show how you tested your view: a prototype, a benchmark or a written comparison.
- It’s fine if you lost the argument, as long as you committed and can say what you learnt.
Sample answerOn [project], a senior colleague proposed [their approach — for example, splitting a module into a separate service]. I thought it would add [operational overhead, latency or deployment complexity] without fixing our real problem, which was [the actual issue]. Rather than argue in the meeting, I wrote a short comparison of both options with [evidence — a quick benchmark, incident history, effort estimates] and asked for a short session to go through it together. They raised a point I hadn’t considered: [their valid point]. We ended up [the outcome — a middle path, their approach with a safeguard, or mine]. I committed fully to the decision, and I learnt that writing the trade-offs down turns a debate into a decision.
How do you handle code review feedback, both giving and receiving it?
What they’re checking: Much of the day-to-day collaboration happens in code review. They’re checking that you treat it as improving the code, not judging the person.
- Receiving: assume good intent, ask when a comment is unclear, and don’t defend code just because you wrote it.
- Giving: explain why something matters, separate blocking issues from suggestions, and point out what is done well.
- Have one concrete example of feedback that changed how you write code.
Sample answerWhen I receive feedback, I read it as information about the code, not about me. If I disagree, I reply with my reasoning, and if a thread goes back and forth more than a couple of times, I suggest a quick call instead. One review that changed how I work was when [a reviewer] pointed out [a specific issue — for example, that my error handling swallowed exceptions]; since then I [the habit you adopted]. When I review, I explain why a change matters, label comments as blocking or optional, and ask for smaller pull requests when something is too big to review properly. I also say when something is done well, because that tells people which patterns to repeat.
Questions to ask the interviewer
- What does a typical week look like for an engineer on this team, between new features, maintenance and on-call?
- How does code get from a pull request to production here?
- How are technical decisions made, and what happens when engineers disagree?
- What would you expect someone in this role to have delivered after the first three months?
- What is the biggest technical challenge the team is working on this year?
- How do engineers grow here: mentoring, ownership of projects, a defined career path?
Common mistakes
- Starting to code immediately; spend the first few minutes on inputs, constraints and edge cases, then outline your approach.
- Going silent while thinking; narrate your reasoning, even when you’re unsure, so the interviewer can follow and help.
- Declaring a solution finished without testing it; trace it with a small example and an edge case first.
- Treating system design as a list of technologies; explain why each component is there and what you are trading off.
- Saying “we” for everything in project stories; make clear which decisions and code were yours.
- Memorising solutions to specific problems; practise the underlying patterns, like two pointers, sliding windows, hashing and graph traversal, so you can adapt them.
The day before
- Re-read the job description, note the languages, frameworks and level it asks for, and prepare an example for each key requirement.
- Solve two or three problems out loud in the language you’ll use, with a timer running.
- Pick two projects you can discuss in depth: the architecture, your decisions, what went wrong and what you’d change.
- Prepare four behavioural stories: a production issue, a disagreement, feedback you acted on, and something delivered under pressure.
- For remote rounds, test your camera, microphone, internet connection and any coding platform or editor link you’ve been sent.
- Write down two or three questions for each interviewer.
Lucimeet’s AI interviewer asks you the questions, listens to your answers, asks follow-ups and scores each one — then shows a better way to say it. Your first interview is free.