Practice
Solution
Step 1: Identify component for global health-aware routing
DNS with low TTL (Use DNS-based load balancing with low TTL values to direct traffic) can cause caching issues and slow failover; client-side logic (Configure client-side logic to select the closest data center IP address) is unreliable and hard to maintain; BGP routing (Rely on BGP routing policies to steer traffic to preferred data centers) is coarse-grained and slow to converge.Step 2: Understand GSLB capabilities
GSLB actively monitors data center health and latency, dynamically routing users to the best endpoint, providing low latency and automatic failover.Final Answer:
Option A -> Option AQuick Check:
GSLB monitors health and routes globally with failover [check]
Solution
Step 1: Identify real-time aggregation needs
Millions of listings require low-latency updates; immediate consistency is not mandatory.Step 2: Evaluate architectures
Relational DB (A) is costly and slow at scale; batch jobs (C) have high latency; NoSQL denormalization (D) risks write amplification and stale data. Stream processing (B) provides scalable, low-latency aggregation with eventual consistency.Final Answer:
Option A -> Option AQuick Check:
Stream processing enables scalable real-time aggregation with eventual consistency [check]
Solution
Step 1: Role of message queue in gRPC server
The queue buffers messages for slow or disconnected clients, enabling retries and flow control.Step 2: Effect of removing the queue
Without the queue, messages sent to slow/disconnected clients are dropped immediately, causing message loss without retries.Final Answer:
Option C -> Option CQuick Check:
No queue -> message loss on slow/disconnected clients [check]
Solution
Step 1: Analyze PACELC trade-offs for read latency during partitions
Minimizing read latency favors local reads and asynchronous replication despite weaker consistency.Step 2: Evaluate architectures
Synchronous replication (A) and quorum (D) increase latency; single primary (C) risks unavailability if primary is unreachable.Final Answer:
Option D -> Option DQuick Check:
Eventual consistency + async replication -> low read latency under partition [check]
Solution
Step 1: Understand TCP retransmission timer role
The retransmission timer triggers resending lost packets when ACKs are not received.Step 2: Trace failure without timer
Without the timer, lost packets are never retransmitted, causing the sender to wait indefinitely and stall the transfer.Final Answer:
Option B -> Option BQuick Check:
No retransmission timer -> stalled transfer on loss [check]
