Skip to content

Glossary: Interview Preparation

Every term Interview Preparation defines, from A to Z, with the section that teaches it. A section that uses a term from elsewhere, in this book or another, also lists it under “Concepts from other sections” at the top of the page.

115 terms

  • ABA problem: a CAS succeeding wrongly because a value changed and changed back between the read and the swap. Taught in 2.1.6 Concurrency Patterns
  • AllReduce: a collective that combines a value across all GPUs and leaves the result on every GPU. Taught in 1.3 ML infrastructure patterns
  • At-least-once delivery: a guarantee that a message is delivered one or more times, so receivers must tolerate duplicates. Taught in 3.4 Stripe
  • Atomic operation: an operation no other thread can observe half-done; under the GIL, a single bytecode instruction. Taught in 2.1.6 Concurrency Patterns
  • Backpressure: limiting how far a producer can run ahead of a slow consumer, here by bounding the per-stream buffer. Taught in 2.1.8 Streaming and Server-Sent Events
  • Bar Raiser: an interviewer from outside the hiring team, with veto power, who ensures each hire raises the bar. Taught in 3.2 Amazon
  • Bellman-Ford: a shortest-path algorithm that relaxes every edge in rounds; limiting the rounds limits the number of edges per path. Taught in 4.2 Two Sigma
  • BFS level: the set of URLs at the same distance from the seed, processed together in one pass. Taught in 2.1.2 The First Coding Round: Concurrent Systems
  • Bridge (critical connection): an edge whose removal increases the number of connected components. Taught in 4.2 Two Sigma
  • DAG dependency: a directed, acyclic “must finish before” relation between tasks. Taught in 2.1.1 The Online Assessment
  • Defense: a written answer to a fixed design-review rubric in which every claim cites evidence that could falsify it. Taught in 6.1 Defend your system
  • Design-review rubric: the eight questions, from problem statement to open questions, that a design must answer in order. Taught in 6.1 Defend your system
  • Differential privacy: a guarantee that a released statistic changes very little whether or not any one individual’s data is included, parameterized by ε\varepsilon. Taught in 2.6 Apple
  • Distributed Data Parallel (DDP): one model replica per GPU, each on a data shard, with gradients all-reduced every step. Taught in 1.3 ML infrastructure patterns
  • Divergence point: the length of the longest common prefix of two consecutive stack samples. Taught in 2.1.4 The Second Coding Round: Data Structures and Concurrency Primitives
  • Double-entry bookkeeping: recording every transaction as debits and credits that sum to zero. Taught in 3.4 Stripe
  • Drift: a change in the distribution of inputs or predictions relative to what the model was trained on. Taught in 1.2 Full-stack AI engineering
  • Dual write: writing to both the old and new data stores during a migration so they can be compared before cutover. Taught in 2.1.5 The Hiring Manager Interview
  • Dummy (sentinel) node: a placeholder node at the head or tail of a linked list that removes empty-list special cases. Taught in 2.1.1 The Online Assessment
  • Dunning: the schedule of retries and reminders that follows a failed subscription payment. Taught in 3.4 Stripe
  • Dynamic batching: grouping concurrent inference requests into one batch, bounded by a size and a maximum wait. Taught in 1.2 Full-stack AI engineering
  • Dynamic programming: solving a problem by combining solutions to overlapping subproblems stored in a table. Taught in 4.2 Two Sigma
  • Elevation angle: the angle of a satellite above the local horizon as seen from a ground station; links are usable only above a minimum value. Taught in 5.1 SpaceX
  • Error budget: the fraction of requests (or time) an SLO allows to fail. Taught in 1.1 Distributed systems fundamentals
  • Event loop: asyncio’s single-threaded scheduler, which runs coroutines until they await and then switches. Taught in 2.1.2 The First Coding Round: Concurrent Systems
  • Evidence hierarchy: the ranking contract file, then measured number or config value, then estimate, then adjective. Taught in 6.1 Defend your system
  • Exponential backoff: retrying after delays that grow geometrically (here 2n2^n seconds, capped at 30) to avoid overloading a failing dependency. Taught in 3.4 Stripe
  • False sharing: cores contending for a cache line because unrelated variables they write share it. Taught in 4.3 Citadel and Citadel Securities
  • Feature store: a system that computes features once and serves them both online, for inference, and offline, for training. Taught in 1.2 Full-stack AI engineering
  • Federated learning: training a shared model on user devices and sending only model updates to the server. Taught in 2.6 Apple
  • Hash join: joining two tables by building a hash table on one side’s key and probing it with the other side. Taught in 3.3 Databricks
  • Heartbeat: a periodic SSE comment that keeps intermediaries from closing an idle connection. Taught in 2.1.8 Streaming and Server-Sent Events
  • Idempotency key: a client-chosen identifier that makes a repeated request return the original result instead of performing the operation again. Taught in 3.4 Stripe
  • Idempotent consumer: a consumer for which processing the same message twice has the same effect as once. Taught in 1.1 Distributed systems fundamentals
  • KV cache: per-request storage of attention keys and values for already-processed tokens, so they are not recomputed. Taught in 2.1.3 The System Design Round
  • KV cache: per-request storage of attention keys and values, sized 2⋅L⋅H⋅D⋅S⋅sizeof(dtype)2 \cdot L \cdot H \cdot D \cdot S \cdot \text{sizeof(dtype)}. Taught in 2.1.7 GPU Inference Serving
  • Lakehouse: an architecture that provides warehouse guarantees (transactions, schemas, governance) over open files on cheap object storage. Taught in 3.3 Databricks
  • Laplace mechanism: achieving ε\varepsilon-differential privacy by adding Laplace noise with scale sensitivity/ε/\varepsilon. Taught in 2.6 Apple
  • Last-Event-ID: the header a reconnecting SSE client sends so the server can resume after the last event received. Taught in 2.1.8 Streaming and Server-Sent Events
  • Lazy expiry: removing an expired entry only when it is next read or scanned, rather than with a background sweeper. Taught in 2.1.1 The Online Assessment
  • Leadership Principles (LPs): Amazon’s 16 cultural principles, assessed in every interview round. Taught in 3.2 Amazon
  • LEO: low Earth orbit, which gives Starlink its 20-40 ms round-trip latency. Taught in 5.1 SpaceX
  • Linearizability: the strongest consistency model, in which every read sees the latest write globally. Taught in 1.1 Distributed systems fundamentals
  • Lock ordering: a global order in which all threads acquire locks, which prevents deadlock cycles. Taught in 2.1.6 Concurrency Patterns
  • Longest common subsequence (LCS): the longest sequence appearing in order, not necessarily contiguously, in two strings. Taught in 4.3 Citadel and Citadel Securities
  • Low-link value: in Tarjan’s algorithm, the earliest discovery time reachable from a vertex’s DFS subtree through at most one back edge. Taught in 4.2 Two Sigma
  • LRU cache: a bounded cache that evicts the least recently used entry when it is full. Taught in 2.1.1 The Online Assessment
  • Market maker: a firm that continuously quotes buy and sell prices and profits from the spread; Citadel Securities is one. Taught in 4.3 Citadel and Citadel Securities
  • Medallion architecture: organizing lake data into Bronze (raw), Silver (cleaned), and Gold (aggregated) layers. Taught in 3.3 Databricks
  • MLOps maturity: how much of the ML lifecycle, from training to monitoring and retraining, is automated. Taught in 1.3 ML infrastructure patterns
  • Model registry: a versioned store of model artifacts with their metadata, serving configuration, lifecycle stage, and lineage. Taught in 1.3 ML infrastructure patterns
  • PagedAttention: allocating the KV cache in fixed-size pages to eliminate fragmentation and allow prefix sharing. Taught in 2.1.3 The System Design Round
  • PagedAttention: allocating the KV cache in fixed-size pages mapped by a page table, with shared pages for common prefixes. Taught in 2.1.7 GPU Inference Serving
  • Point-in-time correctness: building each training example only from feature values that existed at the example’s timestamp. Taught in 1.2 Full-stack AI engineering
  • Point-in-time correctness: joining training examples only with feature values as of each example’s timestamp, preventing leakage. Taught in 3.3 Databricks
  • Point-in-time correctness: the backtesting rule that a strategy may only use data available at each simulated moment. Taught in 4.2 Two Sigma
  • Population Stability Index (PSI): a binned measure of how far one distribution has shifted from a reference. Taught in 1.3 ML infrastructure patterns
  • Price-time priority: the matching rule that fills the best price first and, at equal prices, the earliest order first. Taught in 4.3 Citadel and Citadel Securities
  • Privacy budget: the total ε\varepsilon spent across queries; repeated queries compose and weaken privacy. Taught in 2.6 Apple
  • Private Cloud Compute: Apple’s cloud for larger AI models, with no persistent storage, auditable security, and cryptographically verified server code. Taught in 2.6 Apple
  • Project deep dive: a 15-to-25-minute end-to-end account of a past project, covering framing, depth, debugging, scaling, and collaboration. Taught in 2.1.5 The Hiring Manager Interview
  • Quantified impact: a result stated as a measured change, such as p99 latency from 240 ms to 60 ms. Taught in 2.1.5 The Hiring Manager Interview
  • Quantization: reducing numerical precision (for example, FP32 to INT8) to shrink and speed up a model. Taught in 2.6 Apple
  • Quorum: a write acknowledged by WW nodes and a read from RR nodes, with W+R>NW + R > N guaranteeing overlap. Taught in 1.1 Distributed systems fundamentals
  • Quorum: a subset of replicas large enough that any read set and write set overlap (W+R>NW + R > N). Taught in 2.1.6 Concurrency Patterns
  • Saga: a sequence of local transactions with compensating actions, run in reverse on failure. Taught in 1.1 Distributed systems fundamentals
  • Saga: a distributed transaction carried out as a sequence of local steps, each with a compensating action. Taught in 3.2 Amazon
  • Segmented sieve: a prime sieve over a range [L,R][L, R] that uses only primes up to R\sqrt{R}. Taught in 4.3 Citadel and Citadel Securities
  • Semaphore: a counter that limits how many coroutines may hold it at once; here, the number of concurrent requests. Taught in 2.1.2 The First Coding Round: Concurrent Systems
  • Server-Sent Events (SSE): a unidirectional HTTP streaming protocol of text events separated by blank lines. Taught in 2.1.8 Streaming and Server-Sent Events
  • Shadow mode: running a candidate model on live traffic without serving its outputs. Taught in 1.2 Full-stack AI engineering
  • Sliding log: a rate-limiting method that stores each request’s timestamp and counts those inside the window. Taught in 3.4 Stripe
  • Slippage: the difference between the expected price of a trade and the price actually obtained. Taught in 4.2 Two Sigma
  • Speculative checking: holding back a few tokens of a stream so a safety check can run before they are sent. Taught in 2.1.3 The System Design Round
  • STAR: Situation, Task, Action, Result; the structure for a behavioral story. Taught in 3.2 Amazon
  • Sweep line: an algorithm that converts intervals into sorted start and end events and processes them in order while maintaining a running state. Taught in 5.1 SpaceX
  • Sync word: a fixed bit pattern that marks the start of a packet in a byte stream. Taught in 5.1 SpaceX
  • Value at Risk (VaR): a loss threshold that the portfolio is not expected to exceed over a period at a given confidence level. Taught in 4.2 Two Sigma
  • Virtual node: one of several ring positions assigned to a single shard to balance load. Taught in 3.3 Databricks