System Design Interview Questions, Examples, and Preparation Guide

System design interview questions test how you scope requirements, estimate capacity, connect distributed services, and defend trade-offs under failure. Those architecture skills separate higher-paid design roles from routine maintenance: in May 2025, the U.S. Bureau of Labor Statistics reported a $139,500 median annual wage for database architects and $135,980 for software developers, compared with $104,620 for database administrators. This system design interview guide covers the 4-step answer method, worked sizing math, database and resilience patterns, classic examples, and generative AI prompts.

Updated

What system design interviews test and which roles use them

A system design interview asks you to turn an open-ended prompt into a working blueprint for software, storage, and network traffic. Instead of coding a single-machine algorithm, you map how services cooperate, where state lives, and what breaks first under load.

Hiring loops across tech and regulated industries separate routine system administration from architecture. Confirm upfront whether your prompt covers broad multi-system infrastructure or a single application. Broad software engineering prompts test how you plan system-wide requirements, scope, and service boundaries, while application-focused prompts zoom in on internal databases, interfaces, or a single program's logic.

May 2025 median pay, 2025 employment, and 2025-35 projected growth for systems roles (U.S. Bureau of Labor Statistics).

May 2025 median pay, 2025 employment, and 2025-35 projected growth for systems roles (U.S. Bureau of Labor Statistics).
Occupation2025 Median Pay2025 Jobs2025-35 Growth
Computer and information systems managers$175,140685,80016%
Computer and information research scientists$140,30038,60022%
Database architects$139,50069,5009%
Software developers$135,9801,717,80010%
Computer network architects$134,050181,8008%
Computer systems analysts$105,850544,4008%
Database administrators$104,62075,0000%

How to prepare for system design interview rounds: the 4-step framework

Good system design interview preparation gives you a repeatable sequence so you never name tools before scoping the problem. Career Outlook interviewing guidance notes that an interview should be conversational, that you should pause to consider difficult questions, and that you should ask for clarification when a prompt is confusing. Treat the opening minutes the same way you scope production work: gather user and security needs, model data flows, and calculate memory, storage, and computing power before picking components.

Walk through these 4 steps in order, checking in with your interviewer at each transition the same way you would in structured case study examples.

  • Step 1: Clarify scope. Split functional requirements (core user actions) from non-functional constraints (latency targets, availability versus consistency, read-to-write ratio, security, and data retention).
  • Step 2: Estimate capacity. Convert daily traffic into average and peak queries per second (QPS), size storage over the retention window, estimate RAM for hot cache keys, and check network bandwidth.
  • Step 3: Sketch high-level design and APIs. Define 2 or 3 concrete endpoints with request and response fields, trace the primary read and write paths, and name your main database keys.
  • Step 4: Deep-dive bottlenecks and trade-offs. Resolve single points of failure, hot partitions, and tail latency using partitioning, caching, replication, rate limiting, and failover.

Worked example: capacity estimation and URL shortener design

Worked example written by our team. All traffic, payload, and retention figures are invented practice inputs. Suppose you must design a URL shortener handling 8,640,000 new URL writes per day, 10 redirect reads per write, and 5-year retention (365 days per year) at 500 bytes per record.

At 86,400 seconds per day, 8,640,000 daily writes average 100 writes per second, and the 10-to-1 read ratio gives 1,000 reads per second. Over 5 years (1,825 days), the service stores 15,768,000,000 records. At 500 bytes per record, durable storage totals 7,884,000,000,000 bytes, or 7.884 decimal terabytes. Caching 10,000,000 hot links at 500 bytes takes 5,000,000,000 bytes (5 decimal gigabytes), fitting on 1 in-memory node with a replica.

Tie the math to your diagram. Writes hit POST /v1/urls, where stateless workers pull pre-allocated numeric ranges from a coordinator and encode unique short keys without database collisions. Reads hit GET /{shortKey} through a load-sharing tier and check an in-memory cache first. Hits return a redirect response immediately. Misses query a key-partitioned database keyed by shortKey and populate the cache with staggered expiration times.

  • QPS shortcut: 86,400 requests/day = 1 QPS, 864,000/day = 10 QPS, and 8,640,000/day = 100 QPS.
  • Decimal byte scale: 1,000 bytes = 1 KB, 1,000,000 bytes = 1 MB, 1,000,000,000 bytes = 1 GB, 1,000,000,000,000 bytes = 1 TB, and 1,000,000,000,000,000 bytes = 1 PB.
  • Viral hot-key fix: add brief local in-process caching on web servers so a single popular link cannot overload a cache shard.

Distributed systems trade-offs, network routing, and caching

Every distributed blueprint balances data freshness against response speed and uptime. Before adding servers, state clearly which user actions require immediate accuracy, such as account balances or inventory updates, and which actions can tolerate a brief sync delay, such as activity counters. Model these processes and data flows first, then calculate how much memory, storage, and computing power each path requires to run efficiently.

