Practice
Solution
Step 1: Identify location query requirements
Real-time matching requires low-latency spatial queries on dynamic driver locations.Step 2: Evaluate component suitability
Relational DBs (A) have high latency for frequent updates; Kafka (C) streams data but doesn't index locations; Hadoop (D) is batch-oriented and too slow. In-memory spatial indexes (B) provide fast nearest-neighbor queries and frequent updates.Final Answer:
Option A -> Option AQuick Check:
In-memory spatial index enables fast real-time location queries [check]
Solution
Step 1: Role of manifest updates in HLS
Manifest updates inform clients about new segments and available bitrates, enabling selective fetching.Step 2: Consequence of missing manifest updates
Without updates, clients cannot know which segments to fetch next, leading them to request all variants to avoid stalls, wasting bandwidth.Final Answer:
Option A -> Option AQuick Check:
Missing manifest updates cause clients to fetch all variants, wasting bandwidth [check]
Solution
Step 1: Analyze replication under network partitions
Synchronous replication blocks writes on slow or unreachable replicas, hurting availability.Step 2: Asynchronous replication tolerates partitions
Allows writes to proceed locally and replicates changes later, favoring availability over immediate consistency.Final Answer:
Option A -> Option AQuick Check:
Async replication favors availability during partitions [check]
Solution
Step 1: Understand retry queue role
The retry queue buffers failed webhook notifications for asynchronous retries, ensuring eventual delivery.Step 2: Consequence of missing retry queue
Without it, failed webhooks are dropped or lost, causing permanent notification loss and inconsistent merchant state.Final Answer:
Option D -> Option DQuick Check:
Missing retry queue -> permanent webhook loss on failure [check]
Solution
Step 1: Understand average latency limitations
Average latency can be skewed by many fast requests and hide slow request impact, thus missing user experience degradation.Step 2: Why P95 latency is better
P95 latency captures the slowest 5% of requests, which often cause user frustration and indicate performance issues under load.Final Answer:
Option A -> Option AQuick Check:
P95 latency reveals slow requests impacting users better than average [check]
