Courseiva
Server Administration →easyMultiple Choice

C100DBA Server Administration Practice Question

Which command is used to verify the current replica set configuration and the state of all members?

⚠ Common exam trap

Test-takers frequently mistake rs.status() for rs.conf(), confusing the runtime state and member health of a replica set with its static configuration document settings.

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

✓

rs.status()

Checking the replica set status is a routine administrative task to ensure high availability and data consistency. The 'rs.status()' command provides a comprehensive view of the cluster, including the state of every member, the current primary, and the sync lag. This command is the primary diagnostic tool for verifying that the replica set is healthy and that all nodes are correctly communicating with each other.

Answer analysis

Option-by-option breakdown

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

  • ✗

    db.serverStatus()

    Why it's wrong here

    The 'db.serverStatus()' command returns a document providing an overview of the server's state, including memory usage, connection counts, and database operations. While useful for performance monitoring, it does not provide specific replica set configuration details or the health status of other nodes in the cluster.

  • ✗

    rs.conf()

    Why it's wrong here

    The 'rs.conf()' command returns the current configuration document for the replica set, showing member definitions, voting status, and priority levels. However, it does not show the real-time operational status, such as whether a member is currently in a 'secondary' or 'recovering' state, unlike the 'rs.status()' command.

  • ✓

    rs.status()

    Why this is correct

    The 'rs.status()' command returns a document that reports the status of the replica set, including the role of the current node, the status of other members, and critical information such as lag. This is the standard command for monitoring the health and state of a MongoDB cluster.

  • ✗

    db.isMaster()

    Why it's wrong here

    The 'db.isMaster()' command reports whether the current node is the primary and provides basic information about the replica set. While it is helpful for client-side routing, it lacks the detailed diagnostic and member-specific health information provided by 'rs.status()', making it insufficient for full replica set administration.

About these practice questions

One of 222 original C100DBA 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 C100DBA 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 C100DBA exam.