Practice
Solution
Step 1: Trace cache behavior on miss at step 4
On a cache miss, the cache should fetch fresh data from the backend to serve the request.Step 2: Confirm cache updates itself before responding
This ensures subsequent requests hit the cache, reducing latency and load on backend.Final Answer:
Option D -> Option DQuick Check:
Cache miss triggers backend fetch and cache update [check]
Solution
Step 1: Identify transactional requirements
The scenario demands strict ACID properties, especially atomicity and consistency across multiple accounts.Step 2: Match component capabilities
Relational databases provide multi-statement transactions with ACID guarantees, unlike NoSQL stores or caches which sacrifice consistency or durability.Final Answer:
Option D -> Option DQuick Check:
Relational DBs ensure ACID transactions for multi-account updates [check]
Solution
Step 1: Analyze chunked storage with immutable chunks
This approach enables efficient caching, deduplication, and cheap versioning by reusing unchanged chunks.Step 2: Eliminate other options
Key-value stores struggle with large blobs and synchronous replication adds latency; network file systems have locking bottlenecks; relational DBs are inefficient for large binary data.Final Answer:
Option C -> Option CQuick Check:
Chunked immutable storage optimizes cost and versioning [check]
Solution
Step 1: Analyze rollback safety and rapid iteration needs
Canary deployment gradually exposes new versions, enabling quick rollback if issues arise, balancing speed and safety.Step 2: Evaluate other strategies
Blue-Green minimizes downtime but requires double infrastructure; Rolling updates lack gradual exposure and rollback granularity; Recreate causes downtime and no gradual rollback.Final Answer:
Option D -> Option DQuick Check:
Canary balances rapid deployment with rollback safety [check]
Solution
Step 1: Analyze consistent hashing at large scale
With many nodes, virtual nodes and hash ring management become complex, causing imbalance and hotspots.Step 2: Compare other bottlenecks
Memory pressure grows but is mitigated by eviction; network saturation happens later; backing store is usually scaled independently.Final Answer:
Option A -> Option AQuick Check:
Consistent hashing imbalance causes cache node hotspots first [check]
