Practice
1. In the CI/CD pipeline request flow, at Step 5 the Deployment Worker receives a build artifact reference and triggers deployment. What happens if the artifact is missing from the artifact registry at this step?
easy
Solution
Step 1: Trace Deployment Worker behavior on missing artifact
The Deployment Worker validates artifact presence before deployment; missing artifact causes failure.Step 2: Check fallback behaviors
Retrying indefinitely would block pipeline; proceeding silently risks inconsistency; automatic rollback is triggered only after failed deployment, not missing artifact.Final Answer:
Option C -> Option CQuick Check:
Deployment Worker fails and reports error on missing artifact [check]
Hint: Missing artifact -> deployment fails, no silent fallback [check]
Common Mistakes:
2. In the URL shortener system, at step 5 the Redirect Service receives a short code and queries the Cache before the Database. What happens if the Cache lookup misses at this step?
easy
Solution
Step 1: Trace Redirect Service behavior at Cache miss
Cache miss means the short code is not in memory; the service must fetch the original URL from persistent storage.Step 2: Confirm Cache update after DB fetch
After retrieving from DB, the service updates the Cache to speed up future requests.Final Answer:
Option B -> Option BQuick Check:
Cache miss triggers DB lookup and Cache update [check]
Hint: Cache miss -> DB lookup -> Cache update [check]
Common Mistakes:
3. In the request flow for a nearby search, at step 4 the Quadtree component receives a query bounding box. What does the Quadtree do at this step?
easy
Solution
Step 1: Understand Quadtree traversal
At step 4, the Quadtree recursively visits nodes overlapping the bounding box to efficiently narrow down candidate locations.Step 2: Eliminate other options
It returns all businesses within the bounding box without further filtering is incorrect because Quadtree does filtering, not a full scan. It converts the bounding box into Geohash prefixes and queries a key-value store describes Geohash usage, not Quadtree. It sends the bounding box to a full-text search engine for keyword filtering is unrelated to spatial indexing.Final Answer:
Option C -> Option CQuick Check:
Quadtree recursively traverses nodes intersecting query box [check]
Hint: Quadtree recursively visits nodes overlapping query bounding box [OK]
Common Mistakes:
4. In a time-series ingestion pipeline, at step 4 the Aggregation Worker reads raw event batches from Kafka and writes summarized metrics to the time-series database. What happens if the Aggregation Worker crashes after reading but before writing?
easy
Solution
Step 1: Understand Kafka's offset commit behavior
Kafka retains messages until consumers commit offsets. If the worker crashes before committing, messages remain available for reprocessing.Step 2: Analyze crash timing
Since the worker crashed before writing summaries and committing offsets, raw events remain in Kafka and will be reprocessed after restart.Final Answer:
Option A -> Option AQuick Check:
Kafka retains uncommitted messages for reprocessing [check]
Hint: Kafka commits offsets after processing to avoid data loss [check]
Common Mistakes:
5. For a multiplayer online game requiring real-time position updates with minimal delay, which transport protocol and design choice best balances speed and reliability?
medium
Solution
Step 1: Analyze game requirements
Real-time position updates require low latency but some reliability to avoid inconsistent state.Step 2: Evaluate protocol trade-offs
UDP provides low latency; adding application-level sequence numbers and selective retransmission balances speed and reliability.Final Answer:
Option C -> Option CQuick Check:
UDP + app-level reliability fits real-time game updates [check]
Hint: UDP + app reliability balances speed and correctness [check]
Common Mistakes:
