38. You are tasked with creating a new user responsible for cluster administration. The tasks this user is required to perform are the following: Add and remove nodes from a replica set Resync a replica node Add and remove shards Enable sharding This user should not be able to read any data from the cluster or be able to create new databases or indexes. Which of the following built-in roles should be assigned to this user? Choose the best answer:
题目选项
- A.dbOwner
- B.clusterManager
- C.dbAdmin
- D.userAdmin
- E.root
答案置信度:高
正确答案:B
解析语言:中文
clusterManager 正好覆盖题目要求:对副本集/分片集群做管理动作(增删节点、resync、增删 shard、enableSharding),但不含读取业务数据的权限。dbAdmin、dbOwner 管的是单库结构与数据,userAdmin 管用户角色,root 权限过大,都不满足"只做集群管理、不读数据"的约束。