Question
a.
db.grantRole()
b.
db.grantRolesToUser()
c.
db.grantToUser()
d.
all of the mentioned
Posted under MongoDB
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Grant the user the role using the ________ method.
Similar Questions
Discover Related MCQs
Q. Point out the correct statement.
View solution
Q. To view a role’s information, you must be explicitly granted the role or must have the _________ action on the role’s database.
View solution
Q. ______________ enables a set of internal commands useful for internal testing operations.
View solution
Q. enableLocalhostAuthBypass is not available using _________ database command.
View solution
Q. The ________ client authentication allows clients to authenticate to servers with certificates rather than with a username and password.
View solution
Q. Point out the wrong statement.
View solution
Q. If you need to disable access control for any reason, restart the process with ______ setting.
View solution
Q. If you use the localhost exception when deploying a new MongoDB system, the first user you create must be in the ________ database.
View solution
Q. Point out the correct statement.
View solution
Q. If you create the user administrator before enabling access control, MongoDB disables the ________ exception.
View solution
Q. MongoDB supports the execution of JavaScript code for certain server-side operations like ____________
View solution
Q. Which of the following is used to display the replica set configuration object?
View solution
Q. _____________ is used to initiate relica member set.
View solution
Q. To generate pseudo-random data to use for a keyfile, issue the following __________ command.
View solution
Q. Use the __________ option to ensure that MongoDB listens for connections from applications on configured addresses.
View solution
Q. Point out the wrong statement.
View solution
Q. ___________ allows administrators to define and limit the resources and operations that a user can access.
View solution
Q. With ___________ enabled, MongoDB forces all clients to identify themselves before granting access to the server.
View solution
Q. Use __________ to encrypt communication between mongod and mongos components of a MongoDB client as well as between all applications and MongoDB.
View solution
Q. The MongoDB _________ Console interface does not support Kerberos authentication.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond MongoDB? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!