We have the following index in a movies collection: { title: 1, genres: 1 } We want to insert the following document: { "title": "The Immigrant", "year": 1917, "genres": [ "Short", "Comedy", "Drama" ] } How many index entries will be created?
There is a collection named products in MongoDB database. Your coworker wants to know how many products are in this collection (number of documents in the collection) from the United States. Which query should you use?
Suppose you have the following index on a routes collection: db.routes.createIndex( { airplane: 1, src_airport: 1, dst_airport: 1, stops: 1 } ) Which of the following queries will be able to use this index for sorting. Check all that apply.
What is the built-in database called config in MongoDB for?