Practice
1. A high-traffic e-commerce platform expects a sudden surge in user requests immediately after launch. Which component is best suited to pre-populate the cache with frequently accessed product data to avoid cold-start latency?
easy
Solution
Step 1: Identify cache warming purpose
Cache warming service proactively loads hot keys to avoid cold cache latency at launch.Step 2: Eliminate lazy and write-through options
Lazy loading causes initial latency; write-through updates cache reactively, not proactively.Final Answer:
Option A -> Option AQuick Check:
Preloading hot keys before launch avoids cold cache misses [check]
Hint: Preload hot keys before launch to avoid cold cache misses [OK]
Common Mistakes:
2. A load balancer must detect unhealthy backend servers and reroute traffic without client impact. Which component is primarily responsible for detecting server health status?
easy
Solution
Step 1: Identify health detection responsibility
The health check module actively probes backend servers to determine their health status.Step 2: Eliminate other options
DNS resolver changes are slow and indirect; session persistence caches track sessions, not health; client-side retries do not detect server health.Final Answer:
Option A -> Option AQuick Check:
Health check module probes servers directly for health [check]
Hint: Health checks probe servers directly to detect failures [check]
Common Mistakes:
3. For mobile clients with intermittent connectivity, which message sync strategy is best to minimize data usage while ensuring eventual consistency?
medium
Solution
Step 1: Evaluate sync strategies for intermittent mobile connectivity
WebSocket streaming fails on unstable networks; polling wastes bandwidth; full sync is expensive.Step 2: Delta-based sync with version vectors minimizes data and ensures eventual consistency
Only changed messages are fetched, reducing data usage and handling offline periods gracefully.Final Answer:
Option A -> Option AQuick Check:
Delta sync + version vectors -> efficient, consistent mobile sync [check]
Hint: Delta sync with version vectors minimizes mobile data use [OK]
Common Mistakes:
4. Without the graph database's relationship index, what exactly breaks during a shortest path query between two nodes?
medium
Solution
Step 1: Role of relationship index
The index enables efficient lookup of edges; without it, traversal cannot proceed correctly.Step 2: Behavior without index
Queries relying on the index return empty results silently because no edges are found, not errors or scans.Final Answer:
Option A -> Option AQuick Check:
Missing index causes silent empty results, not crashes or scans [check]
Hint: Missing index -> silent empty results, no errors or scans [check]
Common Mistakes:
5. At 10x scale, which component in a circuit breaker-enabled microservice architecture is most likely to fail first, and why?
hard
Solution
Step 1: Analyze scaling impact on components
Downstream service (A) is protected by circuit breaker; load balancer (C) scales horizontally; client cache (D) is local and less critical.Step 2: Identify circuit breaker state store bottleneck
Centralized state store for circuit breaker metrics faces contention and latency at 10x concurrency, causing delays and incorrect breaker states.Final Answer:
Option B -> Option BQuick Check:
Centralized circuit breaker state store bottlenecks first at scale [check]
Hint: Centralized circuit breaker state store bottlenecks first at scale [OK]
Common Mistakes:
