Practice
Solution
Step 1: Understand server stream handler behavior
When client disconnects, server detects cancellation via context and stops streaming.Step 2: Trace server reaction at step 4
Server cancels the stream and frees resources immediately; it does not buffer or retry indefinitely.Final Answer:
Option A -> Option AQuick Check:
Client disconnect -> server cancels stream and frees resources [check]
Solution
Step 1: Identify latency and loss tolerance requirements
Live video streaming prioritizes low latency and can tolerate some packet loss, so retransmission delays are undesirable.Step 2: Match protocol characteristics
UDP provides minimal overhead and no retransmission, fitting low latency needs. TCP guarantees delivery but adds delay due to retransmissions and congestion control.Final Answer:
Option A -> Option AQuick Check:
UDP suits low-latency, lossy streaming [check]
Solution
Step 1: Identify HTTP/3 transport and encryption
HTTP/3 uses QUIC over UDP with built-in TLS encryption per connection, increasing CPU load for handshake and encryption at scale.Step 2: Eliminate other bottlenecks
UDP packet loss is network-level, not server bottleneck; WebSockets are not natively supported by HTTP/3 but unrelated to scaling HTTP/3 itself; HTTP/3 does not use TCP.Final Answer:
Option B -> Option BQuick Check:
QUIC's per-connection TLS handshake CPU load limits HTTP/3 scale [check]
Solution
Step 1: Identify Layer 7 load balancer workload at scale
Layer 7 load balancers perform CPU-intensive tasks like HTTP header parsing and SSL termination, which scale poorly with traffic.Step 2: Compare with other components
Backend servers can be scaled horizontally; network switches handle packet forwarding efficiently; DNS servers are less impacted by traffic volume.Final Answer:
Option A -> Option AQuick Check:
Layer 7 LB CPU bottleneck due to HTTP parsing and SSL termination [check]
Solution
Step 1: Identify component roles at scale
Archive storage uses tape drives with limited concurrent access bandwidth and high latency.Step 2: Analyze scaling challenges
At 10x scale, tape drives become bottleneck due to limited parallelism and slow seek times, unlike metadata which can be sharded.Final Answer:
Option A -> Option AQuick Check:
Archive tape bandwidth limits -> first bottleneck [check]
