KatInterview

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

System Design Interview Problems

Practice 5965 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.

5965
Problems
2208
Auto-graded
15
Topics
271
Added today

Showing 1–30 of 1130 results

  • System DesignMediumModel answer
    Build a Multi-User Live Text Editing Platform

    Design a service where many people edit one document at once, see each other's changes quickly, keep history, show live cursors, and can work offline, all while converging to one state.

    System Designsystem-designreal-timeoperational-transformationcrdt
  • System DesignMediumModel answer
    Stock Reservation Service for a Flash-Sale Storefront

    Design a stock service that reports sellable quantity and reserves items for orders without overselling under concurrency, with idempotent retries, expiry, and contention handling.

    System Designconcurrency-controlidempotencyinventorytransactions
  • System DesignMediumModel answer
    Design a Multi-Location Book Reservation & Inventory System

    Architect a distributed inventory, reservation, and circulation platform across multiple physical locations with transactional guarantees, idempotency, and search index synchronization.

    System Designsystem-designdistributed-systemsconcurrencydatabases
  • System DesignHardModel answer
    Global Link Shortener: Fast Redirects and Collision-Free Aliases

    Design a worldwide short-link service with fast, always-available redirects, unique compact IDs, custom aliases, expiry, and asynchronous click analytics.

    System Designsystem-designurl-shortenercachingid-generation
  • System DesignEasyModel answer
    Fastest Way to Get a 2 TB Dataset to a Colleague in San Francisco

    Estimate and compare network transfer against shipping physical storage for a 2 TB dataset, state assumptions, and identify when each approach wins.

    System Designback-of-envelopedata-transfernetworkingestimation
  • System DesignMediumModel answer
    Designing Reusable Agent Skills with Staged Context Loading

    Describe what a reusable skill package is in an agent system, how it differs from a plain prompt, and how loading its content in stages keeps context small while limiting risk.

    System Designagentsllm-systemscontext-managementprogressive-disclosure
  • System DesignMediumModel answer
    Design an Automated Health and Recovery Platform for a GPU Fleet

    Design a platform that ingests high-rate telemetry from 100,000 GPU servers, detects hardware faults, runs safe repair workflows, and limits how many machines are taken offline at once.

    System Designsystem-designtelemetrykafkaworkflow-engine
  • System DesignMediumModel answer
    Camera Lens Health Monitor and Intermittent Fault Triage for a Driver-Assist Vehicle

    Design a sensor layout, lens-obstruction detector and fallback logic for a driver-assist vehicle, then plan how to track down a camera fault that fires about once an hour in clear weather.

    System Designembeddedautomotivesensor-fusionfault-diagnosis
  • System DesignMediumModel answer
    Designing a Modular and Fault-Tolerant Retry Library

    Design a pluggable retry library that supports configurable backoff, jitter strategies, stopping criteria, cancellation timeouts, and dynamic retry headers.

    System DesignAPI DesignFault ToleranceConcurrencyDesign Patterns
  • System DesignMediumModel answer
    Design a Clickstream Analytics Pipeline for a Mobile App

    Design a pipeline that ingests client events such as installs and clicks, powers near-real-time dashboards, and keeps raw data for batch analysis, with explicit correctness trade-offs.

    System Designsystem-designstreamingkafkaanalytics
  • System DesignMediumModel answer
    Serving Daily-Changing Prices to a High-Traffic Launch Page

    Design the API and serving layer for product prices that change at most once a day but are read at very high rates, with atomic publishing, caching, rollback and checkout correctness.

    System Designcachingcdnversioningread-heavy
  • System DesignHardModel answer
    Host Snapshot Threat Scoring and Automated Containment Pipeline

    Design a cloud pipeline that scores host snapshots as normal or abnormal, applies safe automated containment or alerts, and exposes warning history to tenants.

    System Designml-system-designanomaly-detectionmulti-tenancyevent-driven
  • System DesignMediumModel answer
    Build a Loyalty Points Engine with an Immutable Ledger

    Design a service that turns settled payments into loyalty points using versioned earning rules, an append-only ledger, safe redemptions, and daily reconciliation.

    System Designsystem-designledgeridempotencyrules-engine
  • System DesignMediumModel answer
    Triage a Cloud-Hosted Site Stuck on a Spinner for Most Users

    Explain how you would systematically investigate a cloud-hosted web app where most visitors see an endless loading indicator while a minority get the full page.

    System Designdebuggingincident-responsegoogle-cloudfrontend
  • System DesignHardModel answer
    Design a Grounded Document Q&A Assistant on a Hosted LLM API

    Build a small retrieval-augmented chat tool with streaming answers, short memory, resilient API calls and tests, then justify the key design trade-offs.

    System Designragllmembeddingsvector-search
  • System DesignMediumModel answer
    Architect a Real-Time Direct Messaging Backend

    Design a backend for private two-person messaging that stays durable, ordered and deduplicated, with online and offline delivery, presence, and a justified split between Kafka and Redis.

    System Designsystem-designwebsocketkafkaredis
  • System DesignMediumModel answer
    Java Dispatch Rules and Choosing Between Monolith and Microservices

    Explain how Java decides which method runs (overriding versus overloading) and weigh a single deployable application against a set of independent services, including how to migrate.

    System Designjavapolymorphismdynamic-dispatchmicroservices
  • System DesignMediumModel answer
    Streaming Design for Cleaning and Near-Duplicate Removal of Web Crawl Text

    Design a horizontally scalable streaming system that extracts text from 100TB of crawled HTML, filters it, removes near-duplicates and reports live metrics, all in one pass.

    System Designsystem-designstreamingminhashlsh
  • System DesignHardModel answer
    Architecting a Scalable, Fault-Tolerant Enterprise Feature Store

    Design a production ML feature store supporting streaming and batch ingestion, low-latency online serving, point-in-time correctness, and CI/CD feature governance.

    System Designmachine-learningsystem-designdata-engineeringdistributed-systems
  • System DesignHardModel answer
    Architecting a Scalable Async Text-to-Video Generation Platform

    Design a robust ML system to handle asynchronous, long-running text-to-video inference, featuring state machine orchestration, GPU worker fault tolerance, and multi-tier scheduling.

    System Designsystem-designmachine-learningdistributed-systemsasync-processing
  • System DesignMediumModel answer
    Design a Data Ingestion System for Autonomous Vehicle Mapping Fleets

    Design an end-to-end telemetry and sensor data collection system for a mapping fleet, handling route planning, physical/wireless offloading, data quality checks, and privacy sanitization.

    System Designsystem-designdistributed-systemsetldata-pipelines
  • System DesignHardModel answer
    Architecting an Enterprise Experimentation and Feature Flag Platform

    Design a distributed, highly available A/B testing infrastructure capable of sub-millisecond variant evaluation, scale-proof event ingestion, and statistically sound automated analysis.

    System Designsystem-designab-testingdata-pipelinesdistributed-systems
  • System DesignMediumModel answer
    Building a Cited Question-Answering Service Over Text, PDFs and Images

    Design an enterprise assistant that retrieves evidence from text, PDFs and images, then generates answers with citations while respecting access controls, latency and cost limits.

    System Designragmultimodalretrievalembeddings
  • System DesignMediumModel answer
    From Class Lifecycles to Hooks: Effects, Stale Closures, Reuse

    Port a class component's fetch-and-timer lifecycle to useEffect, diagnose a stale-closure bug in a counter, and compare HOCs and render props with custom hooks.

    System DesignreacthooksuseEffectclosures
  • System DesignMediumModel answer
    Architecting a Public and Token-Shared Prompt Library

    Design a scalable prompt-sharing platform supporting public, private, and secret-link access with instant token revocation and high-throughput read caching.

    System Designsystem-designcachingauthorizationdata-modeling
  • System DesignMediumModel answer
    Design a Desktop OS Notification Framework with AI Collaboration

    Architect a local operating system notification system for desktop apps and use an AI assistant to refine specific low-level logic safely.

    System Designsystem designoperating systemsdesktop appsai workflows
  • System DesignMediumModel answer
    Build a Multi-Channel Alerting Pipeline for a Social App

    Design a backend that turns events from many product services into push and in-app alerts, with preferences, batching, rate limits, priority lanes, and safe retries.

    System Designsystem-designnotificationsmessage-queuerate-limiting
  • System DesignMediumModel answer
    Building a Tenant-Isolated Vault for Confidential PDF Review

    Design a backend for sharing sensitive PDFs across organizations with fast permission revocation, per-viewer watermarks, and a tamper-evident record of every access.

    System Designsystem-designaccess-controlmulti-tenancyaudit-logging
  • System DesignMediumModel answer
    Secure Storefront Backend: Accounts, Carts and Safe Checkout

    Design a storefront backend where users sign up, log in, browse products, manage a personal cart and place orders safely, while APIs block access to other users' data.

    System Designauthenticationauthorizationidempotencysession-management
  • System DesignMediumModel answer
    Designing a Safe Card-Charging Flow with Retries and Storage

    Design a backend flow for charging customers through an external payment provider so no one is billed twice and no payment is lost, then pick what to persist and which database to use.

    System Designidempotencypaymentsretriesdatabase-design