streaming
AI, ML & GenAI interview questions tagged streaming, across every topic.
22 questions · 3 unlocked for you
Concepts behind "streaming"
The curriculum that explains the ideas these questions test.
Foundational
Latency Budgets and StreamingLLM latency is not a single figure: time-to-first-token (driven by prefill and queueing) and inter-token latency (driven by decode) feel very different to users. Streaming tokens as they generate masks total latency by showing progress right away. Designing to a latency budget means splitting time across retrieval, model, and tools, tracking TTFT and tokens-per-second (not only end-to-end), and applying streaming, caching, and routing to meet it. AI, ML, and GenAI engineer interviews probe it because perceived latency makes or breaks LLM UX.⚙️ System Design for AI in Production
Core
Speech and Voice AI: ASR, TTS, and Voice AgentsVoice agents chain three systems: speech-to-text (ASR), an LLM, and text-to-speech (TTS), all under a hard real-time latency budget that text chat never faces. This page covers acoustic modeling and CTC basics, the cascade-versus-end-to-end tradeoff, and the conversational mechanics that actually break demos: turn-taking, barge-in, and the sub-second response budget. AI, ML, and GenAI interviews probe it because voice exposes whether you can reason about streaming, latency accounting, and a distinct class of failure modes.🧠 Foundations of LLMs & GenAISign in
Core
Token Streaming: SSE, Chunking, and CancellationServer-Sent Events is the default transport for one-way token streams, and the interesting problems start after you pick it: an output guardrail that buffers the whole response destroys the time-to-first-token you paid a GPU for, you cannot send an HTTP error status after the 200 has flushed, and a client disconnect must actually cancel the GPU work or you keep generating tokens nobody will read. AI, ML, and GenAI interviews probe it because 'we stream the tokens' is one sentence and shipping it correctly is a design round.⚙️ System Design for AI in ProductionSign in
Core
Change Data CaptureChange Data Capture (CDC) streams the inserts, updates, and deletes from a source database so downstream systems stay in sync without costly full reloads. It drives incremental pipelines, real-time analytics, and keeping a search index or feature store current. The main concerns are handling updates and deletes (not just inserts), ordering, and applying the change stream idempotently. AI, ML, and GenAI interviews probe it because keeping a RAG index, feature store, or warehouse fresh is a constant need, and full reloads do not scale.🗄️ Data & SQL EngineeringSign in
Core
Batch vs StreamingBatch processes a bounded dataset on a schedule; streaming processes an unbounded flow of events continuously. The real decision turns on the data and the latency the business needs, not the tool, and it forces you to reason about event time vs processing time, windowing, and watermarks for late data. AI, ML, and GenAI interviews probe it because most candidates jump to Kafka or Flink before they can say whether the problem even needs sub-minute latency, and micro-batch is often the pragmatic answer.🗄️ Data & SQL EngineeringSign in
Core
Streaming and BackpressureWhen data is too large to hold in memory or keeps arriving without end, you handle it as a stream, one piece at a time, with bounded memory, rather than pulling it all in. Backpressure is the mechanism that keeps a fast producer from swamping a slow consumer, by signaling 'slow down' instead of buffering without limit until memory runs out. Applied-AI interviews test it because AI pipelines chew through huge datasets and token streams, and the naive load-everything approach OOMs while unbounded buffering crashes under load.💻 Coding & Engineering CraftSign in
