KatInterview

Topic

System Design interview problems

Scalable services, storage, caching and trade-offs. 1133 original problems, each with a worked model answer.

Problems1133

43 easy720 medium370 hard

Showing 211–240 of 1133 results

  • Walk through an end-to-end incident response plan for high cache misses and service latency, covering triage, observability, hypothesis testing, mitigations, and post-incident RCA.

    Model answercachingincident-responsedistributed-systemsobservability
  • Architect an in-house email/password signup and login system emphasizing secure password storage, API contract design, session state management, and edge-case handling.

    Model answerauthenticationsecurityapi-designdatabase-design
  • Design a SaaS learning platform where organizations run separate course catalogs, learners buy access via an external payment provider, and prerequisite rules gate enrollment.

    Model answersystem-designmulti-tenancypaymentsidempotency
  • Architect two scalable backend platforms: a low-latency, geo-partitioned ride-hailing system and an asynchronous, queue-decoupled price tracking and notification pipeline.

    Model answersystem-designdistributed-systemsgeospatialevent-driven
  • Open-ended round: describe a significant system you personally owned, then justify its design, technology choices and hardest problems while an interviewer questions each decision.

    Model answerproject-deep-divearchitecturetrade-offsownership
  • Analyze a short-video platform as a four-sided marketplace of viewers, creators, advertisers and merchants, then propose and defend a 12-month strategy with metrics and trade-offs.

    Model answerproduct-strategyplatform-ecosystemmarketplacemetrics
  • Design a middleware that packs prompt, history, retrieved passages and tool results into a 32k-token window with prioritization, citations, injection isolation and fallbacks.

    Model answerllmragcontext-windowprompt-injection
  • Analyze Python runtime behaviors including mutable defaults, generator execution and cleanup, GIL-bound concurrency choices, and custom context manager protocols.

    Model answerpythonconcurrencymemory-managementruntime-mechanics
  • Design a backend for a personal task manager serving millions, covering API contracts and versioning, tenant isolation, per-user throttling, caching, and data partitioning.

    Model answersystem-designrest-apirate-limitingcaching
  • Design a REST API and database schema for booking a stay or rental, compare per-day and interval inventory models, and support extending an existing reservation.

    Model answerrest-apischema-designinventory-modelingconcurrency
  • Design a feature flag service enabling dynamic percentage rollouts, user targeted overrides, and ultra-low latency evaluation across distributed microservices.

    Model answersystem-designdistributed-systemscachingfeature-flags
  • Justify a database architecture by linking relational schema choices, targeted index designs, CAP theorem partition behaviors, and concurrency strategies to specific system access patterns.

    Model answerdatabase-designconcurrencyindexingtransactions
  • Design a pipeline that records ad clicks at extreme scale, drops repeat clicks within 30 seconds, serves windowed counts per ad, and never loses billable data.

    Model answersystem-designstreamingkafkadeduplication
  • Plan a layered cloud network for 2,000 servers with IP sizing, unified Linux and Windows operations, shared file storage, and single sign-on across services.

    Model answervpcnetworkingcidr-planningsystems-management
  • Design a system that versions LLM prompts, models, retrieval and decoding settings, rolls changes out gradually, traces every request to its exact config, and rolls back instantly.

    Model answerllm-opsragconfig-managementcanary-rollout
  • Design a distributed container execution system featuring resource-constrained scheduling, job lifecycle management, self-fencing node agents, and scalable metric ingestion.

    Model answersystem-designkubernetesdistributed-systemsmetrics
  • Design a distributed service that caps each user's request volume per rolling minute across many app servers, rejecting excess calls with HTTP 429 while staying fast and available.

    Model answerrate-limitingdistributed-systemsredissliding-window
  • Model a high-volume user event stream in a relational warehouse so engagement metrics are cheap to compute, handling duplicates, late data, backfills and incremental rollups.

    Model answerdata-modelingpartitioningevent-analyticslate-arriving-data
  • Design a backend that accepts text prompts, renders short AI-generated videos on a pool of expensive GPUs, and survives bursts, worker crashes, and uneven hardware.

    Model answerasync-jobsgpu-schedulingjob-queueautoscaling
  • Architect an enterprise marketing dispatch platform supporting timezone-aware scheduling, template rendering, deduplication, fault-tolerant ESP dispatch, and tracking.

    Model answersystem-designdistributed-systemsevent-drivenmessaging
  • Design an async service that merges four backend calls into one app-startup response, aborting on a critical failure and degrading gracefully on optional ones, within a fixed latency budget.

    Model answerasyncresiliencetimeoutsapi-aggregation
  • Design a scalable, fault-tolerant job scheduler that manages delayed execution, recurring tasks, worker leasing, and failure recovery with at-least-once delivery.

    Model answersystem-designdistributed-systemsqueuestask-scheduler
  • Decide between threads, processes, or a hybrid for a CPU-bound image preprocessing service, weighing memory, GIL limits, IPC cost, crash isolation and how to benchmark.

    Model answerconcurrencythreads-vs-processesshared-memorygil
  • Design a booking backend for hot live events that never double-sells a seat, holds seats briefly during checkout, guarantees tickets after successful payment, and fairly offers released seats to a waitlist.

    Model answersystem-designconcurrencydistributed-systemspayments
  • Design a backend that lets a retailer rate, buy labels, and track parcels across multiple couriers behind a single internal API, with safe retries and fault isolation.

    Model answersystem-designapi-designidempotencythird-party-integration
  • Design a scalable architecture for validating hardware telemetry, enforcing schema contracts, and orchestrating automated rollout/rollback decisions based on fleet health metrics.

    Model answersystem-designtelemetrystreamingrelease-engineering
  • Design a rate-aware ingestion engine and fault-tolerant checkpointing architecture for massive LLM DAG workflows facing strict provider quotas and ambiguous request failures.

    Model answersystem-designdistributed-systemsfault-tolerancerate-limiting
  • Explain a production service you own end to end, then defend its data flow, storage, failure handling and trade-offs as an interviewer probes the weakest points.

    Model answersystem-designtechnical-deep-divearchitecturetrade-offs
  • Find the cause of a production failure using only SSH and huge log files, then design a centralized logging platform and justify the storage and cost trade-offs.

    Model answerloggingobservabilityincident-responselinux-cli
  • Explain how OS processes and threads differ in isolation, scheduling, switching cost, communication, failure and security, and justify which to choose for real production services.

    Model answeroperating-systemsconcurrencyprocessesthreads

More topics