MongoDB DBA · Question 510 · Multiple choice

27. Which of the following are true of the MongoDB's built-in role, userAdmin? Check all that apply:

Answer options

  1. A.
    This role allows for creating and modifying roles and users on the current database.
  2. B.
    This role and the role userAdminAnyDatabase are equivalent.
  3. C.
    This role provides privileges to manage the cluster as well as the users.

Answer confidence: High

Correct answer: A

Explanation language: Chinese

userAdmin 是“作用于当前数据库”的内置角色,只赋予在该库创建/修改用户与角色(createUser、grantRole、createRole 等)的权限(C)。它不含集群管理权限(A 错),也不等同于 userAdminAnyDatabase——后者作用于所有数据库(B 错)。

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 ↗