Practice
Solution
Step 1: Role of relationship index
The index enables efficient lookup of edges; without it, traversal cannot proceed correctly.Step 2: Behavior without index
Queries relying on the index return empty results silently because no edges are found, not errors or scans.Final Answer:
Option A -> Option AQuick Check:
Missing index causes silent empty results, not crashes or scans [check]
Solution
Step 1: Identify multi-region write and availability requirements
Multi-region writes require conflict resolution and high availability without synchronous blocking.Step 2: Compare Redis and DynamoDB capabilities
DynamoDB Global Tables support multi-region writes with built-in conflict resolution and eventual consistency; Redis lacks native multi-region write support.Final Answer:
Option A -> Option AQuick Check:
DynamoDB Global Tables -> multi-region writes with conflict resolution [check]
Solution
Step 1: Evaluate development overhead vs scaling needs
Serverless reduces initial infrastructure management overhead by outsourcing scaling and deployment.Step 2: Consider future scaling and limitations
Serverless can limit control and cause cold start latency, but suits rapid early development with limited traffic.Final Answer:
Option C -> Option CQuick Check:
Serverless minimizes early overhead but may limit control later [check]
Solution
Step 1: Analyze access and cost requirements
Data is infrequently accessed but needs retrieval within hours, so cold storage alone is too slow.Step 2: Evaluate tiering benefits
Warm storage offers moderate cost and latency; cold storage reduces cost further. Tiering balances cost and retrieval time.Final Answer:
Option A -> Option AQuick Check:
Warm + cold tiering balances cost and retrieval latency [check]
Solution
Step 1: Analyze scaling impact on components
Downstream service (A) is protected by circuit breaker; load balancer (C) scales horizontally; client cache (D) is local and less critical.Step 2: Identify circuit breaker state store bottleneck
Centralized state store for circuit breaker metrics faces contention and latency at 10x concurrency, causing delays and incorrect breaker states.Final Answer:
Option B -> Option BQuick Check:
Centralized circuit breaker state store bottlenecks first at scale [check]
