Which of the following does MongoDB use to provide High Scalability?
Consider the following document from the products collection:
What does the following query using $elemMatch return? db.products.find( { product_code: " 345678 " }, { variations: { $elemMatch: { size: ^L^ } } } )
In a replica set with a primary and two secondaries, what should the write concern be set to so only a single node is required to acknowledge a write operation before it is deemed successful?
Below is a sample document of " orders " collection
What operation updates the value of the unitsInStock field to 25 for a document with a " laptop " product, and inserts a new document if it does not exist?
Which of the following needs to be performed prior to initiate backup on a sharded cluster?
What is the output of following two commands in MongoDB: db. posts. insert({n_id " :l}) db.posts.insert({ " _id " :l})
Given the following MongoDB document in the users collection:
{ " userid " : 1, " first " : " John " , " roles " : " Basic " }
Which statement results in this document?
{ " userid " : 1, " first " : " John " , " roles " : " SuperUser " }
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?
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?