BlackFriday 2024! 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
4 months 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
4 months ago
Hmm, 'fact find'? Sounds like a new detective agency - 'Fact Finders Incorporated'. I'll take the case!
upvoted 0 times
Gail
3 months ago
C) { _id : 2, quote : \'Find out if that fact is correct.\' }
upvoted 0 times
...
Amira
3 months ago
B) { _id : 1, quote : \'That's a fact, Jack.\' }
upvoted 0 times
...
Valentin
3 months ago
A) { _id : 3, quote : \'Nobody will ever catch me.\' }
upvoted 0 times
...
...
Queenie
4 months 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
4 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
Dalene
2 months ago
The query will return options B and C because they contain the words 'fact' and 'find'. Option A is not relevant to the search terms.
upvoted 0 times
...
Izetta
2 months ago
C) { _id : 2, 'Find out if that fact is correct.' }
upvoted 0 times
...
Marilynn
2 months ago
B) { _id : 1, 'That's a fact, Jack.' }
upvoted 0 times
...
Kati
2 months ago
A) { _id : 3, 'Nobody will ever catch me.' }
upvoted 0 times
...
Edwin
2 months ago
The query will definitely return options B and C, they are the only ones that fit.
upvoted 0 times
...
Ettie
2 months ago
Yeah, option A doesn't have any of the words 'fact' or 'find' in it.
upvoted 0 times
...
Marnie
3 months ago
I agree, options B and C are the ones that match the search terms.
upvoted 0 times
...
...
Brandon
4 months ago
I agree with Maricela, documents B and C should be returned based on the search terms.
upvoted 0 times
...
Maricela
4 months ago
I believe it will return documents B and C because they both contain the words 'fact' and 'find'.
upvoted 0 times
...
Rodney
5 months ago
I think it will only return document B.
upvoted 0 times
...
Candida
5 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
4 months ago
B) { _id : 1, quote : "That's a fact, Jack." }
upvoted 0 times
...
Roselle
5 months ago
A) { _id : 3, quote : "Nobody will ever catch me." }
upvoted 0 times
...
...
Leonida
5 months ago
The query will return documents B and C.
upvoted 0 times
...

Save Cancel