Courseiva
Replication →mediumMultiple Choice

C100DBA Replication Practice Question

Which command is used to check the current replication lag status on a secondary node?

⚠ Common exam trap

Candidates often confuse this command with rs.status(), which provides general replica set health but requires manual calculation to determine the actual replication lag duration for secondaries.

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.printSecondaryReplicationInfo()

The rs.printSecondaryReplicationInfo() command provides a convenient summary of how far behind each secondary is compared to the primary. This is a vital tool for monitoring the health of the replica set and identifying nodes that may be having trouble keeping up with the write volume, which could signal underlying network or hardware performance bottlenecks.

Answer analysis

Option-by-option breakdown

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

  • ✗

    rs.status()

    Why it's wrong here

    rs.status() shows general replica set information and the state of each member, but it does not calculate or display the specific replication lag duration. It is useful for general monitoring, but for troubleshooting sync delays, more specialized commands are required to get the precise time-lag metrics.

  • ✗

    rs.printReplicationInfo()

    Why it's wrong here

    rs.printReplicationInfo() displays the status and size of the oplog. It tells you the time range covered by the oplog, which is useful for capacity planning, but it does not tell you the current replication lag for each secondary node relative to the primary's latest operation.

  • ✓

    rs.printSecondaryReplicationInfo()

    Why this is correct

    This specific shell helper calculates the difference between the primary's last operation and the secondary's applied operation, outputting the lag in seconds. It is the most effective command for quickly identifying which nodes are falling behind and verifying that the entire set is effectively synchronized.

  • ✗

    db.stats()

    Why it's wrong here

    db.stats() provides statistics about a specific database, such as the number of collections, indexes, and total data size. It has no visibility into the replication status or the health of the replica set members. It is used for database-level capacity management rather than cluster health monitoring.

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.