1.

Point out the wrong statement.(a) You must have the createUser action on a database to create a new user on that database(b) You must have the grantRole action on a role’s database to grant the role to another user(c) If your MongoDB deployment has no users, you must connect to mongod using the localhost exception(d) None of the mentionedThis question was posed to me in an interview for job.Question is taken from User and Role Management topic in division Production Checklist, Security Concepts and Network Security of MongoDB

Answer»

Correct answer is (a) You must have the createUser action on a database to CREATE a NEW user on that database

The best explanation: You can use –noauth OPTION when starting mongod to GAIN full access the system.



Discussion

No Comment Found

Related InterviewSolutions