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 70 Discussion

Actual exam question for MongoDB's C100DEV exam
Question #: 70
Topic #: 1
Given a companies collection where each document has the following structure: { _id: ObjectId("52cdef7c4bab8bd675297efd"), name: 'ZoomInfo', homepage_url: 'http://www.zoominfo.com', blog_url: 'http://zoominfoblogger.wordpress.com/', twitter_username: 'ZoomInfo', founded_year: 2000, email_address: '' } Extract all companies from this collection that have the same Twitter username as the company name. Which query should you use?

Suggested Answer: B Vote an answer

db.companies.find( { $expr: { $eq: ['$name', 'twitter_username'] } } ) You have to use $ sign to evaluate twitter_username field. db.companies.find( { $expr: { $eq: ['name', 'twitter_username'] } } ) You have to use $ sign to evaluate name and twitter_username fields. https://docs.mongodb.com/manual/reference/operator/query/expr/

by Clementine at Oct 17, 2025, 11:12 PM

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.