KatInterview

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

System Design Interview Problems

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

5981
Problems
2215
Auto-graded
15
Topics
272
Added today

Showing 901–930 of 1133 results

  • System DesignMediumModel answer
    Design a Social Feed Service with Real-Time Updates

    Build a high-scale microblogging system supporting post creation, social connections, and personalized feeds with near real-time delivery.

    System Designdistributed-systemscachingdata-modelingscalability
  • System DesignHardModel answer
    Build an Event-Loop Request Batcher with Deduplication

    Design and implement an asynchronous request coalescer that collects individual key lookups into windowed batches, handles deduplication, and correlates responses.

    System Designasyncbatchingevent-loopconcurrency
  • System DesignEasyModel answer
    pytest Fixtures, Decorators, and Generators: Core Python Mechanics

    Three-part fundamentals question on how pytest fixtures are scoped and torn down, how decorators wrap functions, and how generators stream data lazily.

    System Designpythonpytestgeneratorsdecorators
  • System DesignMediumModel answer
    Multi-Vendor Order Fulfillment System

    Design a service that queries multiple vendor APIs concurrently, selects the best offer within constraints, and coordinates payment with order placement.

    System Designdistributed-systemssaga-patternidempotency
  • System DesignHardModel answer
    Real-Time Location Aggregation System with Consensus Protocols

    Build a system that aggregates streaming location data into grid cells, surfaces high-activity regions, and compare distributed consensus approaches.

    System Designstreamingdistributed-systemsconsensusgeospatial
  • System DesignMediumModel answer
    From Virtual Address to Physical Memory: A Full Walkthrough

    Trace every step a CPU takes to resolve a virtual address — TLB, page-table walk, MMU checks, page faults, and context-switch invalidation.

    System Designoperating-systemsvirtual-memoryTLBMMU
  • System DesignMediumModel answer
    Card authorization with deferred tips and batch settlement

    Build a payment platform for retail terminals that authorizes transactions, accepts post-authorization tip adjustments, and settles batches nightly.

    System Designpaymentsdistributed-systemsidempotencybatch-processing
  • System DesignEasyModel answer
    Build a Regression Test Suite for a REST API

    Design an automated testing strategy for a three-endpoint user service that survives frequent deployments without breaking existing behavior.

    System DesigntestingREST APICI/CDtest automation
  • System DesignMediumModel answer
    Chunked Upload Pipeline with Async Processing

    Design a system that handles large file uploads with resumability, processes them through async validation and transformation stages, and notifies users of completion.

    System Designdistributed-systemsasync-processingfile-uploadscalability
  • System DesignMediumModel answer
    Concurrency, Struct Layout, Polymorphism, and Idempotency Explained

    Answer four core software engineering questions covering thread synchronization, memory padding, OOP polymorphism, and idempotent operations.

    System Designconcurrencymemory-layoutobject-oriented-programmingdistributed-systems
  • System DesignEasyModel answer
    Design a Dispute Record Ingestion and Daily Batch Export System

    Design a system that reliably ingests high-volume dispute events from external networks and exports a daily batch file to a downstream accounting system.

    System Designdistributed-systemsdata-pipelineidempotencybatch-export
  • System DesignHardModel answer
    Architecting a High-Throughput Hotel Reservation Platform

    Design a backend system handling 100k reads/sec and 10k booking attempts/sec with sub-200ms latency, preventing double-bookings under viral traffic spikes.

    System Designdistributed-systemsconcurrencyscalabilityconsistency
  • System DesignMediumModel answer
    Design a Blob Storage Service with Buckets and Keys

    Design a scalable service where clients store, retrieve, list, and delete binary objects addressed by key inside named buckets.

    System Designstoragedistributed-systemsreplication
  • System DesignMediumModel answer
    Build a time-series monitoring platform with alerts

    Design an observability system that ingests high-volume metrics, supports real-time dashboards and historical analysis, and evaluates alerting rules.

    System Designtime-seriesobservabilitystreamingdata-modeling
  • System DesignMediumModel answer
    GPU Matrix Transpose: From Strided to Coalesced Memory Access

    Explain why a naive GPU matrix transpose causes uncoalesced memory traffic, then design a tiled shared-memory kernel that achieves coalesced reads and writes.

    System DesignGPUmemory-coalescingparallel-computingshared-memory
  • System DesignHardModel answer
    Design a Global Photo and Video Hosting Platform

    Architect a system that stores, processes, and serves user-generated photos and short videos at planetary scale with strong durability, low latency, and controlled cost.

    System Designobject-storageCDNmedia-processingdistributed-systems
  • System DesignMediumModel answer
    Building a High-Throughput Request Throttling System

    Design a service that enforces per-client request limits across a distributed application, handling 100k+ QPS with single-digit millisecond latency.

    System Designdistributed-systemsrate-limitingredisscalability
  • System DesignHardModel answer
    Design a Real-Time Multi-Camera Perception System for a Self-Driving Car

    Design an embedded onboard pipeline that ingests eight surround-view cameras and delivers tracked 3D obstacles, free space, and lane geometry to a motion planner within 40 ms.

    System Designautonomous-vehiclesreal-time-systemscomputer-visionembedded-systems
  • System DesignHardModel answer
    Multi-Level Key-Value Store with Expiration and Time Travel

    Build an in-memory key-value store supporting CRUD, filtered queries, automatic expiration, and historical lookups across four progressive levels.

    System Designdata-structurestime-seriesversioningttl
  • System DesignMediumModel answer
    Build a Retry-Safe Task Scheduler for Event Notifications

    Design an async notification system for item availability and due-date reminders with durable idempotency and crash recovery.

    System Designasync-tasksidempotencydistributed-systems
  • System DesignMediumModel answer
    Building a Memory-Efficient Line Deduplication Tool

    Design a command-line tool that removes duplicate lines from files too large to fit in memory, using external sorting or partitioning.

    System Designexternal-memorydeduplicationsortingscalability
  • System DesignMediumModel answer
    Design a Real-Time Stock Availability Service

    Design a distributed inventory service that tracks stock across many locations, handles concurrent reservations without overselling, and pushes availability updates to clients in near real-time.

    System Designdistributed-systemsconcurrencycachingreal-time
  • System DesignHardModel answer
    Consensus Protocols: Architectural Trade-offs and Implementation

    Contrast two distributed consensus approaches, analyzing their mechanisms for leader election, replication, and fault tolerance to recommend one for a production service.

    System Designdistributed-systemsconsensusfault-tolerancereplication
  • System DesignMediumModel answer
    Real-Time Metrics Dashboard Architecture

    Build a dashboard that shows time-series metrics with clear separation between data ingestion delay and query response time.

    System Designmonitoringtime-seriesdata-ingestionreal-time-systems
  • System DesignMediumModel answer
    Design a Social Media Activity Feed at Scale

    Design the core feed delivery system for a social platform, focusing on how to balance write amplification against read latency for users with vastly different follower counts.

    System Designfeed generationfan-outcachingdistributed systems
  • System DesignHardModel answer
    Real-Time Ranking Service for Competitive Gaming Platforms

    Build a backend that handles millions of score updates per second, returns a player's exact position plus surrounding ranks in milliseconds, and supports friend-only views.

    System Designleaderboardsscalabilityrankingreal-time-systems
  • System DesignMediumModel answer
    Rank Trending Content Across a Multi-Tenant Platform

    Design a low-latency system that returns the top-N pieces of content per workspace, ranked by a weighted engagement score, over rolling time windows.

    System Designstreamingaggregationcachingtime-windows
  • System DesignMediumModel answer
    Multi-Sensor Data Replay System for Autonomous Vehicle Scenarios

    Design a scalable system to store, index, and stream synchronized sensor recordings from autonomous vehicles, supporting variable-speed playback and metadata filtering.

    System Designstreamingdistributed-systemsdata-modelingcaching
  • System DesignMediumModel answer
    Build a Wordle Clone Component in React

    Implement a 5-letter, 5-guess word puzzle in React with correct duplicate-letter tile scoring, virtual keyboard state, and clean game-over transitions.

    System Designreacttypescriptgame-logicstate-management
  • System DesignMediumModel answer
    Keyset Pagination Design for High-Volume Event Logs

    Design a cursor-paginated API for a large append-only event ledger that avoids offset pitfalls and stays stable under concurrent inserts.

    System Designpaginationapi-designdatabase-indexingscalability