MongoDB Exam Questions / Learn / Paper 5 / Question 267 MongoDB DBA · Question 267 · Single choice
45. Which command do you use to immediately add a member to a deployed replica set when you are connected to the primary?
Choose the best answer: Answer options A. B. C. D. E. Answer confidence: High
Correct answer: A Explanation language: Chinese 在 primary 上执行 rs.add("host:port") 会立即把新成员写入副本集配置并发起 reconfig,是"立即添加成员"的标准做法。rs.reconfig() 用于提交整份配置文档(批量/复杂修改时使用),rs.initiate() 只用于首次初始化副本集,rs.conf() 仅读取配置,rs.freeze() 是让成员暂停参加选举。
Start learning
Papers containing this question This question appears in 3 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