2024 Free MongoDB C100DBA Exam Files Downloaded Instantly
Pass MongoDB C100DBA exam Dumps 100 Pass Guarantee With Latest Demo
To prepare for the C100DBA exam, MongoDB offers a variety of resources, including an exam study guide, online courses, and practice exams. C100DBA exam study guide covers all the topics included in the exam and provides sample questions and answers. MongoDB University offers several online courses, including MongoDB Basics, MongoDB for DBAs, and MongoDB for Developers, which cover the topics included in the exam. MongoDB also provides practice exams to help candidates assess their readiness for the actual exam.
NEW QUESTION # 71
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: { state: Estate", city: "$city" },pop: { $sum: "$pop" } } }] )
- B. db.population.aggregate( [{ $group: { _id: { city: "$city" },pop: { $sum: "$pop" } } }] )Multi Document Transaction is not supported by MongoDB
- C. db.population.aggregate( [{ $group: { _id: { state: Estate", city: "$city" },pop: { $sum: 1 > > >] )
- D. db.population.aggregate( [{ $group: { _id: { state: "$state", city: "$city" },pop: { $pop: 1 } } }] )
Answer: A
NEW QUESTION # 72
Which of the following is true about sharding?
- A. A sharded environment does not support sorting functionality since the documents lie on various mongod instances
- B. Sharding is enabled at the database level
- C. We cannot change a shard key directly/automatically once it is set up
- D. Creating a sharded key automatically creates an index on the collection using that key
Answer: C
NEW QUESTION # 73
The difference between $push and $addToSet is:
- A. $addToSet adds the item to the field only if the new item is of the same datatype
- B. There is no major difference between them. $addToSet is a deprecated version of $push.
- C. $addToSet needs the fields to be already present while $push will work even if the field is not present
- D. $addToSet adds the item to the field only if it does not exist already; while $push pushes the item to the field irrespective of whether it was present or not
Answer: D
NEW QUESTION # 74
In a replica set, a_________number of members ensures that the replica set is always able to select a primary.
- A. Even
- B. 0
- C. Depends on the application architecture
- D. Odd
Answer: D
NEW QUESTION # 75
Below is a sample document in a given collection test.
{ a : 5, b : 3, c: 2, d : 1 }
Given a compound index { a: 1, b:l, c:l, d:l}, Which of the below query will not use in-memory sorting? Select all valid.
- A. db.test.find( { a: 5, b: 3 } ).sort( { a: 1} )
- B. db.test.find( { a: 5, b: 3 } ).sort( { c: 1, d : 1 } )
- C. db.test.find( { a: 5, b: 3 } ).sort( {c: 1 } )
- D. db.test.find( { a: 5, b: 3 } ).sort( { a: 1, b: 1, c: 1 } )
Answer: B,C
NEW QUESTION # 76
Which command is used to determine storage capacity of specific database?
- A. mongotop
- B. constats
- C. dbstats
- D. mongostat
Answer: C
NEW QUESTION # 77
Which of the following commands will return all the posts with number of likes greater than 100 and less than 200, both inclusive?
- A. db.posts.find({ likes : { $gte : 100, $lt : 200 } } );
- B. db.posts.find({ likes : { $gte : 100 , $lte : 200 } } );
- C. db.posts.find({ likes : { $gt : 100 , $lte : 200 } } );
- D. db.posts.find({ likes : { $gt : 100, $lt : 200 > > );
Answer: B
NEW QUESTION # 78
When should we consider representing a one-to-many relationship in an embedded collection instead of separate collection?
- A. When the many is not very large
- B. When the many is very large
- C. Never
- D. Always
Answer: A
NEW QUESTION # 79
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. Returns the complete document but retrieves only the size field from the array
- B. Returns the document but with only one element in the variations array (corresponding to size L)
- C. Returns the complete document since MongoDB does not support partial array retrieval
- D. Returns the complete document but retrieves only the size field from the array and also with only one element in the variations array (corresponding to size L)
Answer: B
NEW QUESTION # 80
What tool do you use if you want to extract a CSV from mongo?
Answer:
Explanation:
mongoexport
NEW QUESTION # 81
What is the defau size of a GridFS chunk?
- A. 255 K
- B. 1 MB
- C. 2 MB
- D. 16 MB
Answer: A
NEW QUESTION # 82
Which of the following needs to be performed prior to initiate backup on a sharded cluster?
- A. db.stopServer( )
- B. db.stopBalancer( )
- C. sh.stopBalancer( )
- D. sh.stopServer( )
Answer: C
NEW QUESTION # 83
The following aggregation option is used to specify the specific fields that needs to be passed to the next stage of the aggregation pipeline:
- A. $group
- B. $match
- C. $aggregate
- D. $project
Answer: D
NEW QUESTION # 84
Which of the following commands can cause the database to be locked?
- A. Inserting data
- B. Issuing a query
- C. Map-reduce
- D. All of the above
Answer: D
NEW QUESTION # 85
Below is a sample document of "orders" collection
- A. $sort
Answer: A
NEW QUESTION # 86
Consider a collection posts which has fields: Jd, post_text, post_author, post_timestamp, post_tags etc.
Which of the following query retrieves ONLY the key named post_text from the first document retrieved?
- A. db.posts.finOne({},{post_text:1})
- B. db.posts.finOne({},{_id:0, post_text:1})
- C. db.posts.find({},{_id:Of post_text:1})
- D. db.posts.findOne({post_text: 1})
Answer: B
NEW QUESTION # 87
Suposse tou have the following collection with only 2 documents:
If you run an aggregation query and use { $unwind: "$traits" } as the first stage, how many documents will be passed to the next stage of the aggregation pipeline?
- A. 0
- B. 1
- C. 2
- D. 3
- E. 4
Answer: A
NEW QUESTION # 88
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. 200, more
- B. No limit, none
- C. 50, it
- D. 20, it
Answer: D
NEW QUESTION # 89
What read preference should your application use if you want to read from the primary under normal circumstances but allow reads from secondaries when a primary is unavailable?
- A. Secondary
- B. nearest
- C. primary
- D. primaryPreferred
- E. secondaryPreferred
Answer: D
NEW QUESTION # 90
......
One of the primary objectives of the MongoDB C100DBA exam is to provide a standardized way for employers to evaluate the skills of potential DBAs. Passing the exam can provide a competitive advantage in the job market and demonstrate a high level of proficiency with MongoDB. Additionally, the certification can help individuals earn higher salaries, as employers are willing to pay more for certified professionals.
Read Online C100DBA Test Practice Test Questions Exam Dumps: https://www.testsdumps.com/C100DBA_real-exam-dumps.html
The C100DBA PDF Dumps Greatest for the MongoDB Exam Study Guide!: https://drive.google.com/open?id=1c9ahbdjxm5v8kP3RzSLUh9EXvIpDVGNr
