Practice
Solution
Step 1: Identify geo-indexing role
Relational DBs with spatial extensions provide accuracy but have higher latency and poor horizontal scaling for frequent geo queries.Step 2: Evaluate alternatives
Message queues buffer data but do not support geo queries. CDNs cache static content, not dynamic geo data.Final Answer:
Option B -> Option BQuick Check:
Geo-indexing NoSQL stores optimize radius queries with low latency [check]
Solution
Step 1: Understand authentication dependency
The server relies on the authentication service for validating credentials; if unavailable, requests cannot be processed.Step 2: Trace failure impact
Without authentication service, login requests hang waiting for response until timeout, then fail with no automatic retry or fallback.Final Answer:
Option C -> Option CQuick Check:
Unavailable auth service causes login hang then failure [check]
Solution
Step 1: Identify stateful components at scale
Driver assignment maintains WebSocket connections, which are stateful and tied to server memory.Step 2: Analyze scaling bottlenecks
WebSocket connections cannot be easily sharded or moved; adding servers doesn't migrate existing connections, causing resource exhaustion.Step 3: Compare other components
Databases (A) can be sharded; caches (C) can evict; notification services (D) can batch or retry.Final Answer:
Option C -> Option CQuick Check:
Stateful WebSocket connections -> driver assignment service bottleneck [check]
Solution
Step 1: Identify stateful bottlenecks
RTMP ingest servers maintain stateful TCP connections per broadcaster, limiting how many connections each server can handle.Step 2: Compare scaling constraints
Transcoders (A) can be scaled horizontally with more instances. Kafka (C) can add partitions but has practical limits. CDN edges (D) scale well with caching. RTMP ingest (B) hits connection limits first due to TCP statefulness.Final Answer:
Option D -> Option DQuick Check:
Stateful TCP connections on RTMP ingest servers limit horizontal scaling [check]
Solution
Step 1: Identify stateful components
Redirect Service holds stateful HTTP connections (e.g., WebSocket or session affinity), limiting horizontal scaling.Step 2: Compare scaling challenges
Database and Cache can be sharded or scaled horizontally; Analytics pipeline can be scaled with more workers; Redirect Service's stateful connections cause scaling bottleneck first.Final Answer:
Option A -> Option AQuick Check:
Stateful Redirect Service limits horizontal scaling, causing first bottleneck [check]
