Practice
1. In the trace propagation flow, at step 4 the downstream Service B receives an HTTP request with trace headers. What does Service B's instrumentation do at this step?
easy
Solution
Step 1: Understand instrumentation behavior on incoming requests
At step 4, Service B's instrumentation extracts the trace context from incoming HTTP headers and starts a new span as a child of the parent span to maintain trace continuity.Step 2: Eliminate incorrect behaviors
Starting a new root trace breaks trace linkage. Sending data directly to storage without processing is not the instrumentation's role. Dropping headers loses trace continuity.Final Answer:
Option D -> Option DQuick Check:
Service B extracts context and starts child span [check]
Hint: Extract incoming context, start child span to continue trace [OK]
Common Mistakes:
2. A system requires handling 1 million writes per second with guaranteed durability and ordered processing per user session. Which database technology best fits this requirement?
easy
Solution
Step 1: Identify ordering and durability needs
Relational DBs with row-level locking can't handle 1M writes/sec efficiently; Redis without persistence loses durability; NoSQL eventual consistency lacks ordering guarantees.Step 2: Recognize Kafka's partitioning for ordering
Kafka partitions by user session ensure ordered processing and durability at high throughput.Final Answer:
Option A -> Option AQuick Check:
Kafka partitions -> ordered, durable, high-throughput writes [check]
Hint: Kafka partitions preserve order and durability at scale [check]
Common Mistakes:
3. If Zookeeper's session timeout mechanism fails to detect a crashed leader node promptly, what is the most likely failure observed in the leader election process?
medium
Solution
Step 1: Understand session timeout role
Session timeout detects leader failure by ephemeral node removal.Step 2: Failure of timeout detection
If timeout fails, ephemeral node remains, so followers do not start election; no split-brain occurs.Final Answer:
Option B -> Option BQuick Check:
Backup election mechanisms prevent split-brain despite timeout failure [check]
Hint: Session timeout failure -> ephemeral node stays -> no immediate election [check]
Common Mistakes:
4. At 10x scale, which component in a saga-based event-driven system is most likely to fail first due to stateful bottlenecks, and why?
hard
Solution
Step 1: Identify stateful bottleneck
The saga coordinator holds per-saga state in memory, limiting horizontal scaling and sharding.Step 2: Compare other components
Message brokers scale with partitions; DB scales with sharding; relay is stateless and network-bound.Final Answer:
Option A -> Option AQuick Check:
Saga coordinator's in-memory state limits scaling first [check]
Hint: Stateful saga coordinator limits scaling before stateless components [check]
Common Mistakes:
5. At 10x scale, which component in a gRPC internal service communication system is most likely to fail first and why?
hard
Solution
Step 1: Identify stateful components at scale
gRPC streaming uses HTTP/2 streams bound to server memory per client, limiting horizontal scaling.Step 2: Compare bottlenecks
Protocol Buffers serialization is CPU intensive but parallelizable. Load balancers and service registries scale better with standard techniques. Stateful streaming handlers are the first to hit resource limits.Final Answer:
Option A -> Option AQuick Check:
Stateful HTTP/2 streams -> server connection handler bottleneck [check]
Hint: Stateful streams -> server connection handler bottleneck first [check]
Common Mistakes:
