Practice
Solution
Step 1: Understand Delivery Worker cache TTL check
If TTL expired, the cached timeline is stale and must be rebuilt to ensure fresh data.Step 2: Evaluate actions on expired TTL
Skipping (A) loses data; direct DB write (C) bypasses cache rebuild; retrying cache read (D) causes blocking and delays.Final Answer:
Option A -> Option AQuick Check:
Expired TTL triggers timeline rebuild to maintain freshness [check]
Solution
Step 1: Identify modular hashing limitations
Modular hashing requires rehashing all keys when node count changes, causing massive reshuffling.Step 2: Understand consistent hashing benefits
Consistent hashing maps nodes and keys on a ring, minimizing key movement to only neighbors when nodes change.Final Answer:
Option A -> Option AQuick Check:
Consistent hashing minimizes reshuffling on node changes [check]
Solution
Step 1: Trace backend server health check at Step 4
If the backend server health check fails, it should not process the request (The backend server processes the request anyway, risking errors is incorrect). Returning an error directly to the client (The backend server returns an error response directly to the client) bypasses the load balancer's retry logic. The load balancer retrying without backend signaling (The load balancer retries routing the request to a different healthy backend) is incomplete.Step 2: Understand backend rejection and signaling
The backend server rejects the request and signals the load balancer to reroute traffic to a healthy backend (The backend server rejects the request and signals the load balancer to reroute), ensuring availability.Final Answer:
Option A -> Option AQuick Check:
Backend signals load balancer to reroute on health check fail [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 centralized token refill scheduler role
It coordinates token replenishment globally, requiring strong consistency and frequent updates.Step 2: Analyze scaling impact
At 10x scale, centralized scheduler becomes a contention bottleneck and latency hotspot, limiting throughput.Step 3: Compare other components
Distributed cache scales better with sharding; client-side buckets are local and scale naturally; network issues are secondary to scheduler bottleneck.Final Answer:
Option B -> Option BQuick Check:
Centralized scheduler bottlenecks first at scale [check]
