MongoDB DBA · Question 401 · Multiple choice

Which of the following read preferences ensure that the data being read is fresh and cannot be stale when sent to the client: Check all that apply:

Answer options

  1. A.
    nearest
  2. B.
    primary
  3. C.
    primaryPreferred

Answer confidence: High

Correct answer: B

Explanation language: Chinese

只有 primary 读偏好保证读到的都是当前主节点上的最新数据,B 正确。primaryPreferred 只在主节点不可用时退化为读从节点,nearest 会选延迟最小的成员(可能是从节点),两者都可能返回落后(stale)的数据。

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 ↗