Question 31
Assign typical operational tasks to the Mongo Developer.
Question 32
Suppose you have a following index for football_palyers collection: { "last_name": 1, "details.country": 1, "details.club": 1, "age": 1 } Determine which queries are able to successfully use a given index for both filtering and sorting.
Question 33
You have the following index in a movies collection: { "title": 1, "imdb.rating": -1, "imdb.votes": -1, "type": 1 }
Can the following query use the given index for both filtering and sorting?
db.movies.find( { "title": "James Bond" } ).sort( { "imdb.rating": 1, "imdb.votes": 1 } )
Question 34
You are working in a team on a certain application in the gaming sector. Queries similar to the following are quite often executed by your application. db.gamers.find( { level: 10, is_active: true } ) How can you speed up the execution of similar queries? Choose the best option.
Question 35
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?
