Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Which is the method used in MongoDB to Grant user?
Home
MongoDB
Which is the method used in MongoDB to Grant user?
+1
vote
asked
Apr 17, 2021
in
MongoDB
by
rajeshsharma
Which is the method used in MongoDB to Grant user?
Pick the best answer from given options
a) db.grantRole()
b) All the Options
c) db.grantRolesToUser()
d) db.grantToUser()
mongodb
mongodb-mcq
mongodo-interview-questions
mongodb-questions-answers
mongodb-best-questions
top-50-mongodb-mcq
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Apr 17, 2021
by
rajeshsharma
Correct answer for above question is : c) db.grantRolesToUser()
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
+2
votes
Q: In MongoDB, which is the storage measure used by masters oplog?
asked
Apr 17, 2021
in
MongoDB
by
rajeshsharma
mongodb
mongodb-mcq
mongodo-interview-questions
mongodb-questions-answers
mongodb-best-questions
top-50-mongodb-mcq
+1
vote
Q: Which method is used to return information for all users associated with a database?
asked
Apr 17, 2021
in
MongoDB
by
rajeshsharma
mongodb
mongodb-mcq
mongodo-interview-questions
mongodb-questions-answers
mongodb-best-questions
top-50-mongodb-mcq
+1
vote
Q: Which is the method used to check the current length of replication lag?
asked
Apr 17, 2021
in
MongoDB
by
rajeshsharma
mongodb
mongodb-mcq
mongodo-interview-questions
mongodb-questions-answers
mongodb-best-questions
top-50-mongodb-mcq
+1
vote
Q: Which of the following will control the amount of logging output that mongodb writes to the log?
asked
Apr 17, 2021
in
MongoDB
by
rajeshsharma
mongodb
mongodb-mcq
mongodo-interview-questions
mongodb-questions-answers
mongodb-best-questions
top-50-mongodb-mcq
+1
vote
Q: By default, MongoDB automatically logs slow queries above _____ ms to the log.
asked
Apr 17, 2021
in
MongoDB
by
rajeshsharma
mongodb
mongodb-mcq
mongodo-interview-questions
mongodb-questions-answers
mongodb-best-questions
top-50-mongodb-mcq
+1
vote
Q: In MongoDB, _________ helps to synchronize data across multiple servers.
asked
Apr 17, 2021
in
MongoDB
by
rajeshsharma
mongodb
mongodb-mcq
mongodo-interview-questions
mongodb-questions-answers
mongodb-best-questions
top-50-mongodb-mcq
+1
vote
Q: Find the command that forces MongoDB to use a particular index for a db.collection.find() operation.
asked
Apr 17, 2021
in
MongoDB
by
rajeshsharma
mongodb
mongodb-mcq
mongodo-interview-questions
mongodb-questions-answers
mongodb-best-questions
top-50-mongodb-mcq
+1
vote
Q: Top 25+ MongoDB MCQ Interview Questions with explanation in 2021
asked
Apr 17, 2021
in
MongoDB
by
rajeshsharma
mongodb
mongodb-mcq
mongodo-interview-questions
mongodb-questions-answers
mongodb-best-questions
top-50-mongodb-mcq
+1
vote
Q: Default size of Chunk in MongoDB is ___________.
asked
Apr 17, 2021
in
MongoDB
by
rajeshsharma
mongodb
mongodb-mcq
mongodo-interview-questions
mongodb-questions-answers
mongodb-best-questions
top-50-mongodb-mcq
+2
votes
Q: In MongoDB, _________ is the operator limits the contents of an array field from the query.
asked
Apr 17, 2021
in
MongoDB
by
rajeshsharma
mongodb
mongodb-mcq
mongodo-interview-questions
mongodb-questions-answers
mongodb-best-questions
top-50-mongodb-mcq
...