MongoDB DBA · 题目 150 · 单选

34. You are requested to create a database user that is able to perform the following set of tasks: grant roles to other database users create new database users create custom roles for specific users Taking into account the principle of least privilege in the creation of users, which built-in role should be granted to such user? Choose the best answer:

题目选项

  1. A.
    userAdmin
  2. B.
    root
  3. C.
    clusterAdmin
  4. D.
    dbAdmin
  5. E.
    readWrite

答案置信度:高

正确答案:A

解析语言:中文

题目要求的三项能力(给其他用户授予角色、创建用户、创建自定义角色)正对应 userAdmin 的 grantRole/createUser/createRole 权限,符合最小权限原则。root、clusterAdmin 权限过大;dbAdmin 只负责集合、索引、统计等库维护操作;readWrite 只能读写数据,都不具备用户/角色管理能力。

所在套题

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

作者 · 作品 · 开源

作者与 MongoDB 作品

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

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

联系作者 ↗mlhp123@outlook.com

支持作者

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

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