Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam C100DEV Topic 1 Question 3 Discussion

Actual exam question for MongoDB's C100DEV exam
Question #: 3
Topic #: 1
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 } )

Suggested Answer: B Vote an answer

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/

by Pandora at Mar 17, 2024, 09:34 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.