Correct Answer: Db.customers.createIndex({firstName:
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
Assuming you have customers collection with a firstName and lastName field, which is the correct MongoDB shell command to create an index on lastName, then firstName both ascending?
One of the documents in your collection has an _id based upon an older database design and you want to change it. You write an update command to find the document and replace the _id but the _id isn't changed. How should you fix the issue?
A compound index allows you to _ ?
Why are ad-hoc queries useful?
How often do the members of a replica set send heartbeats to each other?
When a Capped Collection becomes full, and a new document is added:
Due to their default behavior, Capped Collections are ideal for storing:
What do drivers use with protocol on the wire?
What is the extra space allocated to document on the disk to prevent moving a document when it grows as the result of update() operations.
MongoDB document names cannot start with the characters: