Practice
Solution
Step 1: Trace Certificate Service behavior at Step 5
Certificate Service requires up-to-date progress to ensure course completion before issuing certificates.Step 2: Evaluate handling of stale progress data
Retrying (Certificate Service retries fetching progress data until fresh data is available) would cause indefinite blocking; provisional certificates (Certificate Service issues a provisional certificate flagged as pending verification) complicate trust; ignoring freshness (Certificate Service immediately issues the certificate ignoring progress freshness) risks invalid certificates.Final Answer:
Option A -> Option AQuick Check:
Certificate Service rejects generation if progress data is stale [check]
Solution
Step 1: Trace Saga Coordinator on compensation event
Upon payment failure, the coordinator must trigger compensating transactions to undo prior successful steps.Step 2: Confirm state transition
The saga moves to a compensating state, ensuring rollback actions are executed to maintain consistency.Final Answer:
Option C -> Option CQuick Check:
Compensation event triggers rollback state transition [check]
Solution
Step 1: Identify lock service role in reservation flow
The lock service ensures exclusive access to room inventory during reservation to prevent double booking.Step 2: Trace failure impact
Without the lock service, Inventory cannot reliably mark rooms as unavailable, leading to stale or incorrect availability states shown to users (Inventory service marks rooms as available incorrectly, causing UI to show wrong availability). Reservations may still proceed but with inconsistent inventory state. Blocking indefinitely (Reservation requests block indefinitely waiting for locks, causing user timeouts and failed bookings) is unlikely as fallback mechanisms exist. Payment processing (Payment processing fails because it depends on the lock service for transaction ordering) is independent of locking. Double bookings (Reservations proceed normally but double bookings increase due to lack of coordination) may increase but the immediate failure is incorrect inventory state.Final Answer:
Option C -> Option CQuick Check:
Lock service failure causes stale inventory availability state [check]
Solution
Step 1: Understand role of token assignment metadata
Token metadata maps virtual nodes to physical nodes; losing it breaks new node integration.Step 2: Trace failure impact
Existing nodes continue serving keys assigned before loss; new nodes cannot be assigned tokens properly.Final Answer:
Option A -> Option AQuick Check:
Token metadata loss blocks new node assignment; existing nodes unaffected [check]
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]
