34. When configuring a replica set to use internal keyfile authentication, which of the following are true? Check all that apply:
题目选项
- A.The keyfile must be an hexadecimal string value between 6 and 1024 characters long
- B.You can use a mix of keyfile and x509 authentication between nodes in the same replica set
- C.Client authentication is enabled by default
答案置信度:高
正确答案:A、B
解析语言:中文
keyfile 用于成员之间的内部认证,文件内容长度要求为 6–1024 个字符(C 对);MongoDB 支持 keyfile 与 x.509 过渡混用(clusterAuthMode 的 sendKeyFile/sendX509 就是为这种场景设计的),故 A 对。B 错:配置 keyfile 只启用内部认证,服务器仍会打印 "Access control is not enabled for the database",要强制客户端认证还必须另外开启 security.authorization。