MongoDB DBA · Question 164 · Single choice

48. Consider a replica set with 5 healthy nodes and no arbiters. If the primary node in the set becomes unavailable, how many of the other nodes must be available to elect a new primary? Choose the best answer:

Answer options

  1. A.
    0
  2. B.
    1
  3. C.
    2
  4. D.
    3
  5. E.
    4

Answer confidence: High

Correct answer: D

Explanation language: Chinese

无 arbiter 的 5 节点副本集投票权共 5 票,选出新 primary 需要多数派 3 票。primary 不可用后剩下 4 个节点中至少要有 3 个可达才能凑够多数派;只有 2 个可达时属于少数派,既不能选举也不能接受多数写。

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.

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 ↗