OpenAI High-Level Design (HLD) Interview Questions
Prefix KV-cache routers, disaggregated MoE serving, Voice AI & batch queues. Practice each prompt in HLDArena's 60-second discrete-event simulator with p99 latency, availability, and cloud cost gates.
- Prefix-aware KV-cache routing, disaggregated Prefill/Decode pools & HBM leases
- Sub-200ms full-duplex WebRTC Voice AI gateways with instant VAD barge-in
- Multi-tenant TPM token rate limiters, semantic prompt caches & 24h Batch queues
| Status | Code | Question | Difficulty | Max Pts |
|---|---|---|---|---|
| — | HLD-416 | Disaggregated Prefill/Decode & Mixture-of-Experts (MoE) Inference Fabric Design a DeepSeek / Frontier-Lab scale inference fabric separating compute-bound Prefill pools from memory-bandwidth-bound Decode pools, coordinating RDMA KV-cache block transfers, expert-load balancing across hot MoE experts, and zero-dropped-stream failover. | Expert | 2000 pts |
| — | HLD-408 | Multi-Cluster LLM Prefix KV-Cache Router & Token Scheduler Design an OpenAI / vLLM multi-cluster inference control plane that routes shared system-prompt prefixes to sticky KV-cache pools, enforces TPM quotas, and survives 8x storage/checkpoint brownouts. | Expert | 2000 pts |
| — | HLD-334 | Sub-200ms Full-Duplex Multimodal Voice AI & Barge-In Gateway Design a ChatGPT Advanced Voice / Gemini Live-style WebRTC conversational AI session gateway orchestrating bidirectional Opus audio frames, server-side VAD barge-in cancellation, sticky conversational KV-state, and lossless transcript persistence. | Hard | 1500 pts |
| — | HLD-250 | Multi-Tenant Async Batch LLM Inference & Off-Peak Scheduler Design an OpenAI / Anthropic Batch API platform where enterprises upload 100k-prompt JSONL files for 24-hour SLA completion at 50% discount, enforcing fair per-tenant token quotas, checkpointed partial progress, and output artifact streaming. | Medium | 1000 pts |
| — | HLD-247 | Low-Latency IDE Code Completion & Fill-in-Middle Gateway Design a Copilot / Cursor-style inline ghost-text completion gateway handling keystroke-debounced Fill-in-the-Middle (FIM) requests, repo-context AST snippet caching, and instant in-flight cancellation when the developer keeps typing. | Medium | 1000 pts |
| — | HLD-134 | LLM Semantic Prompt Cache & Cost-Saving AI Gateway Design an AI gateway caching tier that serves exact prompt-hash and high-similarity semantic hits in milliseconds to avoid redundant GPU inference calls across FAQ, support, and coding assistants. | Easy | 500 pts |
| — | HLD-314 | ChatGPT-Scale Conversational Assistant, Context & SSE Gateway Design a ChatGPT / Claude conversational backend managing multi-turn conversation trees, sliding context-window caches, token quota checks, and SSE response streaming. | Hard | 1500 pts |
| — | HLD-412 | Durable Stateful AI Agent Checkpointing & Sandboxed Tool Runner Design a Temporal / LangGraph-scale durable AI agent orchestrator executing multi-step ReAct loops with exactly-once side-effect tool idempotency and instant crash resumption. | Expert | 2000 pts |
| — | HLD-231 | Enterprise RAG Document Chunking & Hybrid Vector Search Design a Glean / Enterprise AI retrieval backend combining ACL-filtered BM25 keyword search + dense vector embeddings with semantic query caching. | Medium | 1000 pts |
| — | HLD-322 | Sharded HNSW Vector Database & Metadata Filter Engine Design a Pinecone / Milvus multi-tenant vector database serving low-latency ANN top-K cosine similarity queries with real-time vector upserts and deletes. | Hard | 1500 pts |
| — | HLD-101 | Distributed API Rate Limiter & Quota Gateway Design a low-latency ingress rate-limiting tier enforcing per-tenant sliding-window and token-bucket quotas across stateless API gateways without adding tail latency. | Easy | 500 pts |
| — | HLD-211 | SaaS Usage-Based API Metering & Spend Aggregator Design a high-throughput usage metering pipeline counting billable API tokens and compute units per tenant while serving real-time billing dashboard queries. | Medium | 1000 pts |