Easy To Download MongoDB C100DBA Exam Dumps Updated 123 Questions [Q21-Q38]

Share

Easy To Download MongoDB C100DBA Exam Dumps Updated 123 Questions

New Updated C100DBA Exam Questions 2021

NEW QUESTION 21
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 > , { "_id" : 7 , "c" : 4 , { "$unset" : [ "a" , "b" ] } } )
  • D. db.sample.update( { "_id" : 3 } , { "$set" : { "_id" : 7 , "c" : 4 > > )

Answer: C

 

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

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

Answer: A

 

NEW QUESTION 23
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 24
Which of the following command is used to get all the indexes on a collection?

  • A. db.collection.findlndexes()
  • B. db.collection.getlndexesQ
  • C. db.showIndexes()
  • D. db.collection.showIndexes()

Answer: B

 

NEW QUESTION 25
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: { city: "$city" },pop: { $sum: "$pop" } } }] )Multi Document Transaction is not supported by MongoDB
  • B. db.population.aggregate( [{ $group: { _id: { state: Estate", city: n$city" },pop: { $sum: "$pop" } } }] )
  • C. db.population.aggregate( [{ $group: { _id: { state: "$state", city; "$city" },pop: { $sum: 1 > > >] )
  • D. db.population.aggregate( [{ $group: { _id: { state: Estate", city: "$city" },pop: { $pop: 1 } } }] )

Answer: B

 

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

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

Answer: D

 

NEW QUESTION 27
Mongodb does provide high availability via which option?

  • A. Journaling
  • B. Sharding
  • C. Replication
  • D. Indexing

Answer: C

 

NEW QUESTION 28
Which of the following command inside aggregate command is used in MongoDB aggregation to filter the documents to pass only the documents that match the specified condition(s) to the next pipeline stage.

  • A. $sum
  • B. $aggregate
  • C. $match
  • D. $group

Answer: C

 

NEW QUESTION 29
What does the following aggregate query perform?

  • A. Fetches the posts with likes between 100 and 200, sets the _id of the first document as null and then increments it 1 every time
  • B. Groups the posts by number of likes (101, 102, 103.) by adding 1 every time
  • C. Calculates the number of posts with likes between 100 and 200
  • D. Fetches the posts with likes between 100 and 200 and sets their _id as null

Answer: C

 

NEW QUESTION 30
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( { c: 1, d : 1 } )
  • B. db.test.find( { a: 5, b: 3 } ).sort( {c: 1 } )
  • C. db.test.find( { a: 5, b: 3 } ).sort( { a: 1} )
  • D. db.test.find( { a: 5, b: 3 } ).sort( { a: 1, b: 1, c: 1 > )

Answer: A,B

 

NEW QUESTION 31
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("580a42b5dfblb5al7427d302"), "nombre" : "ruben", "apellido" : "gomez", "aficion" :
    v u "flipar" }
  • B. { "_id" : Objectld("580a42acdfblb5al7427d301"), "nombre" : "ruben", "apellido" : "Pablo" , "aficion" : u
    "flipar"}
  • C. { "_id" : Objectld("580a42acdfblb5al7427d301"), "nombre" : "Luis", "apellido" : "gomez", "aficion" : u
    "flipar" }
  • D. { "_id" : Objectld("580a42acdfblb5al7427d301"), "nombre" : "ruben", "apellido" : "gomez" >

Answer: A,D

 

NEW QUESTION 32
Which of the following operator can be used to limit the number of documents in an array field of a document after an update is performed?

  • A. None of the above
  • B. $arrayLimit
  • C. $removeFromSet
  • D. $push along with $each, $sort and $slice

Answer: D

 

NEW QUESTION 33
Which of the following is incorrect statement about find and findOne operations in MongoDB?

  • A. findQ returns all the documents in a collection while findOne() retrieves only the first one.
  • B. findQ and findOneQ returns cursors to the collection documents
  • C. findOneQ returns the actual first document retrieved from a collection
  • D. find.limit(l) is not the same query as findOne()

Answer: B

 

NEW QUESTION 34
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. 04
  • C. 06
  • D. 03

Answer: B

 

NEW QUESTION 35
What is the defau size of a GridFS chunk?

  • A. 16 MB
  • B. 255 K
  • C. 1 MB
  • D. 2 MB

Answer: B

 

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

Answer: A

 

NEW QUESTION 37
Which of the following does MongoDB use to provide High Availability and fault tolerance?

  • A. Sharding
  • B. Replication
  • C. Indexing
  • D. Write Concern

Answer: B

 

NEW QUESTION 38
......

Updated Free MongoDB C100DBA Test Engine Questions with 123 Q&As: https://www.test4engine.com/C100DBA_exam-latest-braindumps.html

The Best MongoDB Certified DBA Associate C100DBA Professional Exam Questions: https://drive.google.com/open?id=1gIPZ8FGswr31_OIo8Hkg4hCz7q-YgNgT