MongoDB DBA · Question 468 · Single choice

43. Suppose you have a one node replica set with the following replication configuration document: { "_id" : "replset", "version" : 1, "term" : 1, "protocolVersion" : NumberLong(1), "writeConcernMajorityJournalDefault" : true, "members" : [ { "_id" : 0, "host" : "localhost:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : { }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : -1, "catchUpTakeoverDelayMillis" : 30000, "getLastErrorModes" : { }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("608988e6ff2245c1e2d4d46c") } } Which of the following are true of the configuration for this replica set? Choose the best answer:

Answer options

  1. A.
    It has one member configured, which has a single vote.
  2. B.
    It is configured as a voting-only node, an arbiter.
  3. C.
    It is configured as a hidden node.

Answer confidence: High

Correct answer: A

Explanation language: Chinese

配置中 members 只有一项,且 arbiterOnly:false、hidden:false、slaveDelay:0、priority:1、votes:1,即一个可投票、可被选举的正常数据节点,A 正确。它既不是只投票的 arbiter(arbiterOnly 为 false),也不是 hidden 节点(hidden 为 false),B、C 都与配置直接矛盾。

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 ↗