C100DBA Exam Questions
122 real C100DBA exam questions with expert-verified answers and explanations. Page 1 of 3.
- Question #1
What does the following aggregate query perform?
- Question #2
Which of the following commands finds all the documents in the posts collection with post timestamp field as null?
- Question #3
What is the first task that a secondary would perform on being prompted by another secondary for an election?
- Question #4
Aggregation Pipelines have a limit of:
- Question #5
Which option should be used to update all the documents with the specified condition in the MongoDB query?
- Question #6
Which mongodb tools allow us to work with our data in a human readable format?
- Question #8
In a sharded cluster, from which node does one stop the balancer process before initiating backup?
- Question #9
Which command is used to determine storage capacity of specific database?
- Question #10
What is the maximum size of a MongoDB document
- Question #11
What is the maximum size of a MongoDB document?
- Question #12
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?
- Question #13
Which of the following does MongoDB use to provide High Scalability?
- Question #14
Which of the following are valid json documents? Select all that apply.
- Question #15
Which of the following aggregate commands in MongoDB uses a pipeline approach with the goals of improving the aggregation performance?
- Question #16
'mongoimport' command is used for
- Question #17
The oplog (operations log) is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases. All the replica set members c...
- Question #19
You are comparing values of different BSON types in mongodb. You want to compare from lowest to highest. Which comparison order is used?
- Question #20
In what format does mongodump creates backup files?
- Question #21
Which of the following commands will return all the posts with number of likes greater than 100 and less than 200, both inclusive?
- Question #22
Consider the following posts document: Which of the following queries will return the documents but with only the first two tags in the tags array?
- Question #23
Which node in a replica set does accept write operation?
- Question #25
Which are the ONLY ways to project portions of an array?
- Question #27
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?
- Question #28
Which operations add new documents to a collection?
- Question #29
Consider the following document from the products collection: What does the following query using $elemMatch return? db.products.find( { product_code: "345678" }, { variations: { $...
- Question #30
Update If Correct is an approach for which of the following concepts in MongoDB:
- Question #31
In a sharded replicas set environment with multiple mongos servers, which of the following would decide the mongos failover?
- Question #32
Below is a sample document of "orders" collection
- Question #33
Which type of indexes does MongoDB support?
- Question #34
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?
- Question #35
Which of the following is true about aggregation framework?
- Question #36
Given a collection posts as shown below having a document array comments, which of the following command will create an index on the comment author descending?
- Question #37
Which of the following operator can be used to control the number of items of an array that a query returns?
- Question #39
What does the totalKeysExamined field returned by the explain method indicate?
- Question #40
In a replicated cluster, which of the following node would only be used during an election?
- Question #41
The following aggregation option is used to specify the specific fields that needs to be passed to the next stage of the aggregation pipeline:
- Question #42
What is the maximum size of Index Key Limit and Number of Indexes per collection?
- Question #43
In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)
- Question #44
MongoDB is a schema-less design.
- Question #45
What is the output of following two commands in MongoDB: db. posts. insert({n_id":l}) db.posts.insert({"_id":l})
- Question #46
Given a collection posts as shown below having a document array comments, which of the following command will create an index on the comment author descending?
- Question #47
Which of the following command inside aggregate command is used in MongoDB aggregation to filter the documents to pass only the documents that match the specified condition(s) to t...
- Question #48
By default, the MongoDB cursor in mongo shell is configured to return how many documents? To get the next set of documents, which command is used?
- Question #49
What is the use of mongodump and mongorestore tools?
- Question #50
Which format/standard is used by MongoDB internally to store documents?
- Question #51
Which of the tags in a replica set configuration specify the operations to be read from the node with the least network latency?
- Question #52
What is the on-premise solution having functionality equivalent to cloud manager?
- Question #53
In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)
- Question #54
Which of the following is incorrect statement about find and findOne operations in MongoDB?
- Question #55
'$set' sets the value of