Full C100DBA Practice Test and 130 Unique Questions, Get it Now!
The Best C100DBA Exam Study Material Premium Files and Preparation Tool
To prepare for the MongoDB C100DBA certification, candidates can take advantage of various resources, including official MongoDB documentation, training courses, and practice exams. MongoDB University offers a range of courses and resources to prepare candidates for the certification exam. Additionally, the MongoDB community provides a wealth of knowledge and support for those preparing for the exam.
NEW QUESTION # 27
What tool do you use if you want to extract a CSV from mongo?
Answer:
Explanation:
mongoexport
NEW QUESTION # 28
Which option should be used to update all the documents with the specified condition in the MongoDB query?
- A. updateAII instead of update
- B. specify {updateAII: true} as the third parameter of update command
- C. specify {all: true} as the third parameter of update command
- D. specify {multi : true} as the third parameter of update command
Answer: D
NEW QUESTION # 29
Write the command(s) are correct to enable sharding on a database "testdb" and shard a collection "testCollection" with _id as shard key.
Answer:
Explanation:
sh.enableSharding("testdb") & sh.shardCollection("testdb.testCollection", {_id : 1 }, true )
NEW QUESTION # 30
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 and also with only one element in the variations array (corresponding to size L)
- 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
Answer: B
NEW QUESTION # 31
In mongodb how do you update a document partially?
- A. $set
- B. $modify
- C. $update
- D. $project
Answer: A
NEW QUESTION # 32
Which of the following operator can be used to control the number of items of an array that a query returns?
- A. $
- B. MongoDB does not support partial retrieval of items from an array
- C. $ elemMatch
- D. $slice
Answer: D
NEW QUESTION # 33
You are in a sharded cluster. What will you do prior to initiating backup in sharded cluster?
- A. sh.stopserverQ
- B. db.stopserver()
- C. db.stopBalancer()
- D. sh.stopBalancer()
Answer: D
NEW QUESTION # 34
Which features of relational database management systems were deliberately omitted in MongoDB and help us to obtain horizontal scalability? Check all that apply.
- A. Multi-statement transactions
- B. Authentication
- C. Joins
Answer: A,C
NEW QUESTION # 35
In a replica set, a_________number of members ensures that the replica set is always able to select a primary.
- A. 0
- B. Even
- C. Depends on the application architecture
- D. Odd
Answer: D
NEW QUESTION # 36
You perform the following query on the sayings collection, which has the index
{ quote : "text" }:
Assuming the documents below are in the collection, which ones will the following query return? Check all that apply.
db.sayings.find( { $text : { $search : "fact find" } } )
- A. { _id : 2, quote : "Find out if that fact is correct." }
- B. { _id : 1, quote : "That's a fact, Jack." }
- C. { _id : 3, quote : "Nobody will ever catch me." }
Answer: A,B
NEW QUESTION # 37
Consider the following document:
> db.c.find()
{ "_id" : 12, b : [ 3, 5, 7, 2, 1, -4, 3, 12 ] }
Which of the following queries on the "c" collection will return only the first five elements of the array in the "b" field? E.g., Document you want returned by your query:
{ "_id" : 12, "b" : [ 3, 5, 7, 2, 1 ] }
- A. db.c.find( { > , { b : [ 0, 1, 2, 3, 4, 5 ] > )
- B. db.c.find( { b : [ 0 , 5 ] > )
- C. db.c.find( { > , { b : { $substr[ 0 , 5 ] > > )
- D. db.c.find( { > , { b : [ 0 , 5 ] > )
- E. db.c.find( { > , { b : { $slice : [ 0 , 5 ] } } )
Answer: E
NEW QUESTION # 38
MongoDB is
- A. Document-oriented DBMS
- B. Relational DBMS
- C. Object-oriented DBMS
- D. None of the above
Answer: A
NEW QUESTION # 39
To add a new user and enable authentication in MongoDB, which of the following steps need be executed?
- A. All of the above
- B. update users collection and restart mongodb
- C. update users collection and restart mongodb with -auth option
- D. update users collection and run db.enableAuthenticationQ
Answer: C
NEW QUESTION # 40
Which format/standard is used by MongoDB internally to store documents?
- A. BSON
- B. JSON - Extended
- C. B+ Trees
- D. JSON
Answer: D
NEW QUESTION # 41
Which of the following is correct about MongoDB?
- A. MongoDB supports some of the SQL functions
- B. MongoDB supports geospatial indexes
- C. MongoDB supports collection joins
- D. MongoDB uses JSON format to represent documents
Answer: B
NEW QUESTION # 42
Which of the following is true about aggregation framework?
- A. A single aggregation framework operator can be used more than once in a query
- B. Pipeline expressions are stateless except accumulator expressions used with $group operator
- C. Each aggregation operator need to return atleast one of more documents as a result
- D. the aggregate command operates on a multiple collection
Answer: A,B,C
NEW QUESTION # 43
Consider the following example document from the sample collection. All documents in this collection have the same schema.
Which of the following queries will replace this with the document.
- A. db.sample.update( { "_id" : 3 } , { "$set" : { "_id" : 7 , "c" : 4 } } )
- B. db.sample.update( { "_id" : 3 } , { "_id" : 7 , "c" : 4 } , { "justOne" : true } ) // This operation cannot be done with a single query.
- C. db.sample.update( { "_id" : 3 } , { "_id" : 7 , "c" : 4 } )
- D. db.sample.update( { "_id" : 3 } , { "_id" : 7 , "c" : 4 , { "$unset" : [ "a" , "b" ] } } )
Answer: D
NEW QUESTION # 44
What is the output of the following program?
- A. 1s
- B. 100 s
- C. 60 s
- D. 100 ms
Answer: C
NEW QUESTION # 45
What is the first task that a secondary would perform on being prompted by another secondary for an election?
- A. Connect to primary to confirm its availability
- B. Vote for itself and then call for election
- C. Vote for the first secondary so that it would become the next primary
- D. Start the election process for primary
Answer: A
NEW QUESTION # 46
Below is a sample document of "orders" collection
- A. $sort
Answer: A
NEW QUESTION # 47
Given a replica set with five data-bearing members, suppose the primary goes down with operations in its oplog that have been copied from the primary to only one secondary. Assuming no other problems occur, which of the following describes what is most likely to happen?
- A. the primary may roll back the operations once it recovers
- B. the secondary with the most current oplog will be elected primary
- C. missing operations will need to be manually re-performed
- D. reads will be stale until the primary comes back up
- E. the most current secondary will roll back the operations following the election
Answer: B
NEW QUESTION # 48
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: D
NEW QUESTION # 49
Which operations add new documents to a collection?
- A. delete
- B. update
- C. insert
- D. Create
Answer: C,D
NEW QUESTION # 50
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?
- A. db.posts.createIndex({^comments.$.author":-l});
- B. db. posts.createIndex({^comments.author" :1});
- C. db.posts.createIndex({^commerits.author";-!});
Answer: C
NEW QUESTION # 51
......
Get Instant Access to C100DBA Practice Exam Questions: https://pdftorrent.actual4test.com/C100DBA_examcollection.html