Practice
1. In a file storage system, at step 3 the client requests a file write. What happens inside the metadata server at this step?
easy
Solution
Step 1: Understand metadata server role in file write
The metadata server manages file metadata like inodes and directory entries, not the actual data blocks.Step 2: Trace what happens at step 3
On a write request, the metadata server updates the inode and directory metadata to reflect changes; data blocks are handled separately by storage nodes.Final Answer:
Option C -> Option CQuick Check:
Metadata server updates inode, not data blocks [check]
Hint: Metadata server updates metadata, not file data blocks [check]
Common Mistakes:
2. In the photo feed generation flow, at step 4 the Feed Worker fetches stories from the Stories Service cache. What happens if the cache TTL for a user's stories has expired at this step?
easy
Solution
Step 1: Trace Feed Worker behavior at cache miss
When TTL expires, the cache is stale. The Feed Worker must avoid blocking feed generation.Step 2: Understand asynchronous cache refresh
To maintain low latency, the Feed Worker returns empty stories immediately and triggers async cache refresh. Blocking fetch (B) would increase latency. Returning stale data (A) risks outdated content. Skipping stories silently (C) loses user experience.Final Answer:
Option A -> Option AQuick Check:
Async cache refresh avoids blocking feed generation [check]
Hint: Async cache refresh avoids blocking feed generation [OK]
Common Mistakes:
3. A company wants to conduct a post-mortem after a major outage without blaming individuals, focusing on systemic issues and actionable improvements. Which component best supports this blameless culture approach?
easy
Solution
Step 1: Identify blameless culture requirements
The approach requires neutral, factual event capture without assigning blame to individuals.Step 2: Evaluate components for neutrality and actionability
A structured timeline tool capturing events and decisions neutrally provides a structured timeline tool that records events and decisions neutrally, enabling root cause analysis without blame.Final Answer:
Option C -> Option CQuick Check:
Neutral event timelines enable blameless post-mortems [check]
Hint: Blameless means neutral facts, not blame assignment [check]
Common Mistakes:
4. Without Kafka in the messaging pipeline, what exactly breaks in message delivery when Bob's server crashes during Alice's send?
medium
Solution
Step 1: Understand Kafka's role in decoupling and durability
Kafka buffers messages asynchronously, so Alice's send returns quickly. Without Kafka, Alice's server must synchronously contact Bob's server.Step 2: Trace failure when Bob's server crashes
If Bob's server crashes, Alice's send blocks waiting for response, then message is lost with no retry logic. Duplication (A) or encryption issues (C) are unrelated. Indefinite retries (D) are not default behavior.Final Answer:
Option B -> Option BQuick Check:
No Kafka -> synchronous send blocks and loses message on Bob crash [check]
Hint: No Kafka -> synchronous send blocks and loses message on failure [OK]
Common Mistakes:
5. At 10x scale, which component in an idempotent payment API system is most likely to become the bottleneck first, and why?
hard
Solution
Step 1: Identify idempotency store workload at scale
Idempotency store must synchronously write and read keys with strong consistency, creating a high throughput bottleneck.Step 2: Compare other components
Payment processors can be scaled horizontally; API gateways are stateless and scalable; client SDKs generating keys is lightweight.Final Answer:
Option D -> Option DQuick Check:
Synchronous idempotency store writes limit scaling first [check]
Hint: Idempotency store sync writes throttle scaling first [check]
Common Mistakes:
