MongoDB DBA · Question 287 · Multiple choice

6. Which is a good method for reducing network latency from client application to database cluster, in a sharded cluster? Check all that apply:

Answer options

  1. A.
    use queries that avoid the use of your shard key
  2. B.
    co-locate your mongos on the same host as a shard primary
  3. C.
    hosting your entire cluster in separate regions

Answer confidence: Medium

Correct answer: B

Explanation language: Chinese

客户端到集群的网络延迟主要由 客户端→mongos→分片 的跳数决定,把 mongos 部署到离数据更近的位置(与分片主节点同机)能减少转发延迟(B)。A 会让查询避开分片键、变成广播查询,延迟更大;C 把整个集群拆到不同地域只会让跨地域往返更慢。

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 ↗