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 pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More MongoDB interview questions

View all →