Interview question library
Search interview questions by role, level and type. Each one names the answer framework that suits it and what a strong answer covers. Members can also see what candidates report being asked at a company, and practice any question out loud with feedback.
New to the frameworks? See the answer frameworks, or read the Interview Framework Cheat Sheet.
Sign in to see what candidates report being asked at a company, and the questions written for your own jobs.
Interview questions
385 questions
When would you choose a tree over a hash table?
TechnicalEngineering/SoftwareMid-levelPEEL frameworkA strong answer: Points to ordered data, range queries and predictable worst-case cost, with an example such as an index.
Explain how a heap works and where you would use one.
TechnicalEngineering/SoftwareMid-levelPEEL frameworkA strong answer: Describes the ordering rule, insertion and removal cost, and uses such as priority queues and top-k problems.
How would you design an in-memory cache with a size limit?
TechnicalEngineering/SoftwareSeniorPEEL frameworkA strong answer: Combines a hash map with a recency list for constant-time access and eviction, discusses eviction policy, expiry and concurrent access.
How would you design a URL shortening service?
TechnicalEngineering/SoftwareMid-levelXPERT frameworkA strong answer: Clarifies scale, covers key generation, storage, redirects, caching and expiry, and discusses how it grows and fails.
How would you design a rate limiter for an API?
TechnicalEngineering/SoftwareSeniorXPERT frameworkA strong answer: Compares algorithms such as token bucket and sliding window, where the limiter sits, shared state across servers, and what the client sees.
Design a news feed for a social application.
TechnicalEngineering/SoftwareSeniorXPERT frameworkA strong answer: Compares building feeds when posts are written against when they are read, covers ranking, storage, caching and very popular accounts.
How would you design a notification system that sends email, text and push messages?
TechnicalEngineering/SoftwareSeniorXPERT frameworkA strong answer: Covers queues, retries, user preferences, duplicate prevention, provider failures and how you would track delivery.
How would you design a system to process payments reliably?
TechnicalEngineering/SoftwareSeniorXPERT frameworkA strong answer: Explains idempotent requests, consistency, handling of timeouts and retries, reconciliation, and audit records.
How would you break a large application into services, and when would you not?
TechnicalEngineering/SoftwareLead / ManagerXPERT frameworkA strong answer: Weighs team independence and scaling against operational cost, describes how to find boundaries, and names cases where one application is better.
What happens when you type a web address into a browser and press enter?
TechnicalEngineering/SoftwareMid-levelXPERT frameworkA strong answer: Walks through name lookup, connection and encryption setup, the request, server handling, and rendering, at a sensible level of detail.
How do you design a system so that it stays available when a component fails?
TechnicalEngineering/SoftwareSeniorXPERT frameworkA strong answer: Covers redundancy, timeouts, retries with backoff, graceful degradation, health checks, and testing failure on purpose.
What is the difference between an inner join and a left join?
TechnicalEngineering/SoftwareEntryPEEL frameworkA strong answer: Explains which rows each returns with a small example, and when missing matches matter.
What is a database index, and what does it cost?
TechnicalEngineering/SoftwareMid-levelPEEL frameworkA strong answer: Explains how an index speeds up lookups, its cost on writes and storage, and how you would decide which columns to index.
How would you find out why a query is slow?
TechnicalEngineering/SoftwareMid-levelPEEL frameworkA strong answer: Reads the query plan, looks for full scans and poor joins, checks indexes and statistics, and measures before and after.
What is a transaction, and what do isolation levels protect against?
TechnicalEngineering/SoftwareMid-levelPEEL frameworkA strong answer: Explains all-or-nothing changes, gives examples of the problems each isolation level prevents, and the cost in performance.
When would you choose a relational database over a document or key-value store?
TechnicalEngineering/SoftwareSeniorPEEL frameworkA strong answer: Compares data shape, query needs, consistency and scale, with an example of each choice.
How would you change the structure of a large table without downtime?
TechnicalEngineering/SoftwareSeniorPEEL frameworkA strong answer: Describes backward-compatible steps: add, backfill in batches, switch reads and writes, then remove, with a way back at each step.
What makes a good API?
TechnicalEngineering/SoftwareEntryPEEL frameworkA strong answer: Covers consistent naming, clear errors, versioning, sensible defaults and documentation, with an example of a good or bad one you have used.
How do you handle authentication and authorization in a web application?
TechnicalEngineering/SoftwareMid-levelPEEL frameworkA strong answer: Separates proving who someone is from what they may do, covers sessions or tokens, and checks permissions on the server for every request.
How would you make an API call safe to retry?
TechnicalEngineering/SoftwareMid-levelPEEL frameworkA strong answer: Explains idempotency keys, which operations are naturally safe, and how the server recognizes a repeated request.
Answer frameworks
Each question in the library names the framework that suits it. Here is what each one stands for. The Interview Framework Cheat Sheet goes through each part with an example.
Best for
- Behavioral questions
- Teamwork, conflict and failure
- Initiative and pressure
Best for
- Technical problems
- Incidents and fixes
- Short follow-up answers
Best for
- Hard decisions
- Leading through change
- Weighing options
Best for
- Opinions
- "How would you approach" questions
- Showing how you think
Best for
- Explaining a concept
- Technical definitions
- Talking to people outside your field
Free tools to try
No account needed.
Other places to research
Sites we find useful. They are not part of Pitchloom.
- Company researchGlassdoorCompany reviews, pay data and interview reports from employees.(opens in a new tab)
- Pay dataLevels.fyiPay data for technology companies, by level.(opens in a new tab)
- Industry talkBlindAn anonymous community of people discussing their employers.(opens in a new tab)
- SkillsLinkedIn LearningCourses for building professional skills.(opens in a new tab)