Practice
1. In the live streaming pipeline, at step 4 the Transcoder Worker reads packets from Kafka and generates HLS segments. What happens if the Transcoder Worker encounters a delayed packet for a segment already finalized?
easy
Solution
Step 1: Understand segment finalization
Once an HLS segment is finalized and published, it is immutable to ensure consistent playback for viewers.Step 2: Handling delayed packets
Reopening finalized segments (B) breaks immutability. Buffering for next segment (C) misplaces packets out of order. Restarting stream (D) is costly and unnecessary. Discarding late packets (A) maintains low latency and stream integrity.Final Answer:
Option A -> Option AQuick Check:
Discarding late packets preserves segment immutability and low latency [check]
Hint: Finalized HLS segments are immutable; discard late packets [check]
Common Mistakes:
2. In the vector database request flow, at Step 4 the ANN Search Worker queries the HNSW index with a new vector. What state does the worker observe if the index is currently rebuilding due to a recent bulk insert?
easy
Solution
Step 1: Understand HNSW index rebuild behavior
HNSW index rebuilds asynchronously; during rebuild, queries use the last consistent snapshot.Step 2: Analyze worker behavior at Step 4
The ANN Search Worker returns results from the previous stable index snapshot, so stale but consistent results are served.Final Answer:
Option A -> Option AQuick Check:
HNSW queries serve last snapshot during rebuild, avoiding blocking [check]
Hint: HNSW queries serve last snapshot during rebuild, no blocking [check]
Common Mistakes:
3. In a system where a Layer 7 load balancer receives an HTTP request at step 3, what happens at step 4 when it applies URL-based routing rules?
easy
Solution
Step 1: Understand Layer 7 load balancer behavior at step 4
At step 4, the Layer 7 load balancer inspects HTTP headers (like URL path) to decide routing.Step 2: Eliminate options inconsistent with Layer 7 behavior
Forwarding raw TCP packets (A) is Layer 4 behavior; DNS resolution (C) is client-side; encryption (D) is unrelated here.Final Answer:
Option A -> Option AQuick Check:
Layer 7 LB inspects HTTP headers and routes accordingly [check]
Hint: Layer 7 LB inspects HTTP headers before forwarding [OK]
Common Mistakes:
4. In a distributed tracing system, at step 4 the Trace Collector receives a span with a missing parent ID. What is the most likely state of the trace at this point?
easy
Solution
Step 1: Understand how tracing handles missing parent IDs
Spans without parent IDs are treated as root spans, starting new trace trees.Step 2: Eliminate other options
Discarding spans loses data unnecessarily; buffering indefinitely risks memory leaks; trace completeness requires all spans, so it's not complete yet.Final Answer:
Option B -> Option BQuick Check:
Missing parent ID -> new root span starts trace segment [check]
Hint: Missing parent ID means new root span [check]
Common Mistakes:
5. At 10x transaction volume, which component is most likely to become the first bottleneck in the payment system, and why?
hard
Solution
Step 1: Identify stateful bottlenecks at scale
The Idempotency Store holds global state and is hard to shard, limiting horizontal scaling.Step 2: Evaluate other components
Settlement Service can be scaled with partitioned batches; client SDK is client-side and less critical; load balancer scales horizontally with modern tech.Final Answer:
Option B -> Option BQuick Check:
Centralized idempotency store -> scaling bottleneck at 10x load [check]
Hint: Centralized stateful store limits scaling first [check]
Common Mistakes:
