[Jul-2024] 100% Guarantee Download C100DBA Exam Dumps PDF Q&A
Kickstart your Career with Real Updated Questions
To prepare for the MongoDB C100DBA certification exam, candidates should have experience working with MongoDB and a solid understanding of database administration concepts. MongoDB offers a range of resources, including online training courses, documentation, and practice exams, to help candidates prepare for the exam. With the right preparation and a strong understanding of MongoDB, candidates can pass the MongoDB C100DBA certification exam and gain recognition for their expertise in database administration.
NEW QUESTION # 43
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 # 44
Consider that our posts collection contains an array field called tags that contains tags that the user enters. {
Which of the following commands will find all the posts that have been tagged as tutorial.
- A. db.posts.find( { tags : ["tutorial"] } );
- B. db.posts.findInArray( { tags : "tutorial" > );
- C. db.posts.find( { $array : {tags: "tutorial") > );
- D. db.posts.find( { tags : "tutorial" } );
Answer: D
NEW QUESTION # 45
Which of the following does MongoDB use to provide High Availability and fault tolerance?
- A. Write Concern
- B. Replication
- C. Indexing
- D. Sharding
Answer: B
NEW QUESTION # 46
In which of the following scenarios is sharding not the correct option. Select all that apply.
- A. The working set in the collection is expected to grow very large in size
- B. The write operations on the collection are very high
- C. The collection is a read intensive collection with less working set
- D. The write operations on the collection are low
Answer: C,D
NEW QUESTION # 47
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 > , { "_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 } , { "$set" : { "_id" : 7 , "c" : 4 > > )
- D. db.sample.update( { "_id" : 3 > , { "_id" : 7 , "c" : 4 , { "$unset" : [ "a" , "b" ] } } )
Answer: D
NEW QUESTION # 48
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({^commerits.author";-!});
- B. db.posts.createIndex({^comments.$.author":-l});
- C. db. posts.createIndex({^comments.author" :1});
Answer: A
NEW QUESTION # 49
Which of the following is incorrect statement about find and findOne operations in MongoDB?
- A. find.limit(l) is not the same query as findOne()
- B. findQ and findOneQ returns cursors to the collection documents
- C. findQ returns all the documents in a collection while findOne() retrieves only the first one.
- D. findOneQ returns the actual first document retrieved from a collection
Answer: B
NEW QUESTION # 50
Which format/standard is used by MongoDB internally to store documents?
- A. JSON - Extended
- B. B+ Trees
- C. BSON
- D. JSON
Answer: D
NEW QUESTION # 51
Which operations add new documents to a collection?
- A. update
- B. insert
- C. delete
- D. Create
Answer: B,D
NEW QUESTION # 52
Which of the following is true about sharding?
- A. Creating a sharded key automatically creates an index on the collection using that key
- B. A sharded environment does not support sorting functionality since the documents lie on various mongod instances
- C. We cannot change a shard key directly/automatically once it is set up
- D. Sharding is enabled at the database level
Answer: C
NEW QUESTION # 53
Which of the following operators is used to updated a document partially?
- A. $update
- B. $project
- C. $set
- D. $modify
Answer: C
NEW QUESTION # 54
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: C
NEW QUESTION # 55
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,Object,Array,BinData,Symbol, String
- C. Object/Array^inData/Symbol,MinKey, Null, Numbers,String
- D. MinKey, Null, Numbers,Symbol, String,Object,Array,BinData
Answer: D
NEW QUESTION # 56
In order to ensure that you can maintain high availability in the face of server failure, you should implement which of the following?
- A. Properly defined user roles
- B. Replication
- C. Put indexes on all of your documents
- D. Sharding
- E. The proper storage engine
Answer: B
NEW QUESTION # 57
What is the replication factor for a replicated cluster with 1 primary, 3 secondaries with one of them hidden. The set also has an arbiter?
- A. None of the above
- B. 0
- C. 1
- D. 2
Answer: C
NEW QUESTION # 58
Which of the following about Capped Collections is correct?
- A. Fixed Size
- B. High-throughput operations that insert and retrieve documents based on insertion order
- C. Only "Fixed Size" and "High-throughput operations that insert and retrieve documents based on insertion order"
- D. If the allocated space for a capped collection exceeds, it stops inserting new documents
Answer: C
NEW QUESTION # 59
In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)
- A. Limits the first five documents and then return them in reverse order
- B. Skips the first five documents and returns the next five
- C. Skip and limit nullify each other. Hence returning the first five documents.
- D. Skips the first five documents and returns the sixth document five times
Answer: B
NEW QUESTION # 60
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 document but with only one element in the variations array (corresponding to size L)
- B. 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)
- 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: A
NEW QUESTION # 61
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 , 5 ] > )
- B. db.c.find( { > , { b : [ 0, 1, 2, 3, 4, 5 ] > )
- C. db.c.find( { b : [ 0 , 5 ] > )
- D. db.c.find( { > , { b : { $substr[ 0 , 5 ] > > )
- E. db.c.find( { > , { b : { $slice : [ 0 , 5 ] } } )
Answer: E
NEW QUESTION # 62
Which of the following commands can cause the database to be locked?
- A. Map-reduce
- B. Inserting data
- C. All of the above
- D. Issuing a query
Answer: C
NEW QUESTION # 63
JSON stands for
- A. JavaScript Object Notice
- B. JavaScript Object Naming
- C. None of the above
- D. JavaScript Object Notation
Answer: D
NEW QUESTION # 64
Which of the following aggregate commands in MongoDB uses a pipeline approach with the goals of improving the aggregation performance?
- A. mapReduce
- B. group
- C. All of the above
- D. aggregate
Answer: D
NEW QUESTION # 65
Dada una coleccion, cuales devuelve con la siguiente query
db.coleccion.find({nombre:"ruben",apellido:"gomez"},{nombre:l,apellido:l,aficion:l});
- A. { "_id" : Objectld("580a42acdfblb5al7427d301"), "nombre" : "Luis", "apellido" : "gomez", "aficion" : u
"flipar" } - B. { "-id" : Objectld("580a42b5dfblb5al7427d302"), "nombre" : "ruben", "apellido" : "gomez", "aficion" :
v u "flipar" } - C. { "_id" : Objectld("580a42acdfblb5al7427d301"), "nombre" : "ruben", "apellido" : "gomez" >
- D. { "_id" : Objectld("580a42acdfblb5al7427d301"), "nombre" : "ruben", "apellido" : "Pablo" , "aficion" : u
"flipar"}
Answer: B,C
NEW QUESTION # 66
You are in a sharded cluster. What will you do prior to initiating backup in sharded cluster?
- A. db.stopBalancer()
- B. sh.stopserverQ
- C. db.stopserver()
- D. sh.stopBalancer()
Answer: D
NEW QUESTION # 67
The difference between $push and $addToSet is:
- A. $addToSet needs the fields to be already present while $push will work even if the field is not present
- B. $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
- C. $addToSet adds the item to the field only if the new item is of the same datatype
- D. There is no major difference between them. $addToSet is a deprecated version of $push.
Answer: B
NEW QUESTION # 68
......
Earn Quick And Easy Success With C100DBA Dumps: https://lead2pass.prep4sureexam.com/C100DBA-dumps-torrent.html