Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

MongoDB Exam C100DBA Topic 1 Question 90 Discussion

Actual exam question for MongoDB's C100DBA exam
Question #: 90
Topic #: 1
[All C100DBA Questions]

You perform the following query on the sayings collection, which has the index

{ quote : "text" }:

Assuming the documents below are in the collection, which ones will the following query return? Check all that

apply.

db.sayings.find( { $text : { $search : "fact find" } } )

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Contribute your Thoughts:

Tatum
28 days ago
The query is a bit of a 'fact find' itself, isn't it? Trying to uncover the truth hidden in those documents.
upvoted 0 times
...
Jannette
29 days ago
Hmm, 'fact find'? Sounds like a new detective agency - 'Fact Finders Incorporated'. I'll take the case!
upvoted 0 times
Gail
7 days ago
C) { _id : 2, quote : \'Find out if that fact is correct.\' }
upvoted 0 times
...
Amira
18 days ago
B) { _id : 1, quote : \'That's a fact, Jack.\' }
upvoted 0 times
...
Valentin
19 days ago
A) { _id : 3, quote : \'Nobody will ever catch me.\' }
upvoted 0 times
...
...
Queenie
30 days ago
This is a tricky one! I'm not sure if the query will be case-sensitive or not. Might be worth testing it out with some sample documents.
upvoted 0 times
...
Tenesha
1 months ago
I think the query will return options B and C, since they both contain the words 'fact' and 'find'. Option A doesn't seem to have any relevance to the search terms.
upvoted 0 times
Marnie
5 days ago
I agree, options B and C are the ones that match the search terms.
upvoted 0 times
...
...
Brandon
2 months ago
I agree with Maricela, documents B and C should be returned based on the search terms.
upvoted 0 times
...
Maricela
2 months ago
I believe it will return documents B and C because they both contain the words 'fact' and 'find'.
upvoted 0 times
...
Rodney
2 months ago
I think it will only return document B.
upvoted 0 times
...
Candida
2 months ago
The query looks good, but I'm not sure if it will return the documents with the exact phrase 'fact find'. It might be better to use the $text operator with a phrase search instead.
upvoted 0 times
Chauncey
2 months ago
B) { _id : 1, quote : "That's a fact, Jack." }
upvoted 0 times
...
Roselle
2 months ago
A) { _id : 3, quote : "Nobody will ever catch me." }
upvoted 0 times
...
...
Leonida
2 months ago
The query will return documents B and C.
upvoted 0 times
...

Save Cancel