Practice
Solution
Step 1: Identify ordering and durability needs
Relational DBs with row-level locking can't handle 1M writes/sec efficiently; Redis without persistence loses durability; NoSQL eventual consistency lacks ordering guarantees.Step 2: Recognize Kafka's partitioning for ordering
Kafka partitions by user session ensure ordered processing and durability at high throughput.Final Answer:
Option A -> Option AQuick Check:
Kafka partitions -> ordered, durable, high-throughput writes [check]
Solution
Step 1: Analyze access and cost requirements
Data is infrequently accessed but needs retrieval within hours, so cold storage alone is too slow.Step 2: Evaluate tiering benefits
Warm storage offers moderate cost and latency; cold storage reduces cost further. Tiering balances cost and retrieval time.Final Answer:
Option A -> Option AQuick Check:
Warm + cold tiering balances cost and retrieval latency [check]
Solution
Step 1: Identify scaling bottlenecks
Blue-Green requires two full environments; load balancer scales horizontally; feature flags scale independently.Step 2: Analyze deployment pipeline
Build servers face 10x concurrent builds, causing queueing and delays, blocking releases.Step 3: Compare other components
Load balancer and feature flags can be sharded; doubling environment cost is expensive but not a failure.Final Answer:
Option A -> Option AQuick Check:
Build servers bottleneck at 10x concurrent builds, delaying deployments [check]
Solution
Step 1: Identify stateful bottleneck in synchronous chat
Chat servers maintain WebSocket connections statefully, binding clients to specific servers.Step 2: Analyze scaling challenges
At 10x scale, resharding or migrating these stateful connections is complex, causing chat servers to fail first.Final Answer:
Option D -> Option DQuick Check:
Stateful WebSocket servers limit horizontal scaling, causing early failure [check]
Solution
Step 1: Analyze bottlenecks at 10x request rate
High request rates increase IDs generated per millisecond, stressing sequence number capacity.Step 2: Sequence number overflow causes ID collisions or generator stalls
Sequence number bits are limited; overflow leads to duplicates or blocking until next timestamp.Step 3: Other components less likely to fail first
Timestamp authority is decentralized or loosely synchronized; network latency affects ordering but not immediate failure; persistent storage is often avoided for sequence state.Final Answer:
Option C -> Option CQuick Check:
Sequence number overflow -> first failure under 10x scale [check]
