Practice
Solution
Step 1: Identify the role of consistent hashing
Consistent hashing distributes keys to nodes such that when nodes join or leave, only a small subset of keys need reassignment, minimizing reshuffling.Step 2: Eliminate other components
Vector clocks handle version conflicts but do not distribute keys. Gossip protocol manages cluster membership but not key distribution. Quorum replication ensures durability but does not affect key assignment.Final Answer:
Option C -> Option CQuick Check:
Consistent hashing minimizes key remapping on node changes [check]
Solution
Step 1: Trace deployment behavior on artifact registry unavailability
Deployment cannot validate or fetch artifacts, so it aborts and triggers rollback to maintain safety.Step 2: Eliminate other failure modes
Proceeding with cached or skipping validation risks corrupted deployments; blocking indefinitely causes pipeline stalls but rollback is preferred.Final Answer:
Option B -> Option BQuick Check:
Unavailable registry -> deployment aborts and triggers rollback [check]
Solution
Step 1: Trace failure impact of Progress Worker crash
Progress Worker crash before persistence means recent watch time is lost.Step 2: Evaluate user experience on resume
System detects missing progress update and returns error preventing continuation (User receives an error message preventing course continuation until retry), rather than silently resetting or duplicating progress.Final Answer:
Option C -> Option CQuick Check:
Crash causes error blocking course continuation until retry [check]
Solution
Step 1: Evaluate TLS versions and key exchange
TLS 1.3 supports ephemeral key exchange (ECDHE) which provides forward secrecy and reduces handshake round trips, lowering latency.Step 2: Eliminate other options
Use TLS 1.0 with RSA key exchange for compatibility uses outdated TLS 1.0 and RSA key exchange lacking forward secrecy and higher latency. Disable certificate validation to speed up connections compromises security by disabling validation. Use self-signed certificates to avoid certificate chain overhead risks trust issues and is unsuitable for public APIs.Final Answer:
Option A -> Option AQuick Check:
TLS 1.3 ephemeral keys -> forward secrecy + lower latency [check]
Solution
Step 1: Understand failure handling in sequence number loss
Some implementations fallback to UUID v4 to avoid duplicates when sequence state is lost.Step 2: Evaluate other options
Blocking causes latency; duplicate IDs cause collisions; resetting timestamp breaks ordering guarantees.Final Answer:
Option D -> Option DQuick Check:
Fallback to UUID v4 avoids duplicates despite losing ordering [check]
