KatInterview

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

System Design Interview Problems

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

5967
Problems
2210
Auto-graded
15
Topics
272
Added today

Showing 31–60 of 1130 results

  • System DesignMediumModel answer
    Choosing Threads, asyncio, or Processes for Python Workloads

    Explain how to tell whether a job is limited by computation or by waiting, and how the GIL affects choosing threads, asyncio, or multiprocessing for crawling, parsing, and heavy number work.

    System Designpythonconcurrencygilasyncio
  • System DesignHardModel answer
    Build a Cluster Scheduler for Generative Video Rendering on GPUs

    Design a fault-tolerant scheduler that places multi-node, all-or-nothing GPU jobs for a video generation platform, with topology-aware placement, tenant fairness and checkpoint-based preemption.

    System Designgpu-schedulinggang-schedulingpreemptionfair-sharing
  • System DesignMediumModel answer
    Streaming Ranking of the Busiest Users Over a Rolling Hour

    Design a fault-tolerant stream pipeline that keeps an exact, event-time ranking of the 100 users with the most events in the last 60 minutes, tolerating late data and skew.

    System Designstream-processingtop-ksliding-windowkafka
  • System DesignHardModel answer
    Building a Production Pipeline for Photo Object Recognition

    Design a scalable, reliable service that accepts images, runs object-detection models on GPUs, and returns labeled bounding boxes through sync and bulk APIs, with ML lifecycle and operations covered.

    System Designml-system-designobject-detectionmodel-servinggpu-inference
  • System DesignHardModel answer
    Design a Real-Time Translation API with Batching

    Design an inference backend that aggregates single-sentence translation requests into GPU batches running on a fixed 80 ms execution loop.

    System Designsystem-designml-infrastructurebatchinglatency
  • System DesignHardModel answer
    Building a Pipeline for Cross-Modal File Vectorization at Scale

    Design a multi-tenant service that turns uploaded documents, images and videos into searchable vectors, covering ingestion, inference, storage, dedup, re-embedding, and operations.

    System Designml-system-designembeddingsvector-searchgpu-batching
  • System DesignMediumModel answer
    Bootstrap a Reproducible Python Workspace and Starter Service

    Describe how to take a fresh machine to a pinned, secure, fast-feedback Python workspace and prove it works by scaffolding a small tested CLI and HTTP service.

    System Designpythontoolingvirtualenvreproducibility
  • System DesignMediumModel answer
    Architect a Multi-Tenant Team Chat Service with Live Delivery

    Design a multi-tenant team chat product covering channels, DMs, real-time delivery, history sync, search, and notifications, with per-channel ordering and tenant isolation.

    System Designsystem-designreal-timewebsocketssharding
  • System DesignHardModel answer
    Building a Type-Ahead Suggestion Service for a Large Search Box

    Design a low-latency type-ahead service that returns ranked, personalized, typo-tolerant, multilingual query suggestions while filtering abusive content and protecting user privacy.

    System Designsystem-designautocompletetrieranking
  • System DesignHardModel answer
    Input Event Capture and Deterministic Text Replay Design

    Design a pipeline that records keyboard, mouse and IME events from several devices, orders them globally, persists a log, and rebuilds the exact typed text on replay.

    System Designsystem-designevent-sourcingimewrite-ahead-log
  • System DesignMediumModel answer
    CI Pipelines with Jenkins and Handling Oversized Log Files

    Discuss your delivery-automation experience, design a Jenkins build-and-test pipeline with plugins, and explain how to search a log too big to open without loading it into memory.

    System Designjenkinsci-cddevopslog-analysis
  • System DesignMediumModel answer
    Build a Fast Pipeline for a Million-Test Suite Under Ten Minutes

    Design a CI pipeline that compiles a code change and executes roughly one million tests, returning results in ten minutes, while justifying sharding, caching, flakiness and cost decisions.

    System Designcontinuous-integrationshardingschedulingcaching
  • System DesignMediumModel answer
    Build a Race-Safe, Screen-Reader-Friendly Typeahead Combobox

    Build a generic React typeahead that debounces input, discards out-of-order responses, follows the ARIA combobox pattern, and supports full keyboard control.

    System Designreactaccessibilityariadebounce
  • System DesignMediumModel answer
    Boolean Keyword Search Engine for a High-Volume Short-Post Feed

    Design a sharded, near-real-time inverted index that answers AND/OR/NOT keyword queries over a stream of 10K new short posts per second within 200 ms.

    System Designinverted-indexsearchshardingkafka
  • System DesignMediumModel answer
    Streaming Audio Backend: Catalog Lookup, Shared Lists, Remote Control

    Design a backend for a streaming audio app covering searchable catalog, concurrently edited playlists, and ordered cross-device playback control at 50M MAU scale.

    System Designsystem-designsearch-indexconcurrency-controlwebsocket
  • System DesignHardModel answer
    Building a Multi-Tenant SQL Gateway on Iceberg Data Lakes

    Architect a hosted service that accepts SQL from a UI or API, plans and runs it against Iceberg tables on shared compute, and returns results while isolating tenants and handling writes.

    System Designsystem-designapache-icebergdistributed-querymulti-tenancy
  • System DesignHardModel answer
    Design an EV Fast-Charging Network Backend: Metering, Telemetry, Locator

    Design a backend for a fleet of EV fast-charging stalls covering energy-based billing, long-term health telemetry, and a nearby-available-charger search with prices.

    System Designsystem-designiotbillingtelemetry
  • System DesignMediumModel answer
    Cutting Read Latency in a Normalized Relational Schema

    Speed up the hottest reads of a live service backed by a normalized database, and explain the write-path cost, freshness impact and rollout plan of each change.

    System Designdatabase-designdenormalizationcachingread-latency
  • System DesignMediumModel answer
    Build a Thread-Safe Embedded Key-Value Engine from Hash Maps

    Design a concurrent embedded key-value store whose indexes are built only from hash maps, covering sharding, crash recovery, log compaction, expiry, and a testing plan.

    System Designkey-value-storeconcurrencyhash-mapdurability
  • System DesignMediumModel answer
    Stock Ledger and Support Chat: Two Backend Services

    Design an oversell-proof book stock service with search, plus a real-time one-to-one support chat with delivery receipts, history and offline handling.

    System Designsystem-designconsistencywebsocketssql-vs-nosql
  • System DesignMediumModel answer
    Build a Multi-User Live Text Editor That Never Loses Edits

    Design a browser-based rich-text editor where many people edit one document simultaneously, stay in sync, keep durable history, and survive disconnects and server failures.

    System Designsystem-designreal-timecollaborationcrdt
  • System DesignMediumModel answer
    Architecting a Video Safety Screening Pipeline at Scale

    Design a global, multi-modal system that screens uploaded videos for policy violations with ML, escalates uncertain cases to human reviewers, and keeps a tamper-proof decision history.

    System Designml-system-designcontent-moderationmultimodalhuman-in-the-loop
  • System DesignHardModel answer
    Designing a Customer Account Remapping and History Preservation Engine

    Architect an idempotent system to merge platform customer identities while maintaining account ledgers, resolving entity conflicts, and preserving query accuracy.

    System Designsystem-designdistributed-systemsdatabase-designledger
  • System DesignMediumModel answer
    Exactly-Once Disbursements Across Flaky Banking Rails

    Design a payout service that never moves money twice despite client retries, parallel workers, and gateway timeouts during peak payroll bursts.

    System Designidempotencypaymentsdistributed-systemsstate-machine
  • System DesignEasyModel answer
    Subtracting Two Sensor Feeds with Late-Arriving Corrections

    Design the contract for subtracting two timestamped numeric streams, including missing and duplicate timestamps, and a versioned, idempotent way to publish corrections for late events.

    System Designstreamingidempotencyevent-timedata-contracts
  • System DesignMediumModel answer
    Profiling CPU, Cache, and Disk Stalls in a Low-Latency Engine

    Build a measurement-first diagnosis and fix plan for three latency problems in a C++ trading service: CPU saturation, cache-hostile memory use, and slow synchronous log writes.

    System Designperformanceprofilinglow-latencylinux
  • System DesignMediumModel answer
    Building an Automated Playbook Miner for Enterprise AI Agents

    Design an end-to-end system that mines reusable agent playbooks from a company's traces and documents, tests them offline, ships them safely to agents, and keeps them current.

    System Designllm-systemsagentsml-system-designevaluation
  • System DesignHardModel answer
    Cost Model for a Two-Matmul MLP Block Across Devices

    Derive FLOPs, bytes moved, and collective traffic for a plain two-matmul MLP under several partitioning schemes, then decide which hardware limit binds.

    System Designml-systemstensor-parallelismrooflinecollectives
  • System DesignMediumModel answer
    Blocking Government-Listed IPs at the Edge of a Global Service

    Design a fleet-wide system that rejects connections from IP addresses a regulator flags as prohibited, using only the regulator's per-address lookup API as the source of truth.

    System Designsystem-designnetworkingcachingtrie
  • System DesignMediumModel answer
    Topic-Based Article Aggregator: Crawling, Dedup, and Feed Serving

    Design a service that polls tens of thousands of external publishers, stores articles without duplicates, and serves topic timelines with stable pagination under 50ms p99.

    System Designsystem-designschedulingdeduplicationcaching