Practice
Solution
Step 1: Understand metadata server role in file write
The metadata server manages file metadata like inodes and directory entries, not the actual data blocks.Step 2: Trace what happens at step 3
On a write request, the metadata server updates the inode and directory metadata to reflect changes; data blocks are handled separately by storage nodes.Final Answer:
Option C -> Option CQuick Check:
Metadata server updates inode, not data blocks [check]
Solution
Step 1: Identify zero downtime requirement
Blue-Green deployment uses two identical environments and switches traffic instantly, ensuring zero downtime.Step 2: Eliminate other options
Canary is gradual, not instant; Feature flags don't switch entire environments; Rolling updates cause partial downtime.Final Answer:
Option D -> Option DQuick Check:
Blue-Green switches environments instantly for zero downtime [check]
Solution
Step 1: Understand KSUID structure at step 4
KSUIDs combine a 4-byte timestamp prefix with a 16-byte random payload to ensure uniqueness and sortability.Step 2: Eliminate incorrect states
Deterministic timestamp only (A) lacks uniqueness; UUIDv4 (C) is unrelated; sequential number (D) is not part of KSUID design.Final Answer:
Option C -> Option CQuick Check:
KSUID = timestamp + random payload for uniqueness and sortability [check]
X-API-Version header, what is the exact failure observed by clients using header-based versioning?Solution
Step 1: Understand gateway header parsing role
The gateway usesX-API-Versionheader to route requests; losing parsing logic means it cannot determine version.Step 2: Trace failure consequences
Without parsing, the gateway may retry or fallback inefficiently, causing increased latency rather than immediate errors or silent fallback.Final Answer:
Option D -> Option DQuick Check:
Missing header parsing causes retries and latency spikes [check]
Solution
Step 1: Understand Distributed Counter role
It provides authoritative counts for enforcement and syncs edge caches.Step 2: Trace failure without it
Edge caches rely on counters to verify limits; without counters, they reject all requests to avoid breaches. Global enforcement (B) fails but not silently; client-side fallback (D) is unreliable; delayed errors (A) do not occur.Final Answer:
Option A -> Option AQuick Check:
Edge caches reject all requests without Distributed Counter [check]
