Câu 26: C100DBA: MongoDB Associate Database Administrator
What command is used to grant a role “customRole1” to an existing user called “user1”?
Nội dung câu hỏi
What command is used to grant a role “customRole1” to an existing user called “user1”?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. db.grantRoles(“user1”, [“customRole1”])
- B. db.createUser({user: “user1”, pwd: “pwd1”, roles: [{role: “customRole1”, db: “admin”}]})
- C. db.grantRolesToUser(“user1”, [“customRole1”]) — đáp án hiện tại
- D. db.addRoleToUser(“user1”, [“customRole1”])
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.