← 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 horizontal scaling in MongoDB achieved through?

    Answer: Sharding data across multiple servers

    Sharding distributes data across multiple machines (shards), allowing MongoDB to handle datasets and throughput that exceed single-server capacity.

  2. What is a shard key in MongoDB sharding?

    Answer: The field(s) used to partition documents across shards

    The shard key determines how documents are distributed across shards; choosing a good shard key is critical for even data distribution and query efficiency.

  3. What is a mongos in a MongoDB sharded cluster?

    Answer: A query router that directs client requests to the appropriate shard(s)

    mongos is a routing service that acts as an interface between the client and the sharded cluster, directing queries and writes to the correct shard(s).

  4. What stores cluster metadata in a MongoDB sharded cluster?

    Answer: Config servers (a separate replica set)

    Config servers form a dedicated replica set that stores the cluster's metadata, including chunk ranges and shard locations.

  5. What is a chunk in MongoDB sharding?

    Answer: A contiguous range of shard key values that MongoDB migrates as a unit

    Chunks are contiguous ranges of shard key values; MongoDB automatically splits and migrates chunks to balance data across shards.

  6. What is a targeted query in a sharded MongoDB cluster?

    Answer: A query that includes the shard key, allowing mongos to route it to specific shard(s)

    A targeted query includes the shard key in its filter, enabling mongos to route it to only the relevant shard(s) rather than broadcasting to all shards.

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