MongoDB C100DBA - MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+)
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^ } } } )
A collection and a document in MongoDB is equivalent to which of the SQL concepts respectively?
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 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?
What command set removes node-1.cluster1.mycompany.local:27017 and node-2.cluster1.mycompany.local:27017 from the replica set, then adds node-1.cluster1.mycompany.local:27017 back to the replica set?
You have designed a web application with mongoDB. You have configured replication. The replica set is in place and function properly. What happens in case of failure?
An employees collection contains documents with fields such as _id, name, age, department, and salary.
A database administrator needs to run a query that will return ONLY the name and age fields for all employees.
Which query meets this requirement?
You have a replicated cluster with 1 primary, 3 secondary, 1 arbiter. One of the secondary is hidden. What is the replication factor of this replicated cluster?
What command adds a document to the class101 collection where the student is " Randall " and the student passed the class?
Which of the following are valid json documents? Select all that apply.
