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?

🎲 Try a Random Question  |  Total Questions in Quiz: 81  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
MongoDB Quiz — practice the complete quiz, review flashcards, or try a random question.

MongoDB MCQs For LinkedIn Skill Assessments.


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?