Skip to main content
InterviewHubPRO
Section Overview
Q16

Question 16 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

32%
MongoDB & NoSQL (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

What is Read Concern (`local`, `available`, `majority`, `linearizable`)?

senior LevelSystem Design

In Simple Words: Controls the consistency and isolation of data returned by read operations:

  1. local (Default): Returns data from the node responding to the query without verifying if the data has been committed to a majority of nodes.
  2. majority: Returns data that has been acknowledged by a majority of replica set nodes (guarantees data cannot be rolled back).
  3. linearizable: Real-time strong consistency; waits for concurrent writes and verifies primary status with peers before returning.