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:
题目选项
- A.userAdmin
- B.root
- C.clusterAdmin
- D.dbAdmin
- E.readWrite
答案置信度:高
正确答案:A
解析语言:中文
题目要求的三项能力(给其他用户授予角色、创建用户、创建自定义角色)正对应 userAdmin 的 grantRole/createUser/createRole 权限,符合最小权限原则。root、clusterAdmin 权限过大;dbAdmin 只负责集合、索引、统计等库维护操作;readWrite 只能读写数据,都不具备用户/角色管理能力。