KatInterview

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

System Design Interview Problems

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

5971
Problems
2211
Auto-graded
15
Topics
272
Added today

Showing 121–150 of 1132 results

  • System DesignMediumModel answer
    Design a Request-Response Based Instant Messaging Architecture

    Architect a 1-on-1 instant messaging backend relying exclusively on standard HTTP request-response APIs, managing message synchronization, ordering, idempotency, and push delivery at scale.

    System Designsystem-designmessagingdistributed-systemshttp-polling
  • System DesignHardModel answer
    Kafka Ordering, Durability, and Exactly-Once Processing

    Describe how Kafka's partitioned, replicated log and consumer groups shape ordering, scale, and resilience, and how to get effectively-once results from a pipeline.

    System Designkafkamessagingdelivery-semanticsreplication
  • System DesignMediumModel answer
    Build a Real-Time Direct Messaging Backend for Millions of Users

    Design a horizontally scalable direct-messaging backend with live delivery, stored history, presence, per-conversation ordering and fault tolerance for 10 million daily users.

    System Designsystem-designwebsocketmessagingcassandra
  • System DesignMediumModel answer
    Circular Waits and Lock Contention: Spotting and Preventing Deadlocks

    Explain what a deadlock is, the conditions that make one possible, realistic scenarios, and the engineering techniques used to prevent, avoid, detect and recover from them.

    System Designconcurrencydeadlocklockingoperating-systems
  • System DesignMediumModel answer
    Cutting Duplicate HTTP Calls in a curl-Driven Workflow

    Instrument an HTTP client to count and attribute its calls, detect wasteful repeats, reduce them safely, and prove the change is correct and stays fixed.

    System Designobservabilityhttpcachingbatching
  • System DesignMediumModel answer
    How the JVM Allocates and Reclaims Memory Without Manual Freeing

    Walk through how the JVM places objects in memory, decides which are dead, reclaims them with different collectors, and why leaks and resource problems still occur.

    System Designjavajvmgarbage-collectionmemory-management
  • System DesignHardModel answer
    Exactly-Once Click Event Cleanup in a Streaming Lake Pipeline

    Design a Spark Structured Streaming job that removes retry-induced duplicate click events at 10M/s with a 24-hour window, handling late data, hot keys, idempotent writes, and backfills.

    System Designsparkstructured-streamingdeduplicationdata-skew
  • System DesignMediumModel answer
    Counting Nodes in a Distributed Tree Network

    Design a distributed algorithm and protocol to count all nodes in an N-ary tree using asynchronous message passing, local state, and deduplication.

    System Designdistributed-systemsconcurrencytrees-graphssystem-design
  • System DesignHardModel answer
    Serving a 70B LLM to Thousands of Concurrent Streaming Users

    Design a multi-GPU inference platform for a 70B model that streams tokens with low first-token latency, keeps GPUs busy, manages KV cache memory, and survives traffic spikes.

    System Designllm-servingcontinuous-batchingkv-cachepaged-attention
  • System DesignMediumModel answer
    Live Bidding Engine: Ordering, Contention and Push Updates

    Design a live bidding service that handles bursts of bids on popular items, keeps a strict per-item order, never loses accepted bids, and streams the leading bid to viewers.

    System Designsystem-designreal-timeconcurrencyidempotency
  • System DesignHardModel answer
    Platform Engineering Deep Dive: IaC, K8s, Edge OTA, Routing

    Explain how you would automate bare-metal and Kubernetes delivery, run edge firmware rollouts, reason about IP routing, and describe a homelab that backs up your claims.

    System Designinfrastructure-as-codekubernetesgitopsfleet-management
  • System DesignMediumModel answer
    Build a Reliable Recurring Task Scheduler with Recovery

    Design a service that fires recurring tasks on time-zone-aware schedules, survives crashes, handles missed runs, and avoids duplicate logical runs.

    System Designsystem-designschedulerdistributed-systemsidempotency
  • System DesignMediumModel answer
    Build a Real-Time Story-Grouping News Feed Platform

    Design a platform that pulls in millions of articles daily, removes syndicated copies, groups coverage into evolving stories, and serves fast ranked feeds to tens of millions of users.

    System Designsystem-designdeduplicationclusteringfeed-ranking
  • System DesignMediumModel answer
    Build a Live Programming Competition Judge at Scale

    Architect a platform where tens of thousands of contestants submit code during timed contests, with sandboxed grading, fast verdicts and a continuously updated ranking.

    System Designsystem-designsandboxingmessage-queueleaderboard
  • System DesignHardModel answer
    Build a Rule-Based Event Fan-Out Service with Webhook Delivery

    Design a platform that takes up to a million fire-and-forget events per second and pushes each one to the webhooks of tenants whose filter rules match, with retries, isolation and security.

    System Designsystem-designwebhooksevent-streamingmulti-tenancy
  • System DesignMediumModel answer
    Crash-Safe Parallel Downloader for Versioned Data Bundles

    Design a per-node client that pulls huge versioned file bundles over ranged HTTP, resumes after failures using verified chunks, and exposes only fully validated bundles.

    System Designsystem-designresumable-downloadshttp-rangeatomic-publish
  • System DesignMediumModel answer
    Seat Reservation Platform for High-Demand Ticket Sales

    Design a ticketing backend where thousands of buyers compete for the same seats, with temporary holds, safe checkout, and a firm guarantee that no seat is sold twice.

    System Designsystem-designconcurrencybookingdistributed-systems
  • System DesignEasyModel answer
    Execution Models, Go Concurrency, and Choosing a Database

    Explain how sync/async differs from blocking/non-blocking, when Go channels or mutexes fit best, and how relational and NoSQL stores compare for backend workloads.

    System Designconcurrencygolangasync-iosql-vs-nosql
  • System DesignMediumModel answer
    Event Store for Shopper Behavior Analytics and Fixed Reports

    Design a storage and ingestion system for shopper activity events that serves a known set of reports, such as regional unique viewers and top orders, with low latency.

    System Designsystem-designanalyticsolapevent-modeling
  • System DesignEasyModel answer
    Ping Works, but Is HTTPS Port 443 Open? Network Triage

    Decide whether a reply to ping proves a server's HTTPS port is usable, and explain how to test the port and narrow down where a failure occurs.

    System Designnetworkingtcpicmpfirewall
  • System DesignHardModel answer
    Architecting a Real-Time Car Dispatch Backend

    Design the backend for an on-demand car service: live driver positions, sub-second nearest-driver matching, a reliable trip lifecycle, and no double bookings at city scale.

    System Designsystem-designgeospatial-indexingreal-timeconsistency
  • System DesignMediumModel answer
    Designing a Scalable Backend for Credit Card Processing

    Design a scalable backend architecture for a card issuer handling real-time payment processing, fraud detection, ledger management, credit limits, and credit bureau batch exports.

    System Designsystem-designfintechevent-drivendistributed-systems
  • System DesignMediumModel answer
    Build a Minimal cp in C++ and Explain What the Kernel Does

    Write a C++ file-copy tool using POSIX calls, then explain page cache, write-back and kernel-assisted copy, and harden it with RAII, atomic replacement and directory support.

    System Designoperating-systemscppsystem-callsraii
  • System DesignMediumModel answer
    Design a Pay Calculation API with Retries and Idempotency

    Design a resilient HTTP API for event ingestion and worker earnings computation, featuring idempotency keys, deterministic windowing, batch partial success, and retries.

    System Designapi-designidempotencyfault-tolerancedistributed-systems
  • System DesignMediumModel answer
    Layering a Big-Data Analytics Stack: Lake, Engine, and Serving Tier

    Decide how to combine HDFS, Spark, Hive and SQL Server into a pipeline for 500 TB of logs, analyst SQL, fast executive dashboards and strict governance, and justify what to leave out.

    System Designdata-warehousehadoopsparkhive
  • System DesignMediumModel answer
    Spring Boot 3 and Java 21 Drill-Down on a Small REST Service

    Defend a small Spring Boot 3 / Java 21 REST service: explain startup, auto-configuration, proxies, modern Java features, and design and concurrency trade-offs.

    System Designspring-bootjava-21virtual-threadsdependency-injection
  • System DesignHardModel answer
    Struct Layout and Binary Compatibility in C++

    Explain how alignment and padding determine object size and layout in C++, and why the C++ ABI breaks easily across toolchains, with practical strategies for keeping binary interfaces stable.

    System Designcppmemory-layoutalignmentabi
  • System DesignMediumModel answer
    Weighing an AI Assistant for Insurance Policyholder Support

    Argue the value of putting an automated assistant in front of policyholders, tying each benefit to a mechanism and a metric, then weigh it against risks around claims and payouts.

    System Designproduct-strategychatbotinsurancemetrics
  • System DesignMediumModel answer
    Build a Link-Shortening Service That Scales to Billions

    Design a service that maps long URLs to compact aliases and redirects visitors quickly, covering APIs, storage, code generation, caching, and sharding.

    System Designsystem-designurl-shortenercachingsharding
  • System DesignMediumModel answer
    Designing and Building an In-Memory RESTful Q&A Service

    Architect and implement a minimal Q&A web service with HTTP endpoints for question creation, retrieval, and search, including pagination and data validation.

    System Designapi-designsystem-designpythonrest-api