Anthropic System DesignDesignFree previewFree
System Design Q5 — Data Infrastructure
Last asked
Problem
Design a data-engineering / data-infrastructure system: ingest large-scale data, process it, and serve it to many stakeholders with varying access needs and sensitivities.
Recruiter blurb (verbatim)
"This interview focuses on data infrastructure systems design and doesn't need specialized ML knowledge. You'll be asked to design a system that ingests, processes, and serves large-scale data to multiple stakeholders with varying needs. We recommend brushing up on ingestion architectures, processing patterns, storage strategies at scale, and data access controls for data of varying levels of sensitivity. Being prepared to reason about tradeoffs, estimate infrastructure requirements for each facet, and discuss how your design handles failure and growth will serve you well."
Expected coverage
Ingestion — batch vs. streaming, replay safety, schema evolution, dead-letter routing. Processing — Lambda vs. Kappa, materialized views, late-arriving data, idempotent transforms. Storage at scale — columnar warehouses, lakehouses, partitioning, compaction, cost tiers. Access control — row/column-level policies, sensitivity classification, audit trail. Failure and growth — backfill strategies, capacity estimation, blast radius of bad data.
Reported instance: Telemetry System (thread:1188690#1)
One candidate's data-infra SD was a Telemetry System design (their interviewer described it as a pretty classic problem they had interviewed at least 4-5 times before): design a system that ingests, stores, and queries telemetry continuously emitted by clients (metrics, events, or log-like telemetry records), letting users query/aggregate by time range, telemetry name, and dimensions/tags. Cover at least: a client ingestion API and authentication; validation, rate limiting, buffering, and durable writes; real-time or near-real-time aggregation, storage, and querying; retention policies for raw and aggregated data; high-cardinality dimensions, duplicate delivery, out-of-order/late data, and recovery; monitoring, alerting, and multi-tenant isolation where applicable.
Naming-Variant Problem (follow-up within this instance)
Different deployed client versions may use different telemetry_name variants for the same logical signal (e.g. request_latency, request-latency, RequestLatency, req_latency). Design a mechanism that resolves known variants to one canonical metric for querying/aggregation while: preventing one logical metric from fragmenting into multiple metrics; handling historical data correctly, including backfills; retaining the original name and an auditable mapping history; avoiding incorrect merges caused by fuzzy matching or automatic clustering of similarly-named but semantically different telemetry; supporting future additions/changes/deprecations of mapping rules and explaining their effect on online queries and historical data.
Follow-ups
Naming-variant resolution: design a mechanism that resolves known telemetry_name variants (e.g. request_latency / request-latency / RequestLatency / req_latency) to one canonical metric without fragmenting the logical metric, correctly handling historical data/backfills, retaining an auditable name-mapping history, avoiding fuzzy-match/clustering-induced incorrect merges, and supporting future additions/changes/deprecations of mapping rules.
Loading the solution…
