MongoDB DBA · Question 463 · Single choice

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:

Answer options

  1. A.
    dbOwner
  2. B.
    clusterManager
  3. C.
    dbAdmin
  4. D.
    userAdmin
  5. E.
    root

Answer confidence: High

Correct answer: B

Explanation language: Chinese

clusterManager 正好覆盖题目要求:对副本集/分片集群做管理动作(增删节点、resync、增删 shard、enableSharding),但不含读取业务数据的权限。dbAdmin、dbOwner 管的是单库结构与数据,userAdmin 管用户角色,root 权限过大,都不满足"只做集群管理、不读数据"的约束。

Papers containing this question

This question appears in 1 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 ↗