MongoDB DBA · Question 256 · Multiple choice

34. When configuring a replica set to use internal keyfile authentication, which of the following are true? Check all that apply:

Answer options

  1. A.
    The keyfile must be an hexadecimal string value between 6 and 1024 characters long
  2. B.
    You can use a mix of keyfile and x509 authentication between nodes in the same replica set
  3. C.
    Client authentication is enabled by default

Answer confidence: High

Correct answer: A, B

Explanation language: Chinese

keyfile 用于成员之间的内部认证,文件内容长度要求为 6–1024 个字符(C 对);MongoDB 支持 keyfile 与 x.509 过渡混用(clusterAuthMode 的 sendKeyFile/sendX509 就是为这种场景设计的),故 A 对。B 错:配置 keyfile 只启用内部认证,服务器仍会打印 "Access control is not enabled for the database",要强制客户端认证还必须另外开启 security.authorization。

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 ↗