MongoDB DBA · 题目 384 · 单选

Which of the following applies to the localhost exception? Choose the best answer:

题目选项

  1. A.
    You can create the first user via localhost after enabling authorization but prior to any other user being created.
  2. B.
    You can only create the first user prior to enabling authentication.
  3. C.
    You can bypass authorization any time you connect to MongoDB via localhost
  4. D.
    You need to use the default mongod password to create the first user on the mongod.
  5. E.
    After turning on authentication, but prior to enabling authorization, you may create a user.

答案置信度:高

正确答案:A

解析语言:中文

localhost exception 的准确定义是:已启用 authorization 但集群中还没有任何用户时,可以只从本机(localhost)连接创建第一个用户(通常是 admin 库的管理员)。它不是随时可用的授权后门(B 错),不需要什么默认密码(C 错),也不要求在开启认证之前创建(D 错)。

所在套题

此题在题库中有 2 条记录。公开详情合并相同题干和选项;完整公开题展示置信度最高的一条记录,其他题目仅展示摘要。按套学习保留每条记录原有的答案、解析和置信度。

作者 · 作品 · 开源

作者与 MongoDB 作品

专注数据平台、MongoDB 迁移同步与云运维产品研发。

有任何 MongoDB 需求,均可联系作者。

联系作者 ↗mlhp123@outlook.com

支持作者

如果题库对您有帮助,欢迎自愿扫码打赏。

支付宝扫码打赏作者打开打赏原图 ↗