CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

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.

  1. A. db.grantRoles(“user1”, [“customRole1”])
  2. B. db.createUser({user: “user1”, pwd: “pwd1”, roles: [{role: “customRole1”, db: “admin”}]})
  3. C. db.grantRolesToUser(“user1”, [“customRole1”]) — đáp án hiện tại
  4. 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.

Câu hỏi liền kề