MongoDB Exam Questions / Learn / Paper 2 / Question 108 MongoDB DEV · Question 108 · Multiple choice
Which of the following are the recommended settings when first adding a brand new member to a replica set?
Check all that apply: Answer options A. rs.add( { host: HOST:PORT, priority: 1, votes: 0 } )
B. rs.add( { host: HOST:PORT, priority: 1, votes: 1 } )
C. rs.add( { host: HOST:PORT, priority: 0, votes: 0 } )
Answer confidence: High
Correct answer: C Explanation language: Chinese 新成员刚加入时还没有同步完数据,推荐用 priority: 0、votes: 0 添加(priority: 0 保证它不会被选为 primary,votes: 0 保证这个“空节点”不影响原有投票多数派),等它追平数据后再按需调整。A、B 都给了它 priority 1,B 还给它投票权,会让数据尚未追平的节点有机会被选举为主或改变选举结果。
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