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 241–270 of 1133 results

  • Design a pipeline that polls a public weather provider for thousands of locations each hour, stores normalized history without duplicates, and serves fresh data reliably.

    Model answersystem-designdata-ingestionschedulingrate-limiting
  • Talk through how you would scope, diagnose, mitigate and follow up when a revenue-critical public API suddenly runs near 100% CPU, and justify your choice among rollback, scaling, throttling and queues.

    Model answerincident-responsetroubleshootingprofilingcapacity
  • Design a multi-region key-value database tuned for heavy reads, covering storage engine, sharding, replication, consistency, failure handling, hotspots and capacity planning.

    Model answerdistributed-systemskey-value-storereplicationconsistency
  • Design a high-level architecture for an event venue reservation platform, focusing on double-booking prevention, concurrency control, and interval-based storage.

    Model answersystem-designconcurrencydatabase-designdistributed-systems
  • Design an enterprise microservice security blueprint covering mTLS workload identity, dynamic secret management, zero-downtime rotation, and immediate secret compromise containment.

    Model answersecuritymtlsvaultsecrets-management
  • Design the backend for a workout-tracking app with real-time route sharing to followers, top-workout queries over date ranges, and ranked boards of aggregated user stats.

    Model answersystem-designleaderboardsredisstreaming
  • Pick the worker count that best minimizes total runtime when compute scales as n/k and combining partial results costs k squared, then justify it with analysis and trade-offs.

    Model answerdistributed-systemsscalabilityasymptotic-analysisparallelism
  • Architect a market-making stack for futures and options with a co-located hot path, microsecond latency targets, hard safety controls, and a remote operations site.

    Model answerlow-latencymarket-makingkernel-bypasslock-free
  • Plan how to release a fraud classifier to production, watch it over time, and bring its online p99 latency under 50 ms without giving up much accuracy.

    Model answermlopsmodel-deploymentmonitoringlatency
  • Design an end-to-end approach for spotting cheaters in a live multiplayer game, deterring them, and applying penalties while handling wrongful bans and restoring player trust.

    Model answeranti-cheatfraud-detectiontrust-and-safetystreaming-pipeline
  • Architect a memory-efficient system to compute exact all-time and probabilistic 24-hour rolling Top-K URLs from high-velocity web request logs.

    Model answersystem-designstreamingdata-structurestop-k
  • Master key SystemVerilog verification concepts including concurrency, constraint solver semantics, assertions, OOP, and hardware verification testbench architectures.

    Model answerSystemVerilogUVMHardware VerificationSVA
  • Design a multi-restaurant table booking backend that prevents double-booking, serves fast availability queries, survives peak-hour spikes, and keeps a full audit trail.

    Model answersystem-designconcurrencydata-modelingcaching
  • Work out the minimum time to push a 500 GB model checkpoint to 100-1,000 machines with 10 Gbps shared links, then design a chunked peer-to-peer rollout that approaches it.

    Model answersystem-designnetworkingpeer-to-peerbandwidth
  • Describe the full journey of a secure page request, from the browser's first lookups through DNS, connection setup, edge and backend handling, to the final rendering of the page.

    Model answernetworkingdnstlshttp
  • Architect a fault-tolerant, horizontally scalable key-value storage system utilizing consistent hashing, tunable quorums, and automated data rebalancing.

    Model answersystem-designconsistent-hashingdistributed-systemsfault-tolerance
  • Analyze noisy charging logs, define unbiased reliability metrics, formulate root cause logic in SQL, and design a debugging playbook for slow-charging sessions.

    Model answersystem-designdata-engineeringroot-cause-analysismetrics
  • Architect a high-throughput, low-latency leaderboard platform handling tens of millions of active players and millions of concurrent score updates.

    Model answersystem-designrediscachingdistributed-systems
  • Design a scalable, low-latency API and propagation architecture to block malicious IP addresses and CIDR ranges across distributed edge nodes.

    Model answersystem-designcachingnetworkingdistributed-systems
  • Design and harden two HTTP tool endpoints that let a hosted conversational agent store a user's reported problem and recite earlier ones, with a local server made reachable.

    Model answerfastapillm-toolsapi-designidempotency
  • Design a distributed throttle that accepts or rejects alerts using exact 10-minute rolling limits for a user, their team and their company, atomically and correctly across many stateless servers.

    Model answerrate-limitingdistributed-systemssliding-windowatomicity
  • Design an algorithm to find all groups of identical files in a directory tree while handling massive files, edge cases, and analyzing CPU versus disk I/O performance.

    Model answerfile-systemhashingio-performanceconcurrency
  • Design a scalable, multi-stage document processing architecture to transform complex PDFs into Markdown across synchronous streaming and asynchronous batch workflows.

    Model answersystem-designmachine-learningdistributed-systemsstreaming
  • Design a backend that lets many people edit one document at once with fast sync, offline tolerance, durable storage, and version history.

    Model answersystem-designreal-timecrdtoperational-transformation
  • Design a fault-tolerant orchestration service that runs a refund as a dependency graph of steps, survives worker crashes, avoids double refunds, and handles failure and versioning.

    Model answerworkflow-engineidempotencyoutbox-patternsaga
  • Design a distributed blob storage service with put, get, delete and list, covering metadata, data placement, multipart uploads and the trade-off between replication and erasure coding.

    Model answersystem-designdistributed-storageerasure-codingpartitioning
  • Design a distributed ledger for account-to-account transfers that stays strictly consistent, avoids overdrafts and duplicate charges, and survives crashes at any point.

    Model answersystem-designledgeracididempotency
  • Design a multi-user file storage backend that handles uploads, downloads and copies, enforces per-user space limits, and transparently compresses data, with durability, security and testing covered.

    Model answersystem-designstoragequotascompression
  • Architect an in-memory key-value cache backed by persistent disk storage, focusing on crash resilience, append-only logging, compaction, and high-volume value optimizations.

    Model answersystem-designcachingstoragedurability
  • Design a scalable and secure backend system for an LLM-powered multi-agent financial assistant with real-time streaming, conversation persistence, and strict compliance controls.

    Model answersystem-designllm-architecturestreamingdistributed-systems

More topics