Quick Answer
MongoDB doesn't provide global linearizable consistency across shards in multi-region setups without explicit configuration. Use causal consistency sessions (session.advanceClusterTime) to ensure reads see causally consistent data. For global consistency: configure zone sharding with majority write concern across regions, use global clusters in Atlas, and accept that cross-region reads have latency cost for strong consistency guarantees.
Answer
MongoDB uses majority write concern, oplog ordering, causal consistency, and region-aware replica set tags to ensure global consistency across multi-region, multi-shard deployments.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.
MongoDB interview questions and answers for beginner, junior, mid-level, senior, and expert developers. Perfect for freshers and experienced candidates.