Practice
Solution
Step 1: Understand subscriber offset semantics
The subscriber offset tracks the last consumed message. If behind, the Delivery Worker must deliver pending messages to catch up.Step 2: Delivery Worker behavior
It delivers the message at the subscriber's offset and then updates the offset to the next message. Skipping or deleting messages (Options A and C) breaks delivery guarantees. Blocking (The Delivery Worker blocks until the subscriber catches up) is unnecessary and stalls the system.Final Answer:
Option C -> Option CQuick Check:
Delivery Worker delivers and advances subscriber offset [check]
Solution
Step 1: Trace failure impact of authentication service crash
Without the authentication service, the gateway cannot verify credentials and may default to allowing requests through if no fail-closed mechanism is implemented.Step 2: Evaluate other options
Clients receive a 500 Internal Server Error due to gateway crash is unlikely as gateway remains up. Clients receive a 401 Unauthorized response because authentication cannot be verified requires fail-closed design, which is not always implemented. Requests queue indefinitely at the gateway until authentication service recovers causes indefinite blocking, which is rare.Final Answer:
Option C -> Option CQuick Check:
Auth service down -> requests pass unverified if no fail-closed [check]
Solution
Step 1: Understand hash function independence role
Independent hash functions distribute bits uniformly; correlated hashes cause clustering.Step 2: Trace effect of correlated hashes
Correlated hashes set overlapping bits, saturating the bit array faster, increasing false positives and reducing filter effectiveness.Final Answer:
Option A -> Option AQuick Check:
Correlated hashes cause bit array saturation, raising false positives [check]
Solution
Step 1: Trace failure impact on booking flow
Loss of connectivity prevents immediate calendar update, risking inconsistency.Step 2: Analyze failure handling
Immediate confirmation without calendar update (A) risks double bookings; timeout with error (B) hurts UX; automatic retry without delay (D) is unrealistic under network failure. Local queuing (C) allows eventual consistency with delayed confirmation.Final Answer:
Option A -> Option AQuick Check:
Local queuing delays confirmation but prevents data loss [check]
Solution
Step 1: Understand WebSocket failure behavior
When the WebSocket server crashes, the TCP connection closes, and clients receive a close event.Step 2: Trace message delivery impact
Messages sent during downtime are lost unless the application implements retries. Clients must reconnect manually or via client logic. There is no automatic buffering or fallback to Long Polling.Final Answer:
Option C -> Option CQuick Check:
WebSocket crash -> connection close event, no automatic buffering [check]
