Get The Important Preparation Guide With C100DBA Dumps [Q11-Q35]

Share

Get The Important Preparation Guide With C100DBA Dumps

Get Totally Free Updates on C100DBA Dumps PDF Questions


Certification Cost of MongoDB C100DBA Exam

The exam cost of the MongoDB C100DBA Exam is $150 USD

 

NEW QUESTION 11
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({^commerits.author";-!});
  • C. db. posts.createIndex({^comments.author" :1});

Answer: B

 

NEW QUESTION 12
We can insert multiple documents in bulk using which of the following operations:

  • A. initializeUnorderedBulk
  • B. initializeBulk
  • C. initializeUnorderedBulkOp
  • D. initializeBulkOp

Answer: C

 

NEW QUESTION 13
Which of the following node is used during election in a replication cluster?

  • A. hidden
  • B. primary
  • C. arbiter
  • D. secondary

Answer: C

 

NEW QUESTION 14
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. A
  • C. A, B
  • D. B, C

Answer: D

 

NEW QUESTION 15
Which command can be used to rebuild the indexes on a collection in MongoDB?

  • A. db.collection.createIndex({author:l}).reIndex()
  • B. db.collection.createlndex({relndex:l})
  • C. db.collection.reIndex({author:l})
  • D. db.collection.relndexQ

Answer: D

 

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

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

Answer: C

 

NEW QUESTION 17
In a replicated cluster, which of the following node would only be used during an election?

  • A. hidden
  • B. primary
  • C. arbiter
  • D. secondary

Answer: C

 

NEW QUESTION 18
In a collection that contains 100 post documents, what does the following command do? db. posts.
find().skip(5).limit(5)

  • A. Skips the first five documents and returns the sixth document five times
  • B. Skip and limit nullify each other. Hence returning the first five documents
  • C. Limits the first five documents and then return them in reverse order
  • D. Skips the first five documents and returns the next five

Answer: D

 

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

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

Answer: A

 

NEW QUESTION 20
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 21
'mongoimport' command is used for

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

Answer: A

 

NEW QUESTION 22
What is the on-premise solution having functionality equivalent to cloud manager?

  • A. Journaling
  • B. Replica Manager
  • C. Service Manager
  • D. Ops Manager

Answer: D

 

NEW QUESTION 23
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: E

 

NEW QUESTION 24
JSON stands for

  • A. JavaScript Object Notice
  • B. JavaScript Object Naming
  • C. None of the above
  • D. JavaScript Object Notation

Answer: D

 

NEW QUESTION 25
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 26
Which of the following does MongoDB use to provide High Scalability?

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

Answer: D

 

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

  • A. A sharded environment does not support sorting functionality since the documents lie on various mongod instances
  • B. Creating a sharded key automatically creates an index on the collection using that key
  • 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 28
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. 03
  • B. 04
  • C. 0
  • D. 06

Answer: B

 

NEW QUESTION 29
Which of the following needs to be performed prior to initiate backup on a sharded cluster?

  • A. sh.stopServer( )
  • B. sh.stopBalancer( )
  • C. db.stopServer( )
  • D. db.stopBalancer( )

Answer: B

 

NEW QUESTION 30
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. the aggregate command operates on a multiple collection
  • C. Pipeline expressions are stateless except accumulator expressions used with $group operator
  • D. Each aggregation operator need to return atleast one of more documents as a result

Answer: A,C,D

 

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

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

Answer: A

 

NEW QUESTION 32
Which of the following is a valid insert statement in mongodb? Select all valid.

  • A. db.test.insert({x:2,y:"apple"})
  • B. db.test.insert{"x":2, "y":"apple"})
  • C. db.test.insert({x:2},{y:"apple"})
  • D. db.test.push({x:2,y:"apple"})

Answer: A,B

 

NEW QUESTION 33
Which of the following commands finds all the documents in the posts collection with post timestamp field as null?

  • A. db.posts.find( { post_timestamp: { $type: null } } )
  • B. db.posts.find( { post_timestamp: { $fieldtype: 10 } } )
  • C. db.posts.find( { post_timestamp : { $type; 10 > > )
  • D. db.posts.find( { post_timestamp: { $fieldtype: null } } )

Answer: C

 

NEW QUESTION 34
Which of the following operators is used to updated a document partially?

  • A. $project
  • B. $set
  • C. $modify
  • D. $update

Answer: B

 

NEW QUESTION 35
......

Prepare With Top Rated High-quality C100DBA Dumps For Success in Exam: https://exams4sure.actualcollection.com/C100DBA-exam-questions.html