MongoDB DBA · Question 42 · Multiple choice

42. Which of the following statements are true about the oplog.rs collection? Check all that apply:

Answer options

  1. A.
    It stores the statements MongoDB uses to replicate data.
  2. B.
    Every data-bearing node in a replica set must have an oplog.rs collection.
  3. C.
    When full, it overflows into a new collection.

Answer confidence: High

Correct answer: A, B

Explanation language: Chinese

oplog.rs 保存的是 MongoDB 用来复制数据的(幂等)操作记录(A),每个存放数据的副本集成员都必须有自己的 oplog.rs(B)。C 错:oplog.rs 是固定大小的 capped collection,写满后覆盖最旧的记录,而不会"溢出到新集合"。

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 ↗