Practice
1. In the payment gateway request flow, at Step 4 the Webhook Delivery Worker attempts to send a payment status update to a merchant's endpoint. If the merchant's server responds with HTTP 500, what does the Delivery Worker do next?
easy
Solution
Step 1: Understand webhook failure handling
Transient failures like HTTP 500 require retries to ensure eventual delivery without blocking the main flow.Step 2: Evaluate retry strategy
Asynchronous retries with exponential backoff and jitter prevent overload and improve success chances.Final Answer:
Option B -> Option BQuick Check:
Webhook retries use async exponential backoff with jitter [check]
Hint: Retry webhooks asynchronously with backoff and jitter [check]
Common Mistakes:
2. A system needs to estimate the number of unique users visiting a website daily, with minimal memory usage and acceptable error margin. Which component is best suited to handle this requirement?
easy
Solution
Step 1: Understand memory constraints and error tolerance
Storing all user IDs explicitly (Redis or relational DB) is memory-heavy and not scalable for large user bases.Step 2: Identify HyperLogLog's role
HyperLogLog provides approximate unique counts with fixed small memory and tunable error, ideal for large-scale cardinality estimation.Final Answer:
Option C -> Option CQuick Check:
HyperLogLog trades accuracy for memory efficiency [check]
Hint: Approximate unique counts with tiny memory -> HyperLogLog [check]
Common Mistakes:
3. A production system needs to continuously measure its reliability against defined error budgets and alert when the budget is close to exhaustion. Which component is primarily responsible for aggregating error rates and calculating remaining error budget in real time?
easy
Solution
Step 1: Identify the component responsible for real-time error budget calculation
The metrics aggregation service continuously processes incoming metrics to compute SLO compliance and error budget burn rates, enabling timely alerts.Step 2: Eliminate other options based on their roles
Kafka stores raw data but does not compute error budgets in real time; tracing systems focus on request-level diagnostics, not aggregate error rates; dashboards visualize data but do not perform calculations.Final Answer:
Option B -> Option BQuick Check:
Metrics aggregation service -> real-time error budget tracking [check]
Hint: Metrics aggregation calculates error budgets in real time [OK]
Common Mistakes:
4. If the metadata server in a file storage system crashes, what exactly breaks in the file write operation?
medium
Solution
Step 1: Understand metadata server role in file writes
The metadata server manages file metadata; if it crashes, metadata updates are lost but data blocks may be written.Step 2: Trace failure impact
Without metadata updates, directory entries and inode info become inconsistent, leading to orphaned or inaccessible files despite data blocks existing.Final Answer:
Option D -> Option DQuick Check:
Metadata server crash -> lost metadata, inconsistent directory [check]
Hint: Metadata server down -> metadata lost, data blocks orphaned [check]
Common Mistakes:
5. At 10x transaction volume, which component in the fraud detection system is most likely to become the first bottleneck, and why?
hard
Solution
Step 1: Analyze Feature Store scaling (A)
Feature Stores often scale horizontally with caching and sharding; not usually first bottleneck.Step 2: Analyze Kafka ingestion cluster (B)
Kafka partitions limit parallelism; increasing partitions can break ordering guarantees per user, making scaling challenging and causing ingestion bottlenecks.Step 3: Analyze Rule Engine and Scoring (C and D)
Rule Engine can be scaled horizontally with stateless evaluation; scoring caches can be sharded by user ID, so less likely first bottleneck.Final Answer:
Option C -> Option CQuick Check:
Kafka partition limits -> ingestion bottleneck at 10x scale [check]
Hint: Kafka partitions limit ingestion scale before others [check]
Common Mistakes:
