Practice
Solution
Step 1: Understand consistency requirements
Strong consistency requires writes to be serialized and acknowledged before success.Step 2: Evaluate replication patterns
Primary-replica with synchronous writes ensures all writes go through a single primary, preserving consistency. Multi-primary with async or eventual consistency cannot guarantee strong consistency.Final Answer:
Option D -> Option DQuick Check:
Primary sync writes -> strong consistency, tolerates partitions by blocking writes [check]
Solution
Step 1: Understand the role of the Error Budget Calculator at step 4
It updates the remaining error budget by subtracting the recent error rate from the total allowed errors, reflecting current SLO compliance.Step 2: Exclude other states that contradict error budget tracking logic
Resetting the budget ignores recent errors; queuing is done later by alerting; discarding counts would lose accuracy.Final Answer:
Option D -> Option DQuick Check:
Error Budget Calculator updates remaining budget after aggregation [check]
Solution
Step 1: Identify communication direction and latency needs
Interactive gaming requires low latency and bidirectional communication, which Server-Sent Events and Long Polling do not efficiently provide.Step 2: Evaluate protocol capabilities
WebSockets provide full-duplex communication with minimal overhead, ideal for real-time interactive applications. HTTP/2 multiplexing is not widely supported for bidirectional streaming in browsers and adds complexity.Final Answer:
Option A -> Option AQuick Check:
WebSockets enable low-latency bidirectional streams [check]
Solution
Step 1: Evaluate exact counts vs approximation
Exact counts require large memory and high latency for heavy skew data streams.Step 2: Recognize Count-Min Sketch with conservative update
Conservative update reduces overestimation bias, improving accuracy for skewed data.Step 3: Eliminate Bloom filter and HyperLogLog
Bloom filters don't count frequencies; HyperLogLog estimates cardinality, not frequency.Final Answer:
Option A -> Option AQuick Check:
Conservative update Count-Min Sketch balances accuracy and memory for skewed streams [check]
Solution
Step 1: Identify bottleneck in reverse proxy at scale
SSL termination requires CPU and maintains state per connection, making reverse proxy the first to saturate under 10x traffic.Step 2: Eliminate other options
Backend servers handle decrypted traffic; DNS queries scale better with caching; load balancers scale horizontally more easily.Final Answer:
Option B -> Option BQuick Check:
Reverse proxy SSL termination CPU and state bottleneck at scale [check]
