KatInterview

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

System Design Interview Problems

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

5980
Problems
2215
Auto-graded
15
Topics
272
Added today

Showing 931–960 of 1133 results

  • System DesignHardModel answer
    API Design for a Frequency Analysis Service

    Design comprehensive input validation, error handling, and operational safeguards for a RESTful endpoint that returns the most common elements from a dataset.

    System Designapi-designerror-handlingvalidationrate-limiting
  • System DesignMediumModel answer
    Design a Reliable Poller for a Lagging Upstream Database

    Determine whether variable record lag allows a fixed polling interval to guarantee one new record per poll, then define a production-ready ingestion strategy.

    System Designpollingdata-pipelinesdistributed-systemscursors
  • System DesignMediumModel answer
    Concurrency models: processes vs threads

    Contrast processes and threads as concurrency primitives, covering isolation, memory models, IPC vs shared memory, and when to choose each.

    System Designconcurrencyoperating-systemsfundamentals
  • System DesignMediumModel answer
    Distributed Job Scheduler with Pause and Resume

    Build a fault-tolerant scheduler that triggers recurring tasks on cron-like intervals with pause/resume control and multi-instance coordination.

    System Designdistributed-systemsschedulingfault-toleranceconcurrency
  • System DesignHardModel answer
    Build a Real-Time Configuration Management System

    Design a service that stores configuration data and notifies subscribed clients when values change, covering APIs, consistency, scaling, and failure handling.

    System Designdistributed-systemsreal-timepub-subconsistency
  • System DesignHardModel answer
    Define and optimize performance for a high-traffic microservice

    Design SLIs/SLOs, instrument a service, plan load tests, identify bottlenecks, and propose optimizations with trade-offs for a stateless HTTP API.

    System Designperformanceobservabilityload-testingsli-slo
  • System DesignMediumModel answer
    Design a Link Shortening Service: Codes, Storage, and Redirects

    Design a system that converts long URLs into short codes and redirects visitors at scale, covering code generation, storage choices, caching, and failure handling.

    System Designurl-shortenercachingdistributed-systems
  • System DesignMediumModel answer
    Designing a Scalable Concert Ticketing System

    Build the backend for a live event ticketing platform that prevents overselling during high-traffic on-sales while managing seat reservations and payments.

    System Designdistributed-systemsconcurrencytransactionsscalability
  • System DesignMediumModel answer
    Why One Process Never Gets CPU Time on a Two-Core System

    Given five identical CPU-bound processes on two cores where four run fairly and one runs never, pinpoint which OS subsystem is responsible and explain what can go wrong there.

    System Designoperating-systemsschedulingconcurrencystarvation
  • System DesignHardModel answer
    Design a Multi-Tenant Real-Time Chat Platform at Global Scale

    Design a collaborative messaging system supporting thousands of isolated organizations, millions of concurrent users, real-time delivery under 200ms, and global traffic distribution.

    System Designwebsocketsmulti-tenancyfan-outkafka
  • System DesignMediumModel answer
    Design an In-Process Record Buffer with Async Disk Writes

    Design a thread-safe, memory-bounded write buffer that batches records in memory and drains them to disk via a background thread under high producer concurrency.

    System Designconcurrencybufferingbackpressurebackground-threads
  • System DesignMediumModel answer
    React Community Board: Voting, Re-Ranking, and Sticky Posts

    Build a React feed where upvotes and downvotes re-sort posts by score and designated sticky posts always stay above the ranked list.

    System Designreactstate-managementaccessibilityoptimistic-updates
  • System DesignHardModel answer
    Storage System for Compiled Build Outputs

    Design a scalable distributed storage service that handles immutable binary files produced by continuous integration pipelines.

    System Designdistributed-systemsstoragescalabilityconsistency
  • System DesignMediumModel answer
    Threads vs Processes in Python: Concurrency Trade-offs

    Compare thread-based and process-based concurrency in Python, covering the GIL, memory isolation, and which model fits I/O-bound vs CPU-bound workloads.

    System Designconcurrencypythongilmultiprocessing
  • System DesignHardModel answer
    Design a Distributed Financial Ledger System

    Build a strongly consistent, double-entry ledger handling concurrent writes, balance queries, and audit trails at scale.

    System Designdistributed-systemsconsistencytransactionsfinancial-systems
  • System DesignHardModel answer
    Build a Global Marketplace Pricing System for Multiple Currencies

    Design the full stack — data model, APIs, exchange-rate pipeline, rounding, and UX — for a travel marketplace that lets guests browse and pay in any of ~50 currencies.

    System Designcurrencypaymentsdistributed-systemsdata-modeling
  • System DesignHardModel answer
    Build a Distributed Pipeline Execution Engine

    Design a fault-tolerant scheduler that executes dependency graphs across a worker fleet with lease-based dispatch and deployment safety.

    System Designdistributed-systemsschedulingstate-machinesconcurrency
  • System DesignMediumModel answer
    Design an Asynchronous Job Service for Batch File Operations

    Design an HTTP API and backend system to process large batches of files asynchronously, handling long-running work, job tracking, and failures.

    System Designapi-designasync-jobsdistributed-systemsfault-tolerance
  • System DesignMediumModel answer
    Building a Live Hashtag Popularity Ranking Service

    Design a backend that ingests social media posts at scale, computes time-sensitive popularity scores for hashtags, and serves a constantly updated list of what's trending.

    System Designstream-processingdistributed-systemsrankingreal-time
  • System DesignMediumModel answer
    Build a Large-Scale Web Crawler Architecture

    Design a distributed crawler that fetches and processes billions of web pages weekly while respecting rate limits and avoiding duplicate work.

    System Designdistributed-systemsscalabilitycrawling
  • System DesignHardModel answer
    Auditing a Parcel-Routing Scheduler: Bugs, Structures, and Concurrency

    Review a Python parcel-routing codebase for correctness bugs, complexity bottlenecks, and thread-safety failures, then propose concrete fixes for each.

    System Designcode-reviewconcurrencydata-structurescomplexity
  • System DesignHardModel answer
    Build a Large-Scale Job Scheduling System

    Design a fault-tolerant distributed system that executes millions of scheduled tasks with configurable timing, retry logic, and multi-tenant isolation.

    System Designdistributed-systemshigh-availabilityscalability
  • System DesignHardModel answer
    Build a Pipeline Execution Platform for Thousands of Tenants

    Design a scalable, multi-tenant CI/CD system that runs Git-triggered job pipelines with strong isolation, fair scheduling, live log streaming, and per-tenant billing.

    System Designsystem-designdistributed-systemsschedulingmulti-tenancy
  • System DesignMediumModel answer
    Partition Assignment and Rebalancing in Distributed Consumers

    Explain how a distributed message queue assigns partitions to consumers, handles ordering, and recovers from failures through rebalancing.

    System Designdistributed-systemsmessagingscalabilityfault-tolerance
  • System DesignHardModel answer
    Design a Medication Approval Tracking Platform with Worklists and Digests

    Design backend services for managing async insurance approval workflows, including real-time status tracking, a concurrent pharmacist task queue, and scheduled digest emails.

    System Designevent-drivenasync-workflowsdistributed-systems
  • System DesignHardModel answer
    Design a Self-Destructing Broadcast Messaging System

    Design a messaging service where one sender dispatches a message to many recipients, each of whom can read it exactly once before it disappears permanently.

    System Designmessagingdistributed-systemsfan-outconsistency
  • System DesignMediumModel answer
    Idempotent Reminder and Queue-Based Availability Notifications

    Design a backend notification system for item-due reminders and FIFO waitlist alerts that survives retries, crashes, and mutable state without sending duplicates.

    System Designidempotencynotificationsqueuesconcurrency
  • System DesignHardModel answer
    Build a Sync Engine for Multi-Scope IDE Configuration

    Design a configuration service that merges settings from org, team, workspace, user, and local scopes, syncs across devices, and handles offline edits with conflict resolution.

    System Designdistributed-systemsconflict-resolutionversioning
  • System DesignEasyModel answer
    Transitioning an Experimental System to Production

    Describe your approach for evolving an experimental prototype into a production-ready system with appropriate reliability, security, and operational support.

    System Designproduction-readinesssoftware-engineeringoperational-excellence
  • System DesignMediumModel answer
    Build a photo-sharing platform architecture

    Architect a distributed system for uploading photos, following users, and serving personalized image feeds at scale with low latency.

    System Designsystem-designdistributed-systemsscalabilitycaching