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:
题目选项
- A.nearest
- B.primary
- C.primaryPreferred
答案置信度:高
正确答案:B
解析语言:中文
只有 primary 读偏好保证读到的都是当前主节点上的最新数据,B 正确。primaryPreferred 只在主节点不可用时退化为读从节点,nearest 会选延迟最小的成员(可能是从节点),两者都可能返回落后(stale)的数据。