Problem Statement
What does the CAP theorem state for a distributed data store during a network partition?
Explanation
When a partition occurs, the system cannot synchronously coordinate all replicas. You either reject or block some requests to keep data consistent, or serve all requests and risk divergence. That is the core trade-off at partition time.
Code Solution
SolutionRead Only
If partition: choose C (reject writes) OR choose A (accept, reconcile later).
