Question 1
What is the equivalent command in MongoDB for the following SQL query?
SELECT * FROM posts WHERE author like "%john%"
SELECT * FROM posts WHERE author like "%john%"
Question 2
By default, the MongoDB cursor in mongo shell is configured to return how many documents? To get the next set of documents, which command is used?
Question 3
In a sharded replicas set environment with multiple mongos servers, which of the following would decide the mongos failover?
Question 4
To add a new user and enable authentication in MongoDB, which of the following steps need be executed?
Question 5
Which of the following commands can cause the database to be locked?