Which of the following is a valid insert statement in mongodb? Select all valid.
Consider a products collection:
{ " _id " : 1, " item " : " t-shirt " , " color " : " red " , " price " : 10 }
{ " _id " : 2, " item " : " sweater " , " color " : " green " , " price " : 20 }
{ " _id " : 3, " item " : " belt " , " color " : " black " , " price " : 15 }
{ " _id " : 4, " item " : " hat " , " color " : " green " , " price " : 12 }
What operation modifies the price of all products that have a color value of " green " ?
Which of the following commands finds all the documents in the posts collection with post timestamp field as null?
If the value of totalKeysExamined is 30000 and the value of totalDocsExamined is 0, which of the following option is correct?
A user stores movie data in a collection called movies. The collection contains thousands of documents.
A sample document looks like this:
{ " title " : " Titanic " , " year " : 1997, " rating " : 8.6 }
The user runs the following query to sort movies first by year, and then by rating:
db.movies.find().sort({ " year " : 1, " rating " : -1 })
Which index would improve the query ' s performance the MOST?
Which of the following does MongoDB use to provide High Availability and fault tolerance?
Which of the following node is used during election in a replication cluster?
If you have created a compound index on (A,B, C) which of the following access pattern will not be able to utilize the index?
In a replica set, which member is responsible for maintaining copies of the primary ' s data?
Which of the following is true of the mechanics of replication in MongoDB? Check all that apply.