MongoDB DBA · Question 295 · Multiple choice

14. Which of the following is/are true of the term field in a replica set configuration document? Check all that apply:

Answer options

  1. A.
    represents an incrementing number used to distinguish revisions of the replica set configuration document.
  2. B.
    used to determine the maximum number of chunks for shard backed by the specific replica set covered by the configuration document.
  3. C.
    used with the version field to determine the freshest version of the replica set configuration document.
  4. D.
    gets incremented each time the primary steps up after winning an election.

Answer confidence: Medium

Correct answer: C, D

Explanation language: Chinese

副本集配置文档里的 term 要与 version 一起比较(先比 term 再比 version)才能确定哪份配置更新,所以 C 对;每次主节点选举获胜、新主上台后 term 会随之递增,D 也对。A 描述的是 version 字段的定义(用来区分配置文档的修订号),B 说它决定分片的最大 chunk 数纯属编造。

Papers containing this question

This question appears in 2 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 ↗