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 811–840 of 1133 results

  • Design a scalable system that continuously pulls articles from tens of thousands of publisher feeds, deduplicates and clusters related coverage, and serves personalized ranked feeds under 100ms.

    Model answersystem-designdistributed-systemscachingsearch
  • Evaluate low-level C++ skills: memory layout, copy semantics, alignment/padding, and how SSO eliminates heap allocations for short strings.

    Model answerC++memory-managementsmall-string-optimizationcache
  • Architect an LLM-powered agent for internal analysts that enforces row-level access control, supports durable multi-step workflows, and gates consequential actions behind human approval.

    Model answeragentic-systemsRBACLLMaudit-logging
  • Design a backend that ingests millions of concurrent device data streams, separating critical alerts from bulk telemetry while explicitly reasoning through availability, scalability, and maintainability trade-offs.

    Model answerdistributed-systemsstreamingkafkascalability
  • Design a distributed autocomplete backend that returns the top 10 popularity-ranked query completions for any typed prefix in under 30ms at global scale.

    Model answerautocompletedistributed-systemscachingstreaming
  • Design the backend for a calendar platform that handles event creation, recurrence rules, shared access permissions, and scalable notification delivery.

    Model answersystem-designschedulingdatabasesdistributed-systems
  • Design a system that blocks untrusted IP addresses at an API gateway, handles rule versioning and expiration, and replicates enforcement state across data centers.

    Model answersystem-designnetworkingdistributed-systems
  • Design a containerized CI pipeline that runs automated Vulkan/OpenGL render-and-compare tests on a mixed NVIDIA/AMD GPU fleet with reproducibility, security, and fast feedback.

    Model answerdockergpuci-cdgraphics
  • Design a layered, evidence-driven diagnostic plan to find why an SSH daemon is unreachable, from the client all the way down to daemon logs.

    Model answerlinuxnetworkingsshsre
  • Design the data pipeline, key metrics, and adoption strategy for an internal compute platform used by hundreds of engineering teams.

    Model answertelemetrydeveloper-platformsmetricsdata-pipeline
  • Design a distributed service that tracks per-user byte consumption, enforces storage limits across concurrent multi-part uploads, and reconciles drift against blob storage.

    Model answerdistributed-systemsconsistencyconcurrencystorage
  • Design the backend system that moves a customer order through reservation, payment, fulfillment, and shipping while handling failures and partial states gracefully.

    Model answerdistributed-systemsevent-drivenidempotencysaga-pattern
  • Design an ingestion service that pulls from thousands of heterogeneous partner APIs with resumable checkpoints, raw-first staging, fair per-tenant throttling, and replayable normalization.

    Model answersystem-designdata-ingestionrate-limitingidempotency
  • Design a multi-user spreadsheet system where concurrent editors stay in sync, conflicts resolve correctly, and clients recover cleanly after disconnects.

    Model answerreal-timecollaborative editingconflict resolutionOT
  • Design a compliance audit logging platform that ingests events at scale, proves tamper-evidence cryptographically, detects sequence gaps, and serves fast investigation queries.

    Model answeraudit-loggingcryptographymulti-tenancystream-processing
  • Build an observability system to capture, diagnose, and query failures in LLM agent tool calls across retries and execution phases.

    Model answerdistributed-systemsobservabilityllm-agentstracing
  • Build a search input that fetches and displays suggestions as the user types, using a debounce you write yourself and handling stale responses, keyboard navigation, and cleanup.

    Model answerreactdebounceasyncaccessibility
  • Design a system that continuously pulls article metadata from third-party publisher APIs and serves each user a ranked, paginated feed based on the publishers and categories they follow.

    Model answersystem-designfeedpollingpagination
  • Design a thread-safe pub/sub service whose publishers never wait on slow consumers, using per-subscription mailboxes, a snapshot-then-fan-out registry, and clean shutdown.

    Model answerconcurrencythreadingpub-subbackpressure
  • Design a multi-restaurant reservation platform where diners search availability by party size and time, then book, modify, or cancel — without ever double-booking a table.

    Model answersystem-designconcurrencydistributed-systemsdatabase
  • Design an inventory service on hard drives with little memory: layout records to minimize seeks, pin the index, cache hot items, batch writes, and keep reservations correct.

    Model answerstorage-enginecachingb-treewrite-ahead-log
  • Design a multi-tenant system that reserves, meters, and settles GPU credits across many nodes, with hierarchical budgets, idempotent APIs, and scheduler integration.

    Model answerledgermeteringmulti-tenancyidempotency
  • Design a platform where businesses deploy an AI receptionist over phone and chat, using approved knowledge, permitted actions, and live human handoff.

    Model answeraimulti-tenantreal-timeconversational-ai
  • Explain how JavaScript achieves concurrency on a single thread, when real parallelism is possible, and how useState and useRef differ in a React component.

    Model answerjavascriptreactconcurrencyhooks
  • Design a tagging system supporting tag lifecycle, boolean item queries, autocomplete, and high read/write throughput across thousands of tenants.

    Model answersystem-designdistributed-systemsindexingsharding
  • Implement a fault-tolerant multi-source data aggregator with retry handling, then find and fix bugs in a load balancer and extend it with round-robin and consistent hashing.

    Model answerfault-toleranceload-balancingretry-logicapi-aggregation
  • Design data structures and APIs for a reservation system that runs entirely in memory, handles concurrent bookings, and prevents double-reservations.

    Model answerconcurrencyin-memorylow-level-design
  • Design a service where users set a target price on any product and receive a notification the moment the price drops to or below that target.

    Model answersystem-designscalabilitydata-modelingalerting
  • Design session-based state persistence, field-level validation with error feedback, and exception handling for a wizard-style form in Spring Boot with Thymeleaf.

    Model answerspring-bootweb-frameworkssession-managementvalidation
  • Explain how C++ smart pointers encode ownership semantics, prevent memory bugs, and compare in runtime cost against raw pointers.

    Model answerC++memory-managementRAIIperformance

More topics