MongoDB Exam Questions / Learn / Paper 5 / Question 224 MongoDB DBA · Question 224 · Multiple choice
2. What information will be returned by rs.status() when it is run on a replica set node?
Check all that apply: Answer options A. Heartbeat statistics for each node in the replica set
B. The IP address and hostname of each of the nodes in the replica set
C. Whether each node in the replica set is a primary or a secondary
Answer confidence: High
Correct answer: A, B, C Explanation language: Chinese rs.status() 返回的 members 数组对每个成员给出 stateStr(PRIMARY/SECONDARY/ARBITER 等角色)、health/lastHeartbeat/pingMs(心跳与延迟统计)以及 name(主机名:端口,即节点主机信息),三项都能得到。常与它混淆的是 db.serverStatus()(进程级指标)和 rs.printReplicationInfo()(只看 oplog 时间窗)。
Start learning
Papers containing this question This question appears in 4 bank records. Public pages combine identical prompts and options. Selected questions display the highest-confidence record; the others show a short preview. Paper-based learning preserves each record's answer, explanation, and confidence.
Questions come from this project's existing bank. Answers and Chinese explanations are AI-generated. Data checks cover field formats, answer-to-option mapping, and answer consistency across duplicate questions. Confidence is not official endorsement or a correctness guarantee. Check the MongoDB documentation for your version.
Independent study resource; not affiliated with MongoDB. MongoDB documentation