[Nov-2021] C100DBA Dumps are Available for Instant Access using ExamsLabs [Q72-Q96]

Share

[Nov-2021] C100DBA Dumps are Available for Instant Access using  ExamsLabs 

C100DBA Dumps 2021 - New MongoDB C100DBA Exam Questions

NEW QUESTION 72
What is the output of the following program?

  • A. 1s
  • B. 60 s
  • C. 100 ms
  • D. 100 s

Answer: B

 

NEW QUESTION 73
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. $aggregate
  • B. $group
  • C. $match
  • D. $project

Answer: D

 

NEW QUESTION 74
Update If Correct is an approach for which of the following concepts in MongoDB:

  • A. Performance Management
  • B. Transaction Management
  • C. Atomicity
  • D. Concurrency Control

Answer: D

 

NEW QUESTION 75
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. $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 needs the fields to be already present while $push will work even if the field is not present
  • D. There is no major difference between them. $addToSet is a deprecated version of $push.

Answer: B

 

NEW QUESTION 76
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. 20, it
  • B. 200, more
  • C. 50, it
  • D. No limit, none

Answer: A

 

NEW QUESTION 77
Which is the correct order (lowest to highest) in which MongoDB compares the BSON types?

  • A. Null, Number, Object and String
  • B. Null, Number, String and Object
  • C. Number, Null, String and Object
  • D. String, Null, Number and Object

Answer: B

 

NEW QUESTION 78
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 run db.enableAuthenticationQ
  • C. update users collection and restart mongodb with -auth option
  • D. update users collection and restart mongodb

Answer: C

 

NEW QUESTION 79
Which of the following aggregate commands in MongoDB uses a pipeline approach with the goals of improving the aggregation performance?

  • A. All of the above
  • B. mapReduce
  • C. group
  • D. aggregate

Answer: D

 

NEW QUESTION 80
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. missing operations will need to be manually re-performed
  • B. reads will be stale until the primary comes back up
  • C. the most current secondary will roll back the operations following the election
  • D. the secondary with the most current oplog will be elected primary
  • E. the primary may roll back the operations once it recovers

Answer: D

 

NEW QUESTION 81
You have a replicated cluster with 1 primary, 3 secondary, 1 arbiter. One of the secondary is hidden. What is the replication factor of this replicated cluster?

  • A. 0
  • B. 06
  • C. 03
  • D. 04

Answer: D

 

NEW QUESTION 82
You are comparing values of different BSON types in mongodb. You want to compare from lowest to highest.
Which comparison order is used?

  • A. MinKey, Null, Numbers,Symbol, String,Object,Array,BinData
  • B. Objec^Array^inData,Symbol, String,MinKey, Null, Numbers
  • C. MinKey, Null, Numbers,Object,Array,BinData,Symbol, String
  • D. Object/Array^inData/Symbol,MinKey, Null, Numbers,String

Answer: A

 

NEW QUESTION 83
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: { $pop: 1 } } }] )
  • 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: n$city" },pop: { $sum: "$pop" } } }] )
  • D. db.population.aggregate( [{ $group: { _id: { state: "$state", city; "$city" },pop: { $sum: 1 > > >] )

Answer: C

 

NEW QUESTION 84
Which format/standard is used by MongoDB internally to store documents?

  • A. JSON - Extended
  • B. B+ Trees
  • C. JSON
  • D. BSON

Answer: C

 

NEW QUESTION 85
Aggregation Pipelines have a limit of:

  • A. No limit on document and 100 MB RAM
  • B. 2 MB document and no limit on RAM
  • C. 2 MB document and 100 MB RAM
  • D. 16 MB document and 100 MB RAM

Answer: D

 

NEW QUESTION 86
What is the maximum size of a MongoDB document

  • A. 12 MB
  • B. There is no maximum size. It depends on the RAM.
  • C. 16 MB
  • D. 2 MB

Answer: C

 

NEW QUESTION 87
Which of the following about Capped Collections is correct?

  • A. Only "Fixed Size" and "High-throughput operations that insert and retrieve documents based on insertion order"
  • B. High-throughput operations that insert and retrieve documents based on insertion order
  • C. Fixed Size
  • D. If the allocated space for a capped collection exceeds, it stops inserting new documents

Answer: A

 

NEW QUESTION 88
Which operations add new documents to a collection?

  • A. delete
  • B. Create
  • C. insert
  • D. update

Answer: B,C

 

NEW QUESTION 89
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. Sharding is enabled at the database level
  • D. We cannot change a shard key directly/automatically once it is set up

Answer: D

 

NEW QUESTION 90
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 but retrieves only the size field from the array
  • D. Returns the complete document since MongoDB does not support partial array retrieval

Answer: B

 

NEW QUESTION 91
What does the output x of the following MongoDB aggregation query result into; db.posts.aggregate( [ {
$group: { _id; "$author", x: { $sum: $likes } } } ] )

  • A. Number of posts by an author
  • B. Average of likes on all the posts of an author, grouped by author
  • C. Sum of likes on all the posts by all the authors
  • D. Sum of likes on all the posts by an author, grouped by author

Answer: D

 

NEW QUESTION 92
If the value of totalKeysExamined is 30000 and the value of totalDocsExamined is 0, which of the following option is correct?

  • A. None of the above
  • B. The query returned 0 documents
  • C. The query used an index to fetch the results
  • D. The query returned 30000 documents after scanning the documents

Answer: C

 

NEW QUESTION 93
What tool would you use if you want to save a gif file in mongo?

Answer:

Explanation:
mongofile

 

NEW QUESTION 94
What is the first task that a secondary would perform on being prompted by another secondary for an election?

  • A. Start the election process for primary
  • B. Connect to primary to confirm its availability
  • C. Vote for itself and then call for election
  • D. Vote for the first secondary so that it would become the next primary

Answer: B

 

NEW QUESTION 95
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 96
......

MongoDB C100DBA Exam Practice Test Questions: https://www.examslabs.com/MongoDB/MongoDB-Certified-DBA-Associate/best-C100DBA-exam-dumps.html

Free C100DBA Braindumps Download Updated: https://drive.google.com/open?id=1q6k5BhVM0Z_VEpHNcTAUwVZoqB5j7n68