KatInterview

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

System Design Interview Problems

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

6000
Problems
2221
Auto-graded
15
Topics
273
Added today

Showing 631–660 of 1139 results

  • System DesignMediumModel answer
    Build a Batch Text Labeling Pipeline with CSV Input

    Parse an uploaded CSV of text records, classify each via an external ML client, and write a structured JSON results file with per-row error isolation.

    System Designpythonfile-processingerror-handlingexternal-api
  • System DesignMediumModel answer
    Build a Messaging Platform with Instant and Offline Delivery

    Design an instant messaging system supporting direct and group chats with real-time delivery, offline queuing, and cross-device history sync.

    System Designmessagingreal-timedistributed-systemsscalability
  • System DesignMediumModel answer
    Real-Time Leaderboard for a High-Traffic Content Platform

    Design a distributed service that tracks the most-viewed content items over a rolling one-hour window at 100K events/sec, serving ranked results with low latency.

    System Designstream-processingdistributed-systemsapproximation-algorithms
  • System DesignMediumModel answer
    Diagnosing Performance Issues in a Live Commerce Platform

    Assess user experience, identify weak product areas through metrics, and debug suspected issues in a livestream shopping application.

    System Designproduct-analyticsdebuggingmetricsfunnel-analysis
  • System DesignHardModel answer
    Debug a Failing Django Film Catalog Filter API

    Fix defects in an existing Django REST API so that a suite of automated tests covering search, filtering, ordering, and error handling all pass.

    System Designdjangodebuggingrest-apiquerysets
  • System DesignHardModel answer
    Design a Usage-Based Billing System with Holds, Batches, and Reconciliation

    Design a billing platform that authorizes funds, captures final amounts in batches, reconciles against processor settlements, and guarantees no customer is ever charged twice.

    System Designpaymentsidempotencyreconciliationstate-machine
  • System DesignHardModel answer
    Design a Distributed Usage Enforcement System

    Design a quota enforcement service that handles millions of checks per second across many tenants, covering APIs, consistency trade-offs, hot-key handling, and billing accuracy.

    System Designrate-limitingdistributed-systemsconsistencysharding
  • System DesignMediumModel answer
    Streaming Home Feed: Visible-Grid Deduplication

    Design the algorithm and surrounding system that ensures every show tile visible on a streaming home page appears at most once, across all rows and columns.

    System Designdeduplicationpage-assemblygreedysystem-design
  • System DesignMediumModel answer
    Designing a grounded document Q&A platform with citations and access control

    Design an enterprise RAG system over millions of private documents: hybrid retrieval, reranking, cited generation, strict tenant/ACL isolation, and a 60-second freshness budget.

    System Designragretrievalsystem-designaccess-control
  • System DesignHardModel answer
    Compiler Instruction Scheduling for a Multi-Issue VLIW Processor

    Design an instruction scheduler for a 4-issue VLIW core with mixed-latency functional units, covering hazard detection, register pressure, loop pipelining, and latency sensitivity.

    System Designcompiler-backendinstruction-schedulingvliwpipeline-hazards
  • System DesignMediumModel answer
    Design a Checkout-to-PSP Payment Gateway

    Design a fault-tolerant intermediary service that processes charge requests from sellers, coordinates with an external payment provider, and maintains a consistent transaction ledger.

    System Designdistributed-systemsidempotencyfault-tolerancefinancial-systems
  • System DesignMediumModel answer
    Design a Time-Tracking and Wage Calculation Backend

    Build a backend that records employee time punches, computes hours worked per pay cycle, calculates wages, and handles burst traffic and external data feeds.

    System Designbackendscalabilitydata-modelingapi-design
  • System DesignHardModel answer
    Resilient Dispatch and Trip Lifecycle at Global Scale

    Design a real-time ride-hailing backend that ingests driver pings, matches riders without double-booking, and runs an idempotent, fault-tolerant trip state machine.

    System Designsystem-designgeospatialdistributed-systemsstate-machine
  • System DesignHardModel answer
    Design an Observability Metrics Pipeline at Scale

    Design a distributed system that ingests millions of tagged metric data points per second, enforces cardinality safety, tiers storage by age, and serves dashboard queries under 500 ms.

    System Designmetricstime-seriesdistributed-systemsobservability
  • System DesignHardModel answer
    Design a pipeline to migrate data from a SQL database to a key-value store

    Move rows from a relational database into a NoSQL key-value store with a consistent one-time snapshot followed by ongoing CDC replication from the write-ahead log.

    System Designchange-data-capturedata-migrationdistributed-systemsidempotency
  • System DesignHardModel answer
    Distributed Event Ledger, Pay Engine, Workflow Orchestration, and AI Query Assistant

    Design four backend systems: a deduplicated event counter, an immutable driver-pay ledger, a fault-tolerant offboarding workflow, and a permission-gated LLM expense assistant.

    System Designevent-drivenworkflow-orchestrationLLMledger
  • System DesignMediumModel answer
    Design a Time-Interval Vehicle Booking System

    Design a booking service for rental vehicles: availability search, temporary holds, confirmation, cancellation, concurrency control, and double-booking prevention.

    System Designconcurrencyinventory-managementdistributed-systems
  • System DesignHardModel answer
    Design a Spoken Role-Play Tutor for Many Languages

    Design a real-time multilingual voice role-play practice feature: content model, session state machine, low-latency audio pipeline, offline mode, personalization, scaling and privacy.

    System Designsystem-designspeechlow-latencymultilingual
  • System DesignMediumModel answer
    Design a Delayed Webhook Delivery Service

    Design a system that accepts a target URL, a future timestamp, and a JSON payload, then reliably delivers that payload via HTTP at the scheduled time.

    System Designsystem-designschedulingqueuesreliability
  • System DesignMediumModel answer
    Real-Time Ranking Service for Delivery Couriers

    Design a high-throughput system that ingests courier ratings and serves a low-latency top-K leaderboard under eventual consistency.

    System Designleaderboardrediskafkaaggregation
  • System DesignMediumModel answer
    LLM-Powered Review Digest Pipeline with Injection Defenses

    Design a system that ingests untrusted mobile app reviews at scale and produces safe, LLM-generated theme digests for internal product teams.

    System Designllmprompt-injectionpiipipeline
  • System DesignHardModel answer
    Build a Fault-Tolerant Job Scheduler for Async Workflows

    Design a distributed scheduling service that fires one-time and recurring jobs on time, at scale, without losing a single task across node failures or clock drift.

    System Designdistributed-systemsschedulingfault-tolerancequeues
  • System DesignMediumModel answer
    In-Memory Store with Sliding-Window Request Counter

    Design a thread-safe key-value store that tracks how many operations occurred in any recent time window, without storing one entry per request.

    System Designconcurrencymetricsring-bufferkey-value-store
  • System DesignHardModel answer
    Building a Durable Workflow Orchestrator Across Microservices

    Design a fault-tolerant engine that runs multi-step service workflows with ordering, retries, compensation, and exactly-once side effects.

    System Designworkflow-orchestrationdistributed-systemsidempotencysaga-pattern
  • System DesignMediumModel answer
    Two-Sided Local Services Feature Inside a Social Platform

    Design a home-repair hiring product embedded in a major social platform, covering user segmentation, trust mechanics, marketplace dynamics, and success metrics.

    System Designproduct designmarketplacetrust and safetymetrics
  • System DesignMediumModel answer
    Real-Time IoT Device Monitoring System

    Build a scalable backend to track health status for millions of IoT devices sending periodic check-ins and quickly identify unresponsive units.

    System Designdistributed-systemsreal-timeiotscalability
  • System DesignMediumModel answer
    Async API for Large-Scale Directory Traversal

    Build a non-blocking API and worker system to crawl millions of files across cloud storage accounts with progress tracking and fault tolerance.

    System Designasync-jobsdistributed-systemsscalability
  • System DesignMediumModel answer
    Design a Task Execution Platform with Timing Guarantees

    Build a distributed system to run scheduled and recurring tasks at scale with latency SLAs and full execution traceability.

    System Designdistributed-systemsschedulingreliabilityobservability
  • System DesignMediumModel answer
    Scaling a High-Throughput Financial Ledger: Architecture Trade-offs

    Design a transaction ledger handling 50k TPS with ACID guarantees, choosing between monolith and microservices and between sharding and replication.

    System Designdistributed-systemsdatabase-scalingconsistencymicroservices
  • System DesignMediumModel answer
    Sharded Full-Text Search for Multi-Tenant Tables

    Design a near-real-time, sharded full-text search layer over large structured tables with sub-200ms reads and petabyte scale.

    System Designsearchshardingcdcconsistency