MongoDB Exam Questions / Learn / Paper 17 / Question 485 MongoDB DBA · Question 485 · 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. The IP address/hostname and the port
B. Heartbeat statistics for each node 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 数组,每个成员包含 host(主机名/IP 加端口,A)、成员之间的心跳与复制延迟等统计信息(B),以及 stateStr 表示的角色(PRIMARY/SECONDARY/ARBITER,C)。“每个节点是 primary 还是 secondary”就对应 stateStr 字段,故三项都会返回。
Start learning
Papers containing this question This question appears in 1 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