Practice
Solution
Step 1: Identify NAT traversal role
STUN/TURN servers help clients discover public IPs and relay media if direct peer-to-peer fails.Step 2: Eliminate other components
Media Server relays media but is not primarily for NAT traversal; Signaling Server handles session negotiation, not media encoding; WebRTC client manages connection but relies on STUN/TURN for NAT traversal.Final Answer:
Option A -> Option AQuick Check:
STUN/TURN enable NAT traversal, essential for peer connectivity [check]
Solution
Step 1: Trace failure impact of partial warming crash
Without completion mark, warming restarts causing duplicate warming and resource waste.Step 2: Eliminate other options
Stale data unlikely if warming overwrites; cache misses occur but duplicate warming is immediate failure; fallback read-through causes latency, not immediate failure.Final Answer:
Option B -> Option BQuick Check:
Crash without completion causes duplicate warming retries [check]
Solution
Step 1: Understand Kafka's role
Kafka buffers RTMP packets to ensure ordered, durable delivery to the transcoder.Step 2: Trace failure impact
If Kafka loses messages, the transcoder stalls (A) due to missing packets, causing segment gaps. CDN (B) serves only what it has, so stale segments appear. RTMP ingest server (C) does not retry lost packets automatically; loss is permanent. Player (D) cannot switch streams without explicit failover.Final Answer:
Option B -> Option BQuick Check:
Kafka loss causes permanent packet loss; RTMP ingest lacks automatic retry [check]
Solution
Step 1: Identify scaling challenges in Active-Active
Active-Active requires continuous replication and conflict resolution across datacenters.Step 2: Analyze bottleneck at 10x scale
Replication protocol overhead and network latency increase exponentially, causing delays and conflicts that bottleneck the system.Final Answer:
Option D -> Option DQuick Check:
Replication overhead -> first bottleneck at 10x scale [check]
Solution
Step 1: Analyze scaling bottlenecks
Billing DB (A) can be scaled with sharding; Tenant Metadata (C) can be cached; API Gateway (D) handles stateless HTTP mostly.Step 2: Evaluate Feature Flag Service cache at scale
Cache invalidation and stale data grow exponentially, causing inconsistent feature exposure and client errors.Final Answer:
Option A -> Option AQuick Check:
Feature flag cache stale -> inconsistent behavior at scale [check]
