MongoDB DBA · Question 312 · Multiple choice

31. Which of the following are preferred configuration options in a sharded cluster? Check all that apply:

Answer options

  1. A.
    Disable localhost exception on individual mongod processes.
  2. B.
    Create different users per mongos processes.
  3. C.
    Enable internal authentication between shard nodes.

Answer confidence: Medium

Correct answer: A, C

Explanation language: Chinese

分片集群必须为成员之间的通信启用内部认证(keyfile 或 x509),否则任何人只要连上某个 shard 就能绕过 mongos 直接读写数据(A 对)。各 mongod 上的 localhost exception 在生产环境也应关闭,避免本机连接绕过认证(C 对)。B 错:所有 mongos 共用同一套用户目录,应创建统一的用户,而不是给每个 mongos 各建一套。

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 ↗