MongoDB DBA · Question 474 · Multiple choice

49. Consider the following scenarios for reconfiguration of a replica set and indicate which are accurate: Check all that apply:

Answer options

  1. A.
    Reconfiguration requires a restart of the primary node.
  2. B.
    Reconfiguration of a replica set can be done via a MongoDB Driver.
  3. C.
    Reconfiguration can be done online without restart using the rs.reconfig() in a Mongo Shell connected to the primary node.

Answer confidence: Medium

Correct answer: C

Explanation language: Chinese

重配置是联机操作:连到主节点后用 rs.reconfig() 提交新配置即可,不需要重启任何节点,B 正确。C 明显错误(不需要重启主节点);A 不准确——重配置属于管理操作,驱动并没有提供副本集重配置的 API(只能通过 shell 或手工下发 replSetReconfig 命令)。

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.

AUTHOR · PROJECTS · OPEN SOURCE

Author & MongoDB projects

Building data platforms, MongoDB migration and sync tools, and cloud operations products.

Contact the author for any MongoDB needs.

Contact the author ↗mlhp123@outlook.com

Support the author

If this question bank helps you, optional donations are welcome.

Scan with Alipay to support the authorOpen full-size donation image ↗