KatInterview

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

System Design Interview Problems

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

5978
Problems
2214
Auto-graded
15
Topics
272
Added today

Showing 961–990 of 1133 results

  • System DesignHardModel answer
    Build a Multi-Region Distributed Storage Platform

    Design a cloud storage system handling file uploads, synchronization, and sharing with strong durability, partition tolerance, and global availability.

    System Designdistributed-systemsstoragereplicationconsistency
  • System DesignMediumModel answer
    Build an E-Commerce Book Marketplace Backend

    Architect a scalable platform for browsing, purchasing, and tracking book orders with high-availability search and transactional inventory correctness.

    System Designe-commerceinventory-managementdistributed-transactionssearch-infrastructure
  • System DesignMediumModel answer
    Design a RAG-Powered Internal Knowledge Assistant

    Architect a multi-turn chatbot that retrieves answers from internal docs using RAG, enforces per-user access controls, and handles traffic spikes under a 2-second latency budget.

    System Designragvector-searchaccess-controlconversational-ai
  • System DesignMediumModel answer
    Choosing CDC Techniques for Multi-Clock Digital Systems

    Explain the failure modes at clock domain crossings and select the right synchronization technique for single-bit signals, events, and multi-bit data transfers.

    System Designdigital-designclock-domain-crossingmetastabilityhardware
  • System DesignMediumModel answer
    Design a Multi-Channel Notification Delivery Platform at Scale

    Design a globally distributed system that delivers billions of push, email, and SMS notifications daily with low latency, at-least-once guarantees, and no duplicates on retry.

    System Designdistributed-systemsmessagingqueuesidempotency
  • System DesignMediumModel answer
    Design a Compact Link Redirect Service

    Build a distributed system that maps long URLs to short alphanumeric codes and serves fast redirects at scale.

    System Designdistributed-systemsscalabilitycachingdatabases
  • System DesignHardModel answer
    Virtual Currency Ledger with Real-Time Aggregation

    Build a transactional ledger supporting currency transfers, 24-hour flow queries, and 30-day hourly balance history at scale.

    System Designledgertransactionsaggregationdistributed-systems
  • System DesignHardModel answer
    Debug Three Injected Defects in an Open-Source Template Engine

    Track down and fix three bugs in a Python template library: a silent AST visitor gap, a directory/file confusion in template lookup, and comment-only blocks that generate invalid Python.

    System Designdebuggingastpythontemplate-engine
  • System DesignMediumModel answer
    Design a Live Multiplayer Typing Race with Spectator Support

    Design a real-time platform where players matched by language race to type the same passage, see live progress and errors, serve error-freeze penalties, and can be watched by spectators.

    System Designreal-timewebsocketsmatchmakingfan-out
  • System DesignMediumModel answer
    Build a Scalable Task Scheduling Service

    Architect a fault-tolerant distributed system that executes millions of recurring jobs with precise timing, at-least-once guarantees, and resilience to failures.

    System Designdistributed-systemsschedulingfault-tolerancescalability
  • System DesignMediumModel answer
    Real-Time Task Assignment Engine for Developer Marketplace

    Build a system that routes skill-tagged work items to qualified engineers in under 500ms while maintaining fair load distribution across 200k workers.

    System Designdistributed-systemsmatching-algorithmsscalability
  • System DesignMediumModel answer
    Handling a Service Degradation After Recent Release

    Diagnose and mitigate a performance or availability drop that appears 10–15 minutes after shipping a new version to production.

    System Designincident-responseobservabilityproduction-systems
  • System DesignMediumModel answer
    Build a Workflow Engine with an AI Coding Assistant

    Design, implement, and verify a two-endpoint workflow service—create and execute—in 45 minutes while demonstrating a disciplined plan-then-code loop with an AI assistant.

    System Designworkflow-engineai-assisted-codinggraph-executiondependency-ordering
  • System DesignMediumModel answer
    Design a Fleet-Wide Maintenance Orchestrator

    Design a system to coordinate safe, rolling maintenance operations across thousands of machines while preserving availability and handling failures.

    System Designdistributed-systemsorchestrationstate-managementfault-tolerance
  • System DesignHardModel answer
    Build a Real-Time Query Suggestion Platform

    Design a scalable service that returns ranked autocomplete suggestions as users type search queries, handling billions of requests per day with sub-100ms latency.

    System Designautocompletelow-latencycachingranking
  • System DesignHardModel answer
    Thread-Safe Config Registry with Stale-While-Revalidate

    Design a ConfigRegistry class that serves configuration to thousands of concurrent threads with lazy loading, stale fallback on failure, and no thundering herd.

    System Designconcurrencyreliabilitypythondistributed-systems
  • System DesignMediumModel answer
    Thread-Safe Memoization: Fixing a Shared Cache for Concurrent Callers

    A dict-backed memoization wrapper is called from many threads simultaneously — identify the race conditions and redesign it to be safe without killing throughput.

    System Designconcurrencythreadingpythoncaching
  • System DesignMediumModel answer
    Design a Slot-Filling Ad Service with Frequency Caps

    Design a production HTTP API that assigns ads to page slots while enforcing per-user display limits correctly under concurrency and retries.

    System Designapi-designconcurrencyidempotencydistributed-systems
  • System DesignMediumModel answer
    Bootstrap a Reproducible Python Environment for an LLM Project

    Walk through pinning a Python interpreter, isolating dependencies with a lockfile, securing API credentials, and verifying the setup with a live smoke test.

    System Designpythondev-environmentllmdependency-management
  • System DesignMediumModel answer
    Build a Distributed API Rate Limiter with Per-User Quotas

    Design a low-latency distributed rate limiter that enforces different token budgets for different users across a fleet of stateless API gateway nodes.

    System Designrate-limitingdistributed-systemscachingredis
  • System DesignMediumModel answer
    Harden a Two-Step Charge-and-Record Payment Flow

    Diagnose every failure mode in a naive charge-then-write endpoint, then redesign it to survive crashes, timeouts, retries, and concurrent duplicates.

    System Designidempotencydistributed-systemspaymentsfault-tolerance
  • System DesignHardModel answer
    Build a Request Batching System for LLM Serving

    Design an inference service that groups incoming LLM requests into batches, assuming 100ms processing per batch, with attention to queueing, routing, and failure modes.

    System Designbatchinginferencelatencythroughput
  • System DesignMediumModel answer
    Building a High-Throughput Distributed Rate Limiter

    Design a multi-region rate limiting system that handles millions of requests per second with low latency while managing hot keys and partition failures.

    System Designdistributed-systemsrate-limitingcachingscalability
  • System DesignHardModel answer
    Design a Prompt Editor with Versioning and Collaboration

    Build a web app for writing, executing, and versioning LLM prompts with efficient storage for large documents and incremental edits.

    System Designdatabase-schemaversioningobject-storagecollaboration
  • System DesignMediumModel answer
    Design a High-Throughput Telemetry Collection Platform

    Build a system to aggregate and store operational telemetry from a large distributed fleet, supporting real-time writes and historical analytics.

    System Designtime-seriesdistributed-systemsstreamingstorage
  • System DesignMediumModel answer
    Real-time A/B test monitor with late arrival tolerance

    Build a stream processor that detects traffic imbalances across experiment variants in real time, handling duplicate events and delayed data.

    System Designstreamingexperimentationstatisticsstate-management
  • System DesignMediumModel answer
    Sync Data from a Rate-Limited External API (3 req/s)

    Design a distributed service that ingests and keeps data fresh from a third-party API capped at exactly 3 requests per second.

    System Designrate-limitingdistributed-systemsdata-pipelinebackoff
  • System DesignMediumModel answer
    Build a Multi-Source Content Aggregation Platform

    Architect a system that collects content from diverse publishers, identifies user interests, and assembles personalized feeds with timely updates.

    System Designfeed-systemspersonalizationdata-ingestioncaching
  • System DesignMediumModel answer
    Cart Hold System for High-Traffic E-Commerce

    Build a scalable service that temporarily locks inventory when users add items to their cart, prevents duplicate allocation, and releases stock automatically.

    System Designconcurrencydistributed-systemscachingdatabase-design
  • System DesignMediumModel answer
    Memory Management, Secure Transport, and Protocol Trade-offs

    Contrast storage duration and allocation, explain TLS-based security in HTTPS, and compare reliable streams with unreliable datagrams.

    System Designfundamentalsnetworkingmemory-management