Valid C100DEV Dumps shared by ExamDiscuss.com for Helping Passing C100DEV Exam! ExamDiscuss.com now offer the newest C100DEV exam dumps, the ExamDiscuss.com C100DEV exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com C100DEV dumps with Test Engine here:
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": { "$lt": "M" } } ).sort( { "imdb.votes": -1 } )
Correct Answer: B
No, this query does not use equality in the index prefix. When you use an index to filter and sort, the query must contain equality conditions on all prefix keys that precede the sort keys. Also, it skipped the next key in the "imdb.rating" prefix in the sort predicate. https://docs.mongodb.com/manual/indexes/