MongoDB DBA · Question 508 · Multiple choice

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

Answer options

  1. A.
    This role grants ability for user and role management.
  2. B.
    This role and the role userAdminAnyDatabase are equivalent.
  3. C.
    This role grants ability to the perform administrative tasks such as schema-related tasks, indexing, and gathering statistics.

Answer confidence: High

Correct answer: C

Explanation language: Chinese

dbAdmin 授予的是"管理本库结构"的能力:schema 相关操作、创建/删除索引、收集统计信息等,但不含读写业务数据。用户与角色管理由 userAdmin(本库)或 userAdminAnyDatabase 提供(C 错),因此 B 把 dbAdmin 与 userAdminAnyDatabase 等同起来也是错的。

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 ↗