Updated Jan 21, 2023 C100DBA Exam Dumps - PDF Questions and Testing Engine [Q42-Q66]

Share

Updated Jan 21, 2023 C100DBA  Exam Dumps - PDF Questions and Testing Engine

New (2023) MongoDB C100DBA  Exam Dumps

NEW QUESTION 42
Using an arbiter allows one to easily ensure an odd number of voters in replica sets. Why is this important?

  • A. To help in disaster recovery
  • B. To enable certain read preference settings
  • C. To add greather redundancy
  • D. To protect agains network partitions
  • E. For more efficient backup operations

Answer: D

 

NEW QUESTION 43
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. Members of a replica set may replicate data from any other data-bearing member of the set by default
  • C. Clients read from the nearest member of a replica ser by default

Answer: A

 

NEW QUESTION 44
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 45
What does the output x of the following MongoDB aggregation query result into; db.posts.aggregate( [ {
$group: { _id; "$author", x: { $sum: $likes } } } ] )

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

Answer: C

 

NEW QUESTION 46
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. secondaryPreferred
  • D. primary
  • E. primaryPreferred

Answer: E

 

NEW QUESTION 47
Which option can be used with update command so that a new document gets created if no matching document is found based on the query condition?

  • A. Specify {upsert : true } as the third parameter of update command
  • B. upsert command instead of update command
  • C. This has to be handled in application code (Node.js, PHP, JAVA, C#, etc.) and cannot be handled in mongo shell query
  • D. {update: true, insert: true} as the third parameter of update command

Answer: A

 

NEW QUESTION 48
'$set' sets the value of

  • A. Name/value pair
  • B. Code block
  • C. None of the above
  • D. Key

Answer: D

 

NEW QUESTION 49
In order to ensure that you can maintain high availability in the face of server failure, you should implement which of the following?

  • A. Replication
  • B. Properly defined user roles
  • C. Sharding
  • D. The proper storage engine
  • E. Put indexes on all of your documents

Answer: A

 

NEW QUESTION 50
Which of the following is true about sharding?

  • A. We cannot change a shard key directly/automatically once it is set up
  • B. A sharded environment does not support sorting functionality since the documents lie on various mongod instances
  • C. Creating a sharded key automatically creates an index on the collection using that key
  • D. Sharding is enabled at the database level

Answer: A

 

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

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

Answer: B

 

NEW QUESTION 52
Which of the following commands can cause the database to be locked?

  • A. Inserting data
  • B. All of the above
  • C. Map-reduce
  • D. Issuing a query

Answer: B

 

NEW QUESTION 53
In a sharded replicas set environment with multiple mongos servers, which of the following would decide the mongos failover?

  • A. mongod
  • B. mongo shell
  • C. mongos
  • D. individual language drivers

Answer: D

 

NEW QUESTION 54
What is the output of following two commands in MongoDB: db. posts. insert({n_id":l}) db.posts.insert({"_id":l})

  • A. It will insert two documents and throw a warning to the user
  • B. Two documents will be inserted with _id as 1
  • C. This will throw a duplicate key error
  • D. MongoDB will automatically increment the _id of the second document as 2

Answer: C

 

NEW QUESTION 55
'mongoimport' command is used for

  • A. Multiple command insertion
  • B. Multiple command import
  • C. Batch data insertion
  • D. None of the above

Answer: C

 

NEW QUESTION 56
In a sharded replica set environment, the w Option provides ability for write concern and j Option provides ability for the data to be written on disk journal. Consider that we have a seven member replica set and we want to assure that the writes are committed to journal. What should be the value of j?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

Answer: A

 

NEW QUESTION 57
Below is a sample document of "orders" collection

Answer:

Explanation:
$project

 

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

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

Answer: B

 

NEW QUESTION 59
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 , { "$unset" : [ "a" , "b" ] } } )
  • B. db.sample.update( { "_id" : 3 > , { "_id" : 7 , "c" : 4 > )
  • C. db.sample.update( { "_id" : 3 > , { "_id" : 7 , "c" : 4 > , { "justOne" : true > ) / This operation cannot be done with a single query.
  • D. db.sample.update( { "_id" : 3 } , { "$set" : { "_id" : 7 , "c" : 4 > > )

Answer: A

 

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

Answer: A

 

NEW QUESTION 61
In what format does mongodump creates backup files?

  • A. XML
  • B. BSON
  • C. SOAP
  • D. JSON

Answer: B

 

NEW QUESTION 62
What is the use of mongodump and mongorestore tools?

  • A. performance tune mongodb deployment
  • B. replicate mongodb deployments
  • C. backup mongodb deployment
  • D. audit mongodb deployment

Answer: C

 

NEW QUESTION 63
If you have created a compound index on (A,B, C) which of the following access pattern will not be able to utilize the index?

  • A. A, B, C
  • B. B, C
  • C. A
  • D. A, B

Answer: B

 

NEW QUESTION 64
Which option should be used to update all the documents with the specified condition in the MongoDB query?

  • A. specify {all: true} as the third parameter of update command
  • B. specify {updateAII: true} as the third parameter of update command
  • C. updateAII instead of update
  • D. specify {multi : true} as the third parameter of update command

Answer: D

 

NEW QUESTION 65
Which of the following aggregation commands in MongoDB does not support sharded collections?

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

Answer: A

 

NEW QUESTION 66
......

Updated Verified Pass C100DBA Exam - Real Questions and Answers: https://www.examcollectionpass.com/MongoDB/C100DBA-practice-exam-dumps.html

Best Way To Study For MongoDB C100DBA Exam Brilliant C100DBA Exam Questions PDF: https://drive.google.com/open?id=17rH4iiGrOWvHgN9cskGU6ANlc6PbFz-m