On the network path, trace how client traffic crosses wide area networks into your multi-customer cloud infrastructure and private subnets. Explain how traffic enters the cloud boundary, how security rules inspect incoming requests, and how you distribute work across multiple application servers so no single machine becomes a bottleneck.

  • Read-path memory caching: check fast memory before querying disk storage, and explain how you expire or update stale entries when underlying records change.
  • Synchronous cache and disk updates: update memory and durable storage together when readers need fresh data immediately, while noting the slower write time.
  • Batched background writes: buffer rapid write spikes in memory and flush batches to disk when throughput matters more than instant durability, noting the data-loss risk if a node crashes early.
  • Proactive hot-item refresh: reload predictable high-traffic records before they expire so sudden read bursts do not hit your primary database all at once.

Database modeling, permissions, and scaling the data tier

Start your storage design from access patterns, consistency requirements, and security rules before naming a database engine. Use Structured Query Language (SQL) relational tables when workflows such as financial records, shipping orders, or medical data require strict schema integrity, and enforce access controls so sensitive data stay restricted to authorized users.

Interviewers also listen for how you separate initial data architecture from ongoing database administration. Walk through your data models, primary keys, indexes, and how the store integrates with existing infrastructure first, then address operational needs such as zero-downtime patches, application query tuning, and automated testing for inefficiencies.

When an interviewer asks how your database handles growth, start by calculating memory, storage, and computing needs on a single machine before splitting data across multiple hosts. If a single server cannot hold the workload, explain how you partition records across servers by a high-volume key, keep backup copies so you can restore data without loss, and verify permissions on every query.

System design interview examples and practice prompts

The original practice prompts below are written by our team to help you rehearse both multi-server infrastructure blueprints and single-application component designs. For each prompt, clarify user and security requirements first, calculate memory and storage needs, draw the data flow diagram, and test for points of failure.

Original system design practice prompts written by our team, organized by scope and bottleneck.

Original system design practice prompts written by our team, organized by scope and bottleneck.
Practice PromptDesign ScopeCore Data Flow to DiagramPrimary Risk to Test
Social media activity feedMulti-server systemPost creation path, follower feed assembly, and memory cache for active timelinesHigh-follower accounts flooding background update queues
Real-time team messagingMulti-server systemPersistent client connections, online status tracking, and ordered message storageSlowdowns during mass client reconnections and offline sync
API request rate limiterMulti-server systemShared request counters per user, time-window checks, and rejection responsesConcurrent request spikes bypassing per-account limits
Dispatch and location matchingMulti-server systemFrequent location updates, nearby search index, and trip assignment recordsHeavy write traffic and 2 users claiming the same driver
Event seat reservationMulti-server systemTemporary seat holds with expiration timers and SQL payment confirmationPreventing double booking during high-traffic sales
Parking garage controllerSingle applicationEntry and exit interfaces, spot assignment rules, and fee calculationSimultaneous gate entries assigning the same space
Automated teller workflowSingle applicationSession verification steps, balance check, cash dispense, and error rollbackHardware interruption mid-transaction requiring safe recovery
Messaging, resilience, and step-by-step failure recovery

Architects test networks and services across implementation stages specifically to catch slowdowns, blackouts, and points of failure. Senior interviewers test your whiteboard the same way by breaking dependencies mid-round.

When work does not need to finish inside the user's waiting request, place a background queue between the front-end service and worker servers so traffic spikes do not cause a blackout. Explain how workers track completed task IDs so a retried message is never processed twice, and how automated test scenarios verify failure recovery before and after upgrades.

  • Sudden cache expiration: stagger expiration times and let a single request refresh missing data while concurrent callers wait briefly, protecting the database from a sudden slowdown.
  • Slow downstream service: set strict request timeouts, cap concurrent connections per caller, and space out retry attempts so a single stalled dependency does not block the whole network.
  • Primary server outage: monitor health across nodes, promote a synchronized standby server when the primary fails, and block outdated writes from any disconnected host.
  • Repeatedly failing jobs and site blackouts: isolate malformed tasks for inspection after a retry limit, and pair regular data backups with multi-site recovery testing so teams can restore service cleanly.

Generative AI system design interview questions and PDF checklist

AI adoption is reshaping architecture interviews: computer and information research scientist employment is projected to grow 22% from 2025 to 2035 as teams adapt machine learning algorithms for cloud computing and harden database design, transition, backup, and security around AI workloads.

A generative AI system design interview tests how you calculate computing power, memory, storage, and security boundaries around large models. Print or save the 5-point checklist below if you searched for a generative AI system design interview PDF reference sheet.

  • Background document pipeline: split updated files into searchable sections, attach user permission records, and process updates asynchronously so uploads never block live queries.
  • Search and ranking tier: combine exact keyword matching with similarity search, and size memory and disk storage for your document volume before picking an index.
  • Authorized access filtering: check user and department permissions inside the database query so restricted records never enter the model prompt.
  • Incremental response delivery: return generated text progressively so users see the start of an answer quickly, and cap usage per user to control computing cost.
  • Response caching and safety checks: cache frequent answers in memory, screen inputs and outputs for sensitive data, and log source references for quality testing.
