Courseiva

C100DEV Drivers, Tools, Transactions, and Search Practice Question

What is the primary role of the 'mongos' process in a sharded cluster?

⚠ Common exam trap

Candidates often confuse the role of the 'mongos' router with the config servers or individual shards, mistakenly believing it stores the actual database data or manages consensus elections directly.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

It routes requests to the correct shards.

The 'mongos' process acts as a query router, bridging the gap between client applications and the sharded cluster. It receives incoming requests, determines which shards contain the necessary data using the cluster's metadata, and routes the request to the appropriate shards. It then aggregates the results before returning them to the client. This abstraction allows applications to interact with the entire cluster as if it were a single database instance.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    It stores the data chunks for the shards.

    Why it's wrong here

    Shards (mongod processes) are responsible for storing the actual data chunks. The mongos process does not store any data itself; its sole responsibility is to route requests and manage the distribution of queries, acting as an interface layer that shields the application from cluster-level complexity.

  • ✓

    It routes requests to the correct shards.

    Why this is correct

    mongos is the request router. It consults the config servers to understand how data is partitioned across the cluster and forwards client queries to the relevant shards. This routing functionality is critical for providing a unified view of the data to the application, hiding the sharding distribution logic.

  • ✗

    It manages the election of the primary node.

    Why it's wrong here

    Replica set members handle elections internally using the Raft-based consensus protocol. The mongos process has no role in the election process for replica sets or the overall health management of shard nodes; its focus is strictly on request routing and presenting a coherent interface to the client.

  • ✗

    It persists the metadata for the entire cluster.

    Why it's wrong here

    The config servers are responsible for persisting the metadata and the cluster's shard map. While mongos caches this metadata for performance reasons, it is not the source of truth for the cluster configuration; it merely fetches and uses the information stored by the configuration server tier.

About these practice questions

One of 259 original C100DEV practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official MongoDB exam blueprint

This C100DEV practice question is part of Courseiva's free MongoDB certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the C100DEV exam.