| Exam Name: | MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+) | ||
| Exam Code: | C100DBA Dumps | ||
| Vendor: | MongoDB | Certification: | MongoDB Certified DBA Associate |
| Questions: | 172 Q&A's | Shared By: | peggy |
Which of the documents below will be retrieved by the following query? Assume the documents are stored in a collection called " sample " . Check all that apply.
db.sample.find( { " $or " : [ { " a " : { " $in " : [ 3, 10] > }, { " b " : { " $lt " : 2 > > ] > )
Given the following query:
db.load.find({
_id: { $lte: 1000 },
rnd: 1234,
date: { $gte: ISODate( " 2023-01-01 " ) }
}).sort({ date: -1 })
In a compound index that best supports this query, what field should be first field?
What read preference should your application use if you want to read from the primary under normal circumstances but allow reads from secondaries when a primary is unavailable?
Consider that you have a collection called population which has fields state and city. Which of the following query will calculate the population grouped by state and city?