Practice
1. In a bulkhead-isolated microservice architecture, at step 4 in the request trace, the Bulkhead Manager checks the thread pool status before dispatching a request. What happens if the thread pool is fully occupied?
easy
Solution
Step 1: Trace Bulkhead Manager behavior at Step 4
When the thread pool is full, queuing indefinitely (A) risks resource exhaustion. Dynamic resizing (D) breaks isolation guarantees. Forwarding to fallback (C) is a separate mechanism.Step 2: Understand bulkhead failure containment
Rejecting requests immediately (B) prevents overload and contains failure blast radius.Final Answer:
Option D -> Option DQuick Check:
Bulkhead rejects requests when resource limits reached [check]
Hint: Reject requests when bulkhead resources are exhausted [check]
Common Mistakes:
2. In the Pastebin system request flow, at Step 4 the Expiration Worker scans stored snippets to remove expired entries. What state does the worker observe for a snippet whose TTL just expired but is still being accessed by a user?
easy
Solution
Step 1: Trace Expiration Worker behavior at Step 4
The worker deletes expired snippets in batches; deletion is not instantaneous upon TTL expiry.Step 2: Understand user access during deletion
Until deletion completes, the snippet remains accessible; no locking or blocking occurs.Final Answer:
Option B -> Option BQuick Check:
Batch deletion delays snippet removal, keeping it accessible briefly [check]
Hint: Expiration deletion is batch-based, not instant [check]
Common Mistakes:
3. For detecting anomalies in high-volume metric streams with low latency, which architecture is better suited and why?
medium
Solution
Step 1: Analyze latency and volume constraints
High-volume streams require low-latency detection to be actionable.Step 2: Match architecture to constraints
Streaming anomaly detection with windowed models processes data continuously, enabling near real-time alerts, unlike batch or polling which add latency.Final Answer:
Option C -> Option CQuick Check:
Streaming windowed models -> low latency anomaly detection [check]
Hint: High volume + low latency -> streaming anomaly detection [check]
Common Mistakes:
4. You must design a system that processes high-volume event streams with strict ordering per customer but can tolerate some message duplication. Which approach is best?
medium
Solution
Step 1: Evaluate ordering and throughput needs
Single partition guarantees ordering but limits throughput severely.Step 2: Assess partitioning by customer ID
Partitioning by customer ID preserves ordering per customer and allows parallel consumption.Final Answer:
Option A -> Option AQuick Check:
Partition key + consumer group balances order and scale [check]
Hint: Partition by customer ID for order and parallelism [OK]
Common Mistakes:
5. At 10x scale, which component in a durable messaging system fails first and why?
hard
Solution
Step 1: Identify bottlenecks at 10x scale
Databases (A) can be scaled with sharding; delivery workers (C) can be horizontally scaled; chat servers (D) are stateful but not the first to fail.Step 2: Analyze Kafka broker load
Kafka brokers handle replication and disk I/O per partition leader; at 10x scale, leaders become overloaded causing broker failures first.Final Answer:
Option B -> Option BQuick Check:
Kafka partition leaders overloaded with replication cause first failure at scale [check]
Hint: Kafka partition leaders hit replication I/O bottleneck first at scale [check]
Common Mistakes:
