Practice
Solution
Step 1: Calculate daily storage
Multiply 500,000 objects by 2MB each = 1,000,000 MB = 1TB per day.Step 2: Eliminate other options
500GB per day, assuming 1MB average object size instead uses wrong object size; 2TB per day, assuming 4MB average object size instead doubles size incorrectly; Cannot estimate without knowing retention period ignores that retention affects total storage, not daily estimate.Final Answer:
Option B -> Option BQuick Check:
500K x 2MB = 1TB daily storage [check]
Solution
Step 1: Understand sequence number reset behavior
For each new timestamp, the sequence number resets to zero to start fresh counting.Step 2: Ensure uniqueness within timestamp by incrementing sequence
Within the same timestamp, the sequence number increments; resetting happens only when timestamp changes.Final Answer:
Option A -> Option AQuick Check:
Sequence number resets on new timestamp -> uniqueness maintained [check]
Solution
Step 1: Evaluate coordination and consistency trade-offs
Centralized locks (A) and linearizable transactions (C) impose coordination and reduce availability. Message queues with synchronous aggregation (D) add latency and bottlenecks.Step 2: Recognize sharded CRDT counters provide eventual consistency with no coordination
They allow concurrent increments and asynchronous merges, fitting minimal coordination and strong eventual consistency.Final Answer:
Option A -> Option AQuick Check:
Sharded CRDTs enable coordination-free eventual consistency [check]
Solution
Step 1: Identify stateful components under load
API Gateway maintains user session state (e.g., WebSocket connections), which are sticky and stateful, limiting horizontal scaling.Step 2: Compare other components
Relational DB (A) can be sharded; cache (C) TTL floods are mitigated by pre-warming; inventory locking (D) is optimized with partitioning. API Gateway statefulness causes connection limits and bottlenecks first.Final Answer:
Option B -> Option BQuick Check:
API Gateway stateful sessions limit horizontal scaling [check]
Solution
Step 1: Identify bottlenecks at 10x scale
Coordinator nodes handle query routing and aggregation; increased scale causes them to manage larger partitions and more requests.Step 2: Compare other components
Storage nodes scale horizontally and add disk; network bandwidth scales with infrastructure upgrades; client latency is secondary to cluster bottlenecks.Final Answer:
Option A -> Option AQuick Check:
Coordinator overload -> first failure point at 10x scale [check]
