Practice
Solution
Step 1: Identify idempotency enforcement point
The transaction processing service must track unique request IDs to prevent duplicate charges, as it controls payment execution.Step 2: Eliminate other options
The load balancer cannot reliably detect duplicates due to statelessness; the database unique constraints cannot cover all idempotency cases; client SDK retries are unreliable and cannot guarantee global idempotency.Final Answer:
Option D -> Option DQuick Check:
Transaction service stores request IDs -> prevents duplicate processing [check]
Solution
Step 1: Understand KSUID structure at step 4
KSUIDs combine a 4-byte timestamp prefix with a 16-byte random payload to ensure uniqueness and sortability.Step 2: Eliminate incorrect states
Deterministic timestamp only (A) lacks uniqueness; UUIDv4 (C) is unrelated; sequential number (D) is not part of KSUID design.Final Answer:
Option C -> Option CQuick Check:
KSUID = timestamp + random payload for uniqueness and sortability [check]
Solution
Step 1: Role of event ingestion pipeline
This pipeline persists raw metric data for downstream alerting components.Step 2: Consequence of pipeline failure
Without persistence, threshold and anomaly detectors get incomplete or missing data, leading to missed alerts or false positives.Final Answer:
Option A -> Option AQuick Check:
Missing data -> detectors miss or misfire alerts [check]
Solution
Step 1: Understand BFF's role in request flow
BFF is the dedicated layer for client-specific aggregation; if it crashes, requests cannot be processed as usual.Step 2: Analyze fallback behavior
Microservices handle requests directly, bypassing BFF automatically is correct because some architectures allow API Gateway to fallback to direct microservice calls, though without client-specific aggregation. Clients receive stale cached data from API Gateway without error is wrong as API Gateway typically does not cache full responses. Clients' requests fail immediately as BFF is the only entry point for client-specific aggregation is incorrect because requests do not fail immediately if fallback exists. API Gateway retries requests indefinitely until BFF recovers is wrong since indefinite retries cause client timeouts.Final Answer:
Option A -> Option AQuick Check:
API Gateway fallback to microservices bypasses BFF on failure [check]
Solution
Step 1: Understand Kafka's role in event streaming
Kafka buffers and reliably delivers connection events to downstream services asynchronously.Step 2: Trace failure impact
If Kafka is down, writes to Kafka fail but connection requests may still be accepted at the API layer; however, downstream consumers do not get updates, causing stale graph state.Final Answer:
Option D -> Option DQuick Check:
Kafka down -> downstream stale, no immediate request loss [check]
