MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4) (C100DBA) Free Practice Test
Question 1
Which of the following are valid json documents? Select all that apply.
Correct Answer: A,C
Question 2
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 contain a copy of the oplog in the following collection:
Correct Answer: C
Question 3
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?
Correct Answer: D
Question 4
What tool would you use if you want to save a gif file in mongo?
Correct Answer:
mongofile
Question 5
What tool do you use if you want to extract a CSV from mongo?
Correct Answer:
mongoexport
Question 6
Aggregation Pipelines have a limit of:
Correct Answer: B
Question 7
The following aggregation option is used to specify the specific fields that needs to be passed to the next stage of the aggregation pipeline:
Correct Answer: C
Question 8
Which of the following is correct about MongoDB?
Correct Answer: B
Question 9
Which of the following commands finds all the documents in the posts collection with post timestamp field as null?
Correct Answer: B
Question 10
Write the command(s) are correct to enable sharding on a database "testdb" and shard a collection "testCollection" with _id as shard key.


Correct Answer:
sh.enableSharding("testdb") & sh.shardCollection("testdb.testCollection", {_id : 1 }, true )