Practice
Solution
Step 1: Identify artifact immutability responsibility
The artifact registry stores build outputs as immutable, versioned entities to ensure traceability and reproducibility.Step 2: Eliminate other components
The deployment orchestrator manages rollout but does not store artifacts; test runner validates but does not version; rollback manager tracks deployments but not artifacts.Final Answer:
Option A -> Option AQuick Check:
Artifact registry ensures immutable, versioned storage [check]
Solution
Step 1: Trace Inventory Service state at step 4
The Inventory Service relies on confirmed reservation events to update availability. Pending reservations may not yet be reflected.Step 2: Understand event-driven state updates
Without confirmation, Inventory cannot mark the room as unavailable. It waits for Reservation Service confirmation events to update state, so availability is unknown until then.Final Answer:
Option D -> Option DQuick Check:
Inventory waits for confirmation events before updating availability [check]
Solution
Step 1: Understand Weighted Round Robin operation
Weighted Round Robin cycles through servers, selecting each server multiple times proportional to its weight before moving to the next.Step 2: Apply weights to selection
Server A with weight 5 will be selected more frequently than B or C. At step 5, the balancer continues cycling respecting weights.Final Answer:
Option A -> Option AQuick Check:
Weighted Round Robin respects weights in cycling, not just highest weight always [check]
Solution
Step 1: Understand failure impact of shared database outage
Services depending on the shared DB cannot proceed with reads/writes, causing blocking or errors.Step 2: Evaluate fallback mechanisms
Some microservices implement internal queuing and retry logic to handle transient DB failures asynchronously, preventing immediate request failures.Final Answer:
Option A -> Option AQuick Check:
Internal queuing and retries mitigate DB outage impact [check]
Solution
Step 1: Evaluate mobile client support
gRPC streaming (Use gRPC streaming for persistent connections to push notifications) is efficient but poorly supported on many mobile platforms, causing compatibility issues.Step 2: WebSockets with connection broker
WebSockets (Use WebSockets with a scalable connection broker to handle mobile client limitations) are widely supported on mobile and, with a scalable broker, can handle millions of connections efficiently.Step 3: Polling drawbacks
Long polling (Use long polling HTTP requests to simulate real-time updates) and periodic polling (Use periodic polling every 5 seconds to reduce server load) increase latency and server load, unsuitable for real-time at scale.Final Answer:
Option A -> Option AQuick Check:
WebSockets + broker -> scalable, mobile-friendly real-time [check]
