25. Which of the following are true of the MongoDB's built-in role, dbAdmin? Check all that apply:
题目选项
- A.This role grants ability for user and role management.
- B.This role and the role userAdminAnyDatabase are equivalent.
- C.This role grants ability to the perform administrative tasks such as schema-related tasks, indexing, and gathering statistics.
答案置信度:高
正确答案:C
解析语言:中文
dbAdmin 授予的是"管理本库结构"的能力:schema 相关操作、创建/删除索引、收集统计信息等,但不含读写业务数据。用户与角色管理由 userAdmin(本库)或 userAdminAnyDatabase 提供(C 错),因此 B 把 dbAdmin 与 userAdminAnyDatabase 等同起来也是错的。