| 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: | khalil |
What is the first task that a secondary would perform on being prompted by another secondary for an election?
Consider an orders collection that contains these documents:
{ _id: 1, product: " X-pad " , quantity: 950 }
{ _id: 2, product: " X-pad-pro " , quantity: 1000 }
{ _id: 3, product: " X-phone " , quantity: 850 }
{ _id: 4, product: " X-phone-pro " , quantity: 1350 }
Commands A and B are run at the same time. Assume that no other operations are running.
Consider that the posts collection contains an array called ratings which contains ratings given to the post by various users in the following format:
Which of the following query will return all the documents where the ratings array contains elements that in some combination satisfy the query conditions?
Write the command(s) are correct to enable sharding on a database " testdb " and shard a collection " testCollection " with _id as shard key.