Practice
1. A global CDN operator needs to prevent a misconfiguration from propagating incorrect BGP routes that could cause widespread internet outages. Which component is primarily responsible for detecting and containing such route leaks?
easy
Solution
Step 1: Identify BGP route filtering role
BGP route filters and prefix limits on edge routers prevent invalid or excessive route announcements, containing route leaks.Step 2: Eliminate other options
DNS firewalls (A) do not control BGP routing; client-side validation (C) is ineffective for routing control; distributed caches (D) do not enforce routing policies.Final Answer:
Option B -> Option BQuick Check:
BGP route filters contain route leaks at the network edge [check]
Hint: Edge routers enforce BGP filters to block bad routes [check]
Common Mistakes:
2. A system must ingest 1 million events per second with guaranteed ordering per user session and durable storage. Which component best handles this ingestion requirement?
easy
Solution
Step 1: Identify Kafka's role in ingestion
Kafka supports high-throughput ingestion with partitioning by user session ID, ensuring ordering per session and durability via log storage.Step 2: Eliminate alternatives
Relational DB batch inserts can't handle 1M events/sec with ordering guarantees; Redis Pub/Sub lacks durability and ordering guarantees; HTTP with in-memory queueing risks data loss and no ordering guarantees.Final Answer:
Option C -> Option CQuick Check:
Kafka partitions keyed by session ensure ordering and durability [check]
Hint: Kafka partitions preserve ordering per key [check]
Common Mistakes:
3. A web application needs to route incoming HTTP requests to multiple backend services based on URL paths, while also performing authentication and rate limiting. Which component is best suited to handle this?
easy
Solution
Step 1: Identify component roles
Load Balancers distribute traffic but do not inspect or modify requests; Reverse Proxies forward requests but lack built-in authentication and rate limiting; DNS-based load balancing is coarse and lacks request-level control.Step 2: Match scenario requirements
API Gateway supports routing based on URL paths, authentication, and rate limiting, fulfilling all requirements.Final Answer:
Option C -> Option CQuick Check:
API Gateway handles routing and policies at HTTP layer [check]
Hint: API Gateway = routing + auth + rate limiting [check]
Common Mistakes:
4. Without a heartbeat mechanism in client-side service discovery, what exact failure occurs when a service instance crashes?
medium
Solution
Step 1: Understand heartbeat role in client-side discovery
Heartbeats keep registry updated; without them, registry cannot detect crashed instances.Step 2: Trace failure impact
Without heartbeats, registry retains stale instances; clients cache stale data and send requests to dead instances causing failures.Final Answer:
Option A -> Option AQuick Check:
Registry removes crashed instances only if heartbeats present [check]
Hint: No heartbeat -> registry unaware -> stale instances persist [check]
Common Mistakes:
5. At 10x scale, which component in a distributed lock system using ZooKeeper is most likely to fail first and why?
hard
Solution
Step 1: Identify ZooKeeper leader role
The leader handles all write requests and session heartbeats, becoming a bottleneck under high scale.Step 2: Evaluate other components
Clients (A) can be scaled horizontally; network routers (C) are less likely the first bottleneck; ephemeral nodes (D) are lightweight and cleaned up automatically.Final Answer:
Option A -> Option AQuick Check:
Leader bottleneck due to write and session overhead [check]
Hint: ZooKeeper leader handles all writes -> first bottleneck [check]
Common Mistakes:
