← All MongoDB Flashcard Decks

MongoDB Replication and Sharding Flashcards

6 cards from real MongoDB practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 6 MongoDB Replication and Sharding flashcards as text
  1. What is a scatter-gather query in MongoDB sharding?

    Answer: A query without the shard key that must be sent to all shards and results merged

    Scatter-gather queries are broadcast to all shards because they lack the shard key; results are gathered and merged by mongos, making them less efficient.

  2. What read preference allows reads from secondary replica set members?

    Answer: All options except 'primary' allow secondary reads

    Any read preference other than 'primary' (primaryPreferred, secondary, secondaryPreferred, nearest) can route reads to secondary members.

  3. What does the rs.status() command display in MongoDB?

    Answer: The current state, health, and replication lag of all replica set members

    rs.status() returns a document describing the current state of the replica set, including each member's health, state, and optime.

  4. What is replication lag in MongoDB?

    Answer: The time difference between when the primary logs an operation and a secondary applies it

    Replication lag measures how far behind a secondary is in replicating the primary's oplog, which can affect read-your-writes consistency.

  5. What happens during a replica set failover when the primary becomes unavailable?

    Answer: An election is triggered and a secondary is promoted to primary

    When the primary is unreachable, eligible secondaries call an election and the member with the most up-to-date oplog and highest priority typically wins.

  6. What is zone sharding in MongoDB?

    Answer: Associating specific shard key ranges with specific shards for data locality

    Zone sharding maps specific shard key ranges to specific shards, enabling data locality for compliance, latency, or hardware optimization requirements.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. 10geneducation.zendesk.com — Test dates, score release, passing score, test delivery, retake policy · verified Oct 2026
  2. learn.mongodb.com — Eligibility, fees, exam format, time limit · verified Oct 2026
MongoDB Replication and Sharding Flashcards — MongoDB Study Cards with Answers