Practice
Solution
Step 1: Identify BGP route filtering role
BGP route filters and prefix limits on edge routers prevent invalid or excessive route announcements, containing route leaks.Step 2: Eliminate other options
DNS firewalls (A) do not control BGP routing; client-side validation (C) is ineffective for routing control; distributed caches (D) do not enforce routing policies.Final Answer:
Option B -> Option BQuick Check:
BGP route filters contain route leaks at the network edge [check]
Solution
Step 1: Identify upload ingestion requirements
Uploads must not block user flow and require asynchronous processing for thumbnails and metadata extraction.Step 2: Evaluate decoupling mechanisms
Relational DB triggers (A) cause synchronous blocking and poor scalability. CDN edge (C) is for delivery, not upload processing. Synchronous REST (D) blocks user upload. Kafka (B) buffers uploads asynchronously, enabling scalable processing.Final Answer:
Option A -> Option AQuick Check:
Kafka buffers high-throughput uploads asynchronously [check]
Solution
Step 1: Evaluate delivery approaches for global scale and latency
P2P (A) alone is unreliable due to variable user upload bandwidth and NAT traversal issues. Multiple regional origins without CDN (D) add complexity and don't scale well globally. P2P with CDN fallback (C) adds complexity and inconsistent performance.Step 2: Recognize CDN benefits
A centralized origin with global CDN (B) provides consistent availability, low latency via edge caching, and simplifies management, making it the best fit for millions of users worldwide.Final Answer:
Option A -> Option AQuick Check:
Global CDN ensures consistent low-latency delivery [check]
Solution
Step 1: Identify stateful bottleneck at scale
WebSocket connections are stateful and bound to specific chat servers, limiting horizontal scaling.Step 2: Compare other components
Databases and queues can be sharded or scaled horizontally; load balancers can be scaled with proxies.Final Answer:
Option C -> Option CQuick Check:
Stateful WebSocket servers limit scaling more than DB or queues [check]
Solution
Step 1: Analyze component scalability at 10x load
CDN edge caches (A) scale horizontally and are designed for massive read throughput. Transcoding pipeline (C) can be scaled with more workers. Upload service (D) can be scaled with load balancers and stateless servers.Step 2: Identify view count database bottleneck
View count DB is a centralized write hotspot with high contention and latency sensitivity. At 10x scale, it becomes the first bottleneck due to write amplification and consistency requirements.Final Answer:
Option B -> Option BQuick Check:
Centralized view count DB write bottleneck fails first [check]
