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
- Canary deployment: routing a small, growing fraction of traffic to a new version, with predefined rollback criteria. Taught in 2.1.7 GPU Inference Serving
- CAP theorem: during a network partition, a distributed store must choose between consistency and availability. Taught in 1.1 Distributed systems fundamentals
- Cascading cancellation: cancelling a task together with every task that transitively depends on it. Taught in 2.1.1 The Online Assessment
- Cold start: the 40-to-90-second delay to load weights and warm kernels on a fresh GPU. Taught in 2.1.7 GPU Inference Serving
- Compare-and-swap (CAS): an atomic instruction that writes a new value only if the location still holds the expected one. Taught in 2.1.6 Concurrency Patterns
- Compensation: the action that undoes a completed saga step when a later step fails. Taught in 3.2 Amazon
- Condition variable: a primitive that lets a thread release a lock and sleep until another thread signals that state has changed. Taught in 2.1.4 The Second Coding Round: Data Structures and Concurrency Primitives
- Conflation: replacing a burst of quote updates with only the latest one for consumers that cannot keep up. Taught in 4.3 Citadel and Citadel Securities
- Consistent hashing: placing shards and keys on a hash ring so that adding or removing a shard moves only nearby keys. Taught in 3.3 Databricks
- Constitutional AI: Anthropic’s method of aligning a model by having it critique and revise its outputs against a written set of principles. Taught in 2.1.5 The Hiring Manager Interview
- Continuous (iteration-level) batching: rescheduling the batch between every decoding step so finished requests are replaced immediately. Taught in 2.1.7 GPU Inference Serving
- Continuous batching: replacing finished requests in a running batch at each iteration, rather than waiting for the whole batch to finish. Taught in 2.1.3 The System Design Round
- Cooperative concurrency: a model in which tasks switch only at explicit yield points, as opposed to preemptive OS scheduling. Taught in 2.1.2 The First Coding Round: Concurrent Systems
- Cost per prediction: GPU cost per hour divided by predictions served per hour. Taught in 1.3 ML infrastructure patterns
- Count-Min Sketch: a fixed-size probabilistic structure that estimates frequencies in a stream with bounded overcount. Taught in 2.1.4 The Second Coding Round: Data Structures and Concurrency Primitives
- CRC-16: a 16-bit cyclic redundancy check used to detect corrupted packets. Taught in 5.1 SpaceX
- 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 . 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
awaitand 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 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
- GIL: CPython’s Global Interpreter Lock, which allows only one thread to run Python bytecode at a time. Taught in 2.1.2 The First Coding Round: Concurrent Systems
- GIL: CPython’s Global Interpreter Lock, allowing one thread at a time to execute bytecode. Taught in 2.1.6 Concurrency Patterns
- Guardrail metric: a metric an experiment must not degrade, whose breach stops the experiment. Taught in 1.3 ML infrastructure patterns
- 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 . 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 -differential privacy by adding Laplace noise with scale sensitivity. 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 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 nodes and a read from nodes, with guaranteeing overlap. Taught in 1.1 Distributed systems fundamentals
- Quorum: a subset of replicas large enough that any read set and write set overlap (). Taught in 2.1.6 Concurrency Patterns
- Readers-writer lock: a lock that admits many concurrent readers or one exclusive writer. Taught in 2.1.4 The Second Coding Round: Data Structures and Concurrency Primitives
- Reconciliation: checking the internal ledger against external records such as bank statements. Taught in 3.4 Stripe
- Reentrant lock: a lock its holder may acquire again without deadlocking itself. Taught in 2.1.6 Concurrency Patterns
- Review note: a “no” or “partly” on a rubric line, recorded with an owner and a next step rather than hidden. Taught in 6.1 Defend your system
- 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 that uses only primes up to . 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
- Time-to-first-token (TTFT): the latency from receiving a request to emitting its first output token. Taught in 2.1.3 The System Design Round
- Trace event: a timestamped enter (
B) or exit (E) marker for a function, as consumed by flame graphs and the Chrome trace viewer. Taught in 2.1.4 The Second Coding Round: Data Structures and Concurrency Primitives - Training-serving skew: a mismatch between how features are computed for training and for production. Taught in 1.2 Full-stack AI engineering
- Triple modular redundancy (TMR): running three independent computers and taking a majority vote on each output. Taught in 5.1 SpaceX
- TTFT, TPOT, TBT: time to first token, average time per output token, and the time between any two tokens including its variance. Taught in 2.1.8 Streaming and Server-Sent Events
- Tumbling window: a fixed-size, non-overlapping time window for stream aggregation. Taught in 3.3 Databricks
- Two-phase commit: an atomic commit protocol with prepare and commit phases that blocks if the coordinator fails. Taught in 1.1 Distributed systems fundamentals
- 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
- Warm pool: GPU instances with the model already loaded, kept ready to absorb load without a cold start. Taught in 2.1.3 The System Design Round
- Warm pool: instances kept with the model loaded so they can serve in under 100 ms. Taught in 2.1.7 GPU Inference Serving
- Watchdog timer: a hardware or software timer that resets a system that stops checking in. Taught in 5.1 SpaceX
- Watermark: an estimate of event-time progress after which a window is finalized and late events are handled separately. Taught in 3.3 Databricks
- Weblab: Amazon’s internal A/B testing platform. Taught in 3.2 Amazon
- Writer starvation: a writer waiting indefinitely because overlapping readers never release a readers-preference lock. Taught in 2.1.4 The Second Coding Round: Data Structures and Concurrency Primitives