MongoDB DBA · 题目 468 · 单选

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:

题目选项

  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.

答案置信度:高

正确答案:A

解析语言:中文

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

所在套题

此题在题库中有 1 条记录。公开详情合并相同题干和选项;完整公开题展示置信度最高的一条记录,其他题目仅展示摘要。按套学习保留每条记录原有的答案、解析和置信度。

作者 · 作品 · 开源

作者与 MongoDB 作品

专注数据平台、MongoDB 迁移同步与云运维产品研发。

有任何 MongoDB 需求,均可联系作者。

联系作者 ↗mlhp123@outlook.com

支持作者

如果题库对您有帮助,欢迎自愿扫码打赏。

支付宝扫码打赏作者打开打赏原图 ↗