seniorMongoDB
Explain Read Preferences in MongoDB.
Updated May 1, 2026
Short answer
Read preferences determine how the driver routes read queries to members of a replica set.
Deep explanation
Modes include: Primary (default), PrimaryPreferred, Secondary, SecondaryPreferred, and Nearest. Secondary reads may return stale data due to replication lag.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro