31. Which of the following are preferred configuration options in a sharded cluster? Check all that apply:
题目选项
- A.Disable localhost exception on individual mongod processes.
- B.Create different users per mongos processes.
- C.Enable internal authentication between shard nodes.
答案置信度:中
正确答案:A、C
解析语言:中文
分片集群必须为成员之间的通信启用内部认证(keyfile 或 x509),否则任何人只要连上某个 shard 就能绕过 mongos 直接读写数据(A 对)。各 mongod 上的 localhost exception 在生产环境也应关闭,避免本机连接绕过认证(C 对)。B 错:所有 mongos 共用同一套用户目录,应创建统一的用户,而不是给每个 mongos 各建一套。