1.

Which of the following method is used to identify the privileges granted by the roles?(a) rolesUser(b) rolesInfo(c) rolesView(d) all of the mentionedThis question was addressed to me during an interview.My question comes from User and Role Management topic in section Production Checklist, Security Concepts and Network Security of MongoDB

Answer»

The CORRECT ANSWER is (C) rolesView

Easy explanation: db.getRole() wraps the rolesInfo COMMAND.



Discussion

No Comment Found

Related InterviewSolutions