Evaluation rubric and 2-week preparation plan

Staff and principal interviewers grade 4 habits: scoping constraints first, matching storage and messaging to access patterns, catching bottlenecks with math, and adapting calmly when requirements change mid-round. Pair technical mocks with behavioral interview practice so you can explain past outages and trade-offs clearly.

Follow our 2-week plan below. On interview day, arrive 10 to 15 minutes early (or check your camera angle and keep the surrounding area neat for video rounds), ask concrete questions at the end such as expected accomplishments in the first 6 months or a typical assignment, and send a brief thank-you note within 2 days. If you interview with a federal agency, check agency-specific logistics early: U.S. Census Bureau hiring can include structured assessments and provides reasonable accommodations for an interview such as interpreting services, while U.S. Securities and Exchange Commission technical roles span areas such as information security technology and agency infrastructure.

  • Days 1 to 3: drill clarifying user and security needs, data flow modeling, QPS and storage math, and memory caching trade-offs.
  • Days 4 to 6: drill SQL schema design, data partitioning, user permissions, backup and restore plans, and network traffic routing.
  • Days 7 to 10: run timed out-loud mocks for URL shortener, activity feed, team messaging, rate limiter, seat reservation, and 1 single-application prompt.
  • Days 11 to 12: inject 1 failure per diagram (network slowdown, site blackout, or database outage) and run 1 generative AI assistant mock.

From U.S. Bureau of Labor Statistics: Software Developers, Quality Assurance Analysts, and Testers, U.S. Bureau of Labor Statistics: Database Administrators and Architects, U.S. Bureau of Labor Statistics: Computer Network Architects, U.S. Bureau of Labor Statistics: Computer Systems Analysts, U.S. Bureau of Labor Statistics: Computer and Information Research Scientists, U.S. Bureau of Labor Statistics: Computer and Information Systems Managers, U.S. Bureau of Labor Statistics Career Outlook: Employment Interviewing, U.S. Securities and Exchange Commission: Professional Opportunities, U.S. Census Bureau: Census Careers and U.S. Census Bureau: Headquarters Jobs Frequently Asked Questions.

1 practice question and sample answer

Say your answer out loud first, then read the sample answer.

Practice question

  1. Design an internal generative AI knowledge assistant that answers employee questions across frequently updated company documents while enforcing department access permissions.

    Sample answer. Example answer written by our team. The applicant is invented. Before drawing any boxes for an internal AI knowledge assistant, I would clarify 3 requirements: document freshness, response speed, and security permissions. Suppose company policies change hourly and employees need answers to begin appearing within 1 second while strictly enforcing department access rules. On the update path, a background service detects modified files, splits documents into searchable sections, records department permissions in a SQL database, and indexes the text without slowing live user traffic. On the query path, employee requests pass through a security check with per-user usage limits and an in-memory cache for repeated questions. On a cache miss, the search service filters out any section the employee's department is not authorized to view before ranking matching passages and sending cited excerpts to the language model. The service streams the answer back as words generate and logs errors for quality testing. My main trade-off is holding the search index in fast memory versus lower-cost disk storage, which I would size from total document count and peak query rate.

    It clarifies freshness, response speed, and security permissions first, separates background document indexing from live query serving, enforces department access before building the prompt, and weighs fast memory cost against storage capacity.

Practice your interview answers out loud

Soreno's AI interviewer asks behavioral and case questions out loud, follows up like a real interviewer, and scores every answer, quoting your own words.

Questions people ask

How should I structure my answer in a system design interview?

Use 4 steps: clarify functional and non-functional requirements, estimate QPS and storage capacity, sketch endpoints and high-level read/write paths, and deep-dive into bottlenecks and failover. Pause to think through difficult constraints before drawing, and ask for clarification whenever a prompt is ambiguous.

How does multi-server system design differ from single-application design in interviews?

Multi-server prompts test how you connect networks, databases, caches, and cloud infrastructure across machines and guard against slowdowns or points of failure. Single-application prompts focus on how internal software pieces, interfaces, and rules cooperate inside a single program.

How should I approach database selection and modeling in a system design interview?

Start with technical requirements, access patterns, and security rules before naming tools. Create a clear data model, use SQL where relational integrity matters, restrict access to authorized users, and plan backups to prevent data loss.

What comes up in a generative AI system design interview?

Common prompts ask you to design internal document assistants, search pipelines, and shared model gateways. Strong answers calculate memory, storage, and computing power, filter data by authorized user permissions before building prompts, cache repeated queries, and test for slowdowns.

What should I ask at the end of the interview, and when should I follow up?

Ask specific engineering questions such as what a typical assignment looks like or what you are expected to accomplish in your first 6 months. Send a brief thank-you note within 2 days reiterating your skills and interest in the role.

Keep going