Correct Answer: db.user.ensureIndex({user_name:1});
Explanation:
Note: This Question is unanswered, help us to find answer for this one
MongoDB Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More MongoDB MCQ Questions
The map-reduce operation uses a temporary collection for data processing; The benefit of this behavior is that the operations:
Which method should be used to create an index on a collection, if it does not already exist?
Which of the following statements are true about MongoDB
Which of the following are considered Core MongoDB operations?
The currently preferred replication method is called:
What is the most accurate statement regarding MongoDB and ad hoc queries?
You have just secured your previously unsecured MongoDB server, but the server is still not requiring authentication. What is the best option?
Which file in the MongoDB directly holds the MongoDB daemon?
What is the correct query to find all of the people who have a home phone number defined?
When no parameters are passed to explain(), what mode does it run in?