C100DBA Practice Test Questions Updated 123 Questions [Q45-Q68]

Share

C100DBA Practice Test Questions Updated 123 Questions

MongoDB C100DBA Dumps - Secret To Pass in First Attempt

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

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

Answer: D

 

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

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

Answer: D

 

NEW QUESTION 47
Which command is used to determine storage capacity of specific database?

  • A. mongotop
  • B. mongostat
  • C. dbstats
  • D. constats

Answer: C

 

NEW QUESTION 48
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 49
Consider the following documents:

You perform the following query;

How many documents will be updated by the query?

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

Answer: D

 

NEW QUESTION 50
What tool do you use to see if you have a problem in the consumption of disk I / 0?

Answer:

Explanation:
Mongoperf

 

NEW QUESTION 51
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( { $array : {tags: "tutorial") > );
  • B. db.posts.find( { tags : ["tutorial"] } );
  • C. db.posts.find( { tags : "tutorial" } );
  • D. db.posts.findInArray( { tags : "tutorial" > );

Answer: C

 

NEW QUESTION 52
You perform the following operation in the shell: db.foo.insert( { } ); What gets inserted?

  • A. No document will be inserted; an error will be raised
  • B. A document with an _id assigned to be an Objectld
  • C. A document that matches the collection's existing schema, but with null fields
  • D. A document will be inserted with the same _id as the last document inserted
  • E. An empty document

Answer: B

 

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

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

Answer: C

 

NEW QUESTION 54
Consider that the posts collection contains an array called ratings which contains ratings given to the post by various users in the following format:

Which of the following query will return all the documents where the ratings array contains elements that in some combination satisfy the query conditions?

  • A. db.inventory.find( { ratings: { $elemMatch: { $gt: 3, $lt: 6 }
  • B. db.inventory.find( { ratings: { $elemMatch: { $gte: 3, $lte: 6 } } } )
  • C. db.inventory.find( { ratings: { ratings.$: { $gt: 5, $lt: 9 } } } )
  • D. db.inventory.find( { ratings: { ratings: { $gt: 5, $lt: 9 } } } )

Answer: D

 

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

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

Answer: B

 

NEW QUESTION 56
Which mongodb tools allow us to work with our data in a human readable format?

  • A. mongoexport
  • B. mongostat
  • C. mongodump
  • D. mongoimport

Answer: A,D

 

NEW QUESTION 57
Addding the index {a:l} can potentially decrease the speed of which of the following operations? Check all that apply.

  • A. db.collection.insert( { a:341})
  • B. db.collection.find( {a : 232} )
  • C. db.collection.update({b:456>, {$inc: {a:l> })

Answer: A,C

 

NEW QUESTION 58
Which mongodb tool is used to report details on number of database operations in MongoDB?

  • A. mongotop
  • B. mongorestore
  • C. mongostat
  • D. mongodump

Answer: C

 

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

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

Answer: D

 

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

Answer:

Explanation:
$project

 

NEW QUESTION 61
Consider the following posts document:

Which of the following queries will return the documents but with only the first two tags in the tags array?

  • A. db.posts.find({author:"Tom">,{tags:{$slice:2})
  • B. Both "db.posts.find({author:"Tom"},{tags:{$slice:2}})" and
    "db.posts.find({author:"Tom"}).limit($slice: {tags:2})" are valid. $slice works both with projection and limit.
  • C. db.posts.find({author:"Tom"}.limit({tags:2})
  • D. db.posts.find({author:"Tom"}.limit($slice:{tags:2>)

Answer: A

 

NEW QUESTION 62
Which of the following does MongoDB use to provide High Scalability?

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

Answer: D

 

NEW QUESTION 63
A collection and a document in MongoDB is equivalent to which of the SQL concepts respectively?

  • A. Table and Row
  • B. Database and Table
  • C. Table and Column
  • D. Column and Row

Answer: A

 

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

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

Answer: D

 

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

Answer: B,D

 

NEW QUESTION 66
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 67
Which is the default mode in which the explain() command runs?

  • A. executionStats
  • B. customExecutionStats
  • C. queryPlanner
  • D. allPlansExecution

Answer: C

 

NEW QUESTION 68
......

MongoDB C100DBA Exam Dumps [2021] Practice Valid Exam Dumps Question: https://www.exam-killer.com/C100DBA-valid-questions.html

C100DBA Dumps - Grab Out For [NEW-2021] MongoDB Exam: https://drive.google.com/open?id=1-LXLYhwrcOYzDG0zpU4yOPsXDnaRwv76