KatInterview

practice a little every day — you've got this ♡

System Design Interview Problems

Practice 5973 original coding, SQL, system design, machine learning and behavioral problems across 15 topics. Coding and SQL problems run against hidden test cases right in your browser; every problem has hints and a worked solution, free.

5973
Problems
2212
Auto-graded
15
Topics
271
Added today

Showing 151–180 of 1132 results

  • System DesignMediumModel answer
    High-Throughput Alert Delivery Pipeline for Spiky Traffic

    Design a multi-channel alert delivery platform that survives spikes of roughly one million writes per second, with a justified storage engine and protection against duplicate sends.

    System Designsystem-designmessage-queuecassandraidempotency
  • System DesignMediumModel answer
    Designing a High-Throughput Financial Ledger Service

    Design an accurate, idempotent, and highly concurrent banking ledger database schema and transaction pipeline.

    System Designsystem-designdatabase-designconcurrencyfinancial-systems
  • System DesignHardModel answer
    Design an In-Memory Music Player and Playlist Engine in Go

    Design an in-memory music player engine in Go supporting playlists, deduplication, list merging, playback operations, and safe concurrent access.

    System Designsystem designgoconcurrencydata structures
  • System DesignMediumModel answer
    Build a Reliable Private Messaging Backend for Two-Person Chats

    Design a backend for private two-person chats that stores messages durably, keeps them in order, tolerates retries, replays to offline devices, and restricts access to participants.

    System Designsystem-designmessagingwebsocketidempotency
  • System DesignMediumModel answer
    Paging Through a Huge Ledger Without Gaps or Slowdowns

    Design a paginated transaction-history API over a PostgreSQL table with billions of rows, staying fast on deep pages and correct while new rows keep arriving.

    System Designpaginationkeyset-paginationpostgresqlindexing
  • System DesignHardModel answer
    Design an In-Memory Auto-Complete Service and Scale It Self-Contained

    Design an autocompletion engine using a custom in-memory trie, cover node memory optimizations and hot swaps, and scale out horizontally without adding third-party clusters.

    System Designsystem-designtriecachingscaling
  • System DesignMediumModel answer
    Build a Reliable Card Payment Backend with External PSPs

    Design a backend that takes a card payment from checkout through an external processor to a recorded, reconcilable transaction, with no double charges and no lost successes.

    System Designpaymentsidempotencyledgerreconciliation
  • System DesignMediumModel answer
    Per-User Impression Limits Over a Sliding Time Window

    Design a low-latency service that decides whether an ad may be shown to a user, enforcing "at most N impressions in the last W" caps across ad, group and campaign scopes.

    System Designsystem-designrate-limitingsliding-windowdistributed-systems
  • System DesignHardModel answer
    Dimensional Model for a Marketplace Analytics Warehouse

    Design fact and dimension tables for a marketplace to serve five business metrics, covering grain, keys, partitioning, late data, deduplication, anonymous users and changing seller attributes.

    System Designdata-warehousedimensional-modelingstar-schemascd
  • System DesignMediumModel answer
    Build a Regression-Testing Platform for LLM Agent Releases

    Design a platform where agent-building teams can test a new prompt or model against a baseline and see the effect on answer quality, tool usage, latency and cost before shipping.

    System Designml-system-designllm-evaluationagentsllm-as-judge
  • System DesignMediumModel answer
    Build a Live Bike Rental Platform: Tracking, Holds and Unlocks

    Design a bike rental backend where riders see nearby bikes live, hold one, unlock it, and end the trip, covering telemetry ingestion, geospatial lookup and race-free reservations.

    System Designsystem-designgeospatialconcurrencyiot
  • System DesignMediumModel answer
    Building a Duplicate-Safe Money Movement Service with Settlement Matching

    Design a service that moves customer funds through external bank rails without double-charging, tracks each transfer's lifecycle, and repairs mismatches using daily bank settlement files.

    System Designidempotencypaymentsstate-machinereconciliation
  • System DesignMediumModel answer
    Designing a Bot Dispatch Service for Joining Online Meetings

    Design the backend between a web UI and a pool of meeting-joining bots that safely assigns bots, tracks session state, and recovers from failures at 100K concurrent sessions.

    System Designsystem-designqueuesleasesidempotency
  • System DesignMediumModel answer
    Build a Recommendation Engine Pairing Freelance Experts with Open Jobs

    Design a low-latency engine that recommends eligible, available freelancers for client jobs, handles newcomers with no track record, and learns from downstream hiring outcomes.

    System Designsystem-designrecommendationrankingcold-start
  • System DesignMediumModel answer
    Building a Secure Login and Session Service for a Cloud App

    Design a login and session service for web and API clients using email and password, extensible to federated identity, with strong credential handling, abuse defenses, and a plan for 10x growth.

    System Designauthenticationsessionssecurityscalability
  • System DesignMediumModel answer
    Demystifying Relational Database Transactions and Isolation

    Understand the core mechanics of database transactions, the ACID guarantees, ANSI isolation levels, concurrency anomalies, and underlying MVCC implementation details.

    System Designdatabasesacidconcurrencytransactions
  • System DesignMediumModel answer
    Optimizing Airport Wi-Fi Monetization and Guest Connectivity

    Redesign the product strategy for a venue-based internet service offering limited free access followed by paid tiers to increase revenue and passenger satisfaction.

    System Designproduct-designpricing-strategyfunnel-optimizationuser-experience
  • System DesignMediumModel answer
    Architecting a Streaming LLM Chat Backend at Scale

    Design a backend that streams model-generated tokens to many concurrent users, covering the API, GPU inference fleet, KV-cache memory management, autoscaling and multi-turn session state.

    System Designllm-servingkv-cachecontinuous-batchingstreaming
  • System DesignMediumModel answer
    Crash-Safe Parallel Downloader for Versioned App Updates

    Design an update downloader that fetches a large versioned release in parallel byte ranges, resumes after crashes without redoing verified work, and publishes only a fully verified result.

    System Designsystem-designresumable-downloadsbyte-rangeintegrity-verification
  • System DesignHardModel answer
    Building a Voice Assistant Knowledge Pipeline for Festivals and Wildlife

    Design an end-to-end knowledge pipeline for a voice assistant answering holiday and animal questions, fix mis-routed queries, and build a framework for debugging failures.

    System Designdata-pipelineknowledge-graphentity-linkingintent-classification
  • System DesignMediumModel answer
    Smart Parcel Cubby Network: Reservations and Offline Kiosks

    Design a backend for networked parcel cubbies in three sizes, preventing double booking of the last cubby and staying consistent when kiosks lose connectivity.

    System Designsystem-designconcurrencyreservationsidempotency
  • System DesignEasyModel answer
    Troubleshooting High Latency in a Production Microservice

    A guide on investigating and resolving a sudden 15x latency spike on a critical path service in a Kubernetes environment.

    System Designincident-responsesreobservabilitykubernetes
  • System DesignMediumModel answer
    Designing a Flash-Sale Ticketing Platform That Never Double-Sells

    Design a ticketing platform that survives a sudden surge when sales open, holds seats during checkout, and guarantees no ticket is ever sold to two buyers.

    System Designsystem-designconcurrencyrate-limitinginventory
  • System DesignMediumModel answer
    Fresh Food Stock and Fleet Tracking Platform Design

    Design a backend that follows perishable stock across warehouses and trucks, answers nearest-and-soonest-expiring queries, prevents overselling, and raises expiry warnings.

    System Designsystem-designgeospatialstreaminginventory
  • System DesignHardModel answer
    Designing a Distributed MapReduce Data Pipeline

    Design a large-scale MapReduce batch execution platform covering task scheduling, shuffle optimization, data skew mitigation, fault recovery, and commit semantics.

    System Designsystem-designdistributed-systemsmapreducedata-engineering
  • System DesignMediumModel answer
    Spring Framework vs Spring Boot: What Boot Actually Adds

    Explain how Spring Boot relates to the core Spring Framework, covering configuration, auto-configuration, servers, dependencies, startup and when to pick each.

    System Designjavaspringspring-bootauto-configuration
  • System DesignMediumModel answer
    Storage, Isolation, Orchestration and Speed: Four Engineering Trade-offs

    Answer four fundamentals questions: relational vs NoSQL storage, VMs vs containers, what Kubernetes adds beyond Docker, and why Python lags C++ and how to close the gap.

    System Designdatabasesdockerkubernetespython-performance
  • System DesignMediumModel answer
    Trending Queries Service: Ranking the Most Frequent Searches

    Design a scalable pipeline that ingests a high volume of search events and serves low-latency Top-K rankings, both all-time and over recent sliding windows, across multiple regions.

    System Designsystem-designtop-kstreamingcount-min-sketch
  • System DesignMediumModel answer
    Design a Concurrent Low-Latency Logging Library

    Architect an in-process, multi-threaded logging framework with non-blocking record hand-off, dynamic log filtering, pluggable formatters, and resilient appender management.

    System Designobject-oriented-designconcurrencylow-level-designthread-safety
  • System DesignHardModel answer
    Build an AI Agent That Triages and Diagnoses Incoming Tickets

    Design an LLM-driven agent that triages tickets, gathers operational evidence, proposes a root cause and fix, and acts only within strict human-approval and safety boundaries.

    System Designllm-agentsml-system-designincident-responseretrieval