Dependable C100DBA Exam Dumps to Become MongoDB Certified
Get Ready with C100DBA Exam Dumps (2023)
NEW QUESTION 29
Which of the following is true of the mechanics of replication in MongoDB? Check all that apply.
- A. Operations on the primary are recorded in a capped collection called the oplog
- B. Clients read from the nearest member of a replica ser by default
- C. Members of a replica set may replicate data from any other data-bearing member of the set by default
Answer: A
NEW QUESTION 30
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?
- A. 50, it
- B. 200, more
- C. No limit, none
- D. 20, it
Answer: D
NEW QUESTION 31
In order to ensure that you can maintain high availability in the face of server failure, you should implement which of the following?
- A. Sharding
- B. Properly defined user roles
- C. Put indexes on all of your documents
- D. Replication
- E. The proper storage engine
Answer: D
NEW QUESTION 32
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?
- A. db.population.aggregate( [{ $group: { _id: { city: "$city" },pop: { $sum: "$pop" } } }] )Multi Document Transaction is not supported by MongoDB
- B. db.population.aggregate( [{ $group: { _id: { state: Estate", city: "$city" },pop: { $pop: 1 } } }] )
- C. db.population.aggregate( [{ $group: { _id: { state: Estate", city: n$city" },pop: { $sum: "$pop" } } }] )
- D. db.population.aggregate( [{ $group: { _id: { state: "$state", city; "$city" },pop: { $sum: 1 > > >] )
Answer: C
NEW QUESTION 33
If the value of totalKeysExamined is 30000 and the value of totalDocsExamined is 0, which of the following option is correct?
- A. The query used an index to fetch the results
- B. The query returned 30000 documents after scanning the documents
- C. The query returned 0 documents
- D. None of the above
Answer: A
NEW QUESTION 34
Below is a sample document of "orders" collection
Answer:
Explanation:
$project
NEW QUESTION 35
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:
- A. oplog.rs
- B. <database>..oplog.rs
- C. <replicasetid>.oplog.rs
- D. local.oplog.rs
Answer: D
NEW QUESTION 36
What is the defau size of a GridFS chunk?
- A. 16 MB
- B. 2 MB
- C. 1 MB
- D. 255 K
Answer: D
NEW QUESTION 37
To add a new user and enable authentication in MongoDB, which of the following steps need be executed?
- A. update users collection and run db.enableAuthenticationQ
- B. update users collection and restart mongodb
- C. All of the above
- D. update users collection and restart mongodb with -auth option
Answer: D
NEW QUESTION 38
Which are the ONLY ways to project portions of an array?
- A. $
- B. $ elemMatch
- C. All of the above
- D. $slice
Answer: C
NEW QUESTION 39
MongoDB is a schema-less design.
- A. False
- B. True
Answer: B
NEW QUESTION 40
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?
- A. db.posts.find({author:"Tom"}.limit({tags:2})
- B. Both "db.posts.find({author:"Tom"},{tags:{$slice:2}})" and
"db.posts.find({author:"Tom"}).limit($slice: {tags:2})" are valid. $slice works both with projection and limit. - C. db.posts.find({author:"Tom">,{tags:{$slice:2})
- D. db.posts.find({author:"Tom"}.limit($slice:{tags:2>)
Answer: C
NEW QUESTION 41
Which of the documents below will be retrieved by the following query? Assume the documents are stored in a collection called "sample". Check all that apply.
db.sample.find( { "$or" : [ { "a" : { "$in" : [ 3, 10] > }, { "b" : { "$lt" : 2 > > ] > )
- A. {".Jd" :: 8, "a": 11, "c": 1, "b": 0}
- B. {".Jd" :6, "a": 1, "c" :1, "b" :5}
- C. {".Jd" :: 1, "a": 0, "c" :: 0, "b": 2}
- D. {".Jd" :: 2, "a": 2, "c" :: 0, "b": 1}
- E. {".Jd" :: 4, "a": 5, "c" :: 0, "b": 17}
- F. {''_Jd" :7, "a": 8, "c" :1, "b" :7}
- G. {".Jd" :: 5, "a": 3, "c" :: 0, "b": 12}
- H. { \Jd" :10,"a": 3, "c": 1, "b": 1}
- I. { ''\Jd" :9, "a": 17, "c": 1, "b": 1}
- J. {''__id" :3, "a": 4, "c" :0, "b" :14}
Answer: A,D,G,H,I
NEW QUESTION 42
The MongoDB explain() method does not support which of the following verbosity mode:
- A. customExecutionStats
- B. executionStats
- C. queryPlanner
- D. allPlansExecution
Answer: A
NEW QUESTION 43
You are comparing values of different BSON types in mongodb. You want to compare from lowest to highest.
Which comparison order is used?
- A. Objec^Array^inData,Symbol, String,MinKey, Null, Numbers
- B. MinKey, Null, Numbers,Symbol, String,Object,Array,BinData
- C. MinKey, Null, Numbers,Object,Array,BinData,Symbol, String
- D. Object/Array^inData/Symbol,MinKey, Null, Numbers,String
Answer: B
NEW QUESTION 44
Consider the following documents:
You perform the following query;
How many documents will be updated by the query?
- A. 0
- B. 1
- C. 2
- D. 3
- E. 4
Answer: B
NEW QUESTION 45
In a sharded replicas set environment with multiple mongos servers, which of the following would decide the mongos failover?
- A. mongo shell
- B. mongos
- C. individual language drivers
- D. mongod
Answer: C
NEW QUESTION 46
Which mongodb tool is used to report details on number of database operations in MongoDB?
- A. mongotop
- B. mongodump
- C. mongostat
- D. mongorestore
Answer: C
NEW 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 the next pipeline stage.
- A. $sum
- B. $aggregate
- C. $match
- D. $group
Answer: C
NEW QUESTION 48
What does the following aggregate query perform?
- A. Fetches the posts with likes between 100 and 200, sets the _id of the first document as null and then increments it 1 every time
- B. Groups the posts by number of likes (101, 102, 103.) by adding 1 every time
- C. Fetches the posts with likes between 100 and 200 and sets their _id as null
- D. Calculates the number of posts with likes between 100 and 200
Answer: D
NEW QUESTION 49
......
Download Exam C100DBA Practice Test Questions with 100% Verified Answers: https://www.realexamfree.com/C100DBA-real-exam-dumps.html
Realistic C100DBA Dumps are Available for Instant Access: https://drive.google.com/open?id=1CEWuz5O5o1BIICwHv4RaO2LARD1QWLIf

