1.

____________ removes a one or more roles from a user on the current database.(a) db.revokeRolesUser()(b) db.revokeRoles()(c) db.revokeRolesFromUser()(d) none of the mentionedThe question was posed to me during an interview for a job.I'm obligated to ask this question of User and Role Management in section Production Checklist, Security Concepts and Network Security of MongoDB

Answer»

Correct ANSWER is (C) db.revokeRolesFromUser()

The BEST explanation: To specify a ROLE that exists in the same database where db.revokeRolesFromUser() runs, you can either specify the role with the NAME of the role.



Discussion

No Comment Found

Related InterviewSolutions