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:
题目选项
- A.It has one member configured, which has a single vote.
- B.It is configured as a voting-only node, an arbiter.
- 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 都与配置直接矛盾。