Question 11
Given a movies collection where each document has the following structure: { _id: ObjectId("573a1390f29313caabcd60e4"), genres: [ 'Short', 'Comedy', 'Drama' ], title: 'The Immigrant', year: 1917, imdb: { rating: 7.8, votes: 4680, id: 8133 }, countries: [ 'USA' ] } This time we are using the Aggregation Framework to search our database. Which of the following queries will find all movies with a rating greater than 8?
Question 12
Which of the following rules (when ordering) should be followed when building query indexes?
Question 13
What is the best practice in using the $match operator?
Question 14
Given a flights collection that is sharded on the following shard key: { "airline_id" : 1, "departure_airport" : 1 } Which of the following queries results in a targeted query?
Question 15
Given a movies collection where each document has the following structure: { _id: ObjectId('573a1390f29313caabcd60e4'), genres: [ 'Short', 'Comedy', 'Drama' ], title: 'The Immigrant', year: 1917, imdb: { rating: 7.8, votes: 4680, id: 8133 }, countries: [ 'USA' ] } Which of the following queries will find all the movies that have more votes than the year in which they were released?
