MongoDB C100DBA Practice Test Pdf Exam Material [Q22-Q44]

Share

MongoDB C100DBA Practice Test Pdf Exam Material

C100DBA Answers C100DBA Free Demo Are Based On The Real Exam

NEW QUESTION 22
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 23
To add a new user and enable authentication in MongoDB, which of the following steps need be executed?

  • A. update users collection and run db.enableAuthenticationQ
  • B. All of the above
  • C. update users collection and restart mongodb
  • D. update users collection and restart mongodb with -auth option

Answer: D

 

NEW QUESTION 24
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 25
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 document but with only one element in the variations array (corresponding to size L)
  • B. 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)
  • C. Returns the complete document since MongoDB does not support partial array retrieval
  • D. Returns the complete document but retrieves only the size field from the array

Answer: A

 

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

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

Answer: D

 

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

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

Answer: B,C

 

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

Answer: B

 

NEW QUESTION 29
You are in a sharded cluster. What will you do prior to initiating backup in sharded cluster?

  • A. sh.stopBalancer()
  • B. sh.stopserverQ
  • C. db.stopBalancer()
  • D. db.stopserver()

Answer: A

 

NEW QUESTION 30
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 31
Which operations add new documents to a collection?

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

Answer: C,D

 

NEW QUESTION 32
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 33
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: C

 

NEW QUESTION 34
The________operator can be used to identify an element in the array to be updated without explicitly specifying the position of the element.

  • A. $slice
  • B. Updating an array field without knowing its index is not possible.
  • C. $ elemMatch
  • D. $

Answer: D

 

NEW QUESTION 35
Which of the following statements are true about the $match pipeline operator? Check all that apply.

  • A. It has a sintax similar to findQ commands.
  • B. It can be used as many time as needed.
  • C. You should use it early as possible in the pipeline

Answer: A,B,C

 

NEW QUESTION 36
MongoDB is a schema-less design.

  • A. False
  • B. True

Answer: B

 

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

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

Answer: D

 

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

Answer:

Explanation:
mongofile

 

NEW QUESTION 39
Which features of relational database management systems were deliberately omitted in MongoDB and help us to obtain horizontal scalability? Check all that apply.

  • A. Multi-statement transactions
  • B. Authentication
  • C. Joins

Answer: A,C

 

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

Answer: B

 

NEW QUESTION 41
Which of the tags in a replica set configuration specify the operations to be read from the node with the least network latency?

  • A. nearest
  • B. netLatency
  • C. secondaryPreferred
  • D. primaryPreferred

Answer: A

 

NEW QUESTION 42
You perform the following query on the sayings collection, which has the index
{ quote : "text" }:
Assuming the documents below are in the collection, which ones will the following query return? Check all that apply.
db.sayings.find( { $text : { $search : "fact find" } } )

  • A. { _id : 1, quote : "That's a fact, Jack." }
  • B. { _id : 3, quote : "Nobody will ever catch me." }
  • C. { _id : 2, quote : "Find out if that fact is correct." }

Answer: A,C

 

NEW QUESTION 43
What does the following $slice query return using the following command? db.posts.find( {}, { comments: {
$slice: [ -10, 5 ] } } )

  • A. Returns 10 comments, beginning with the first
  • B. Returns 5 comments, beginning with the first 10 items
  • C. Returns 10 comments, beginning with the last
  • D. Returns 5 comments, beginning with the last 10 items

Answer: D

 

NEW QUESTION 44
......

C100DBA [Jan-2022] Newly Released] Exam Questions For You To Pass: https://www.suretorrent.com/C100DBA-exam-guide-torrent.html

MongoDB C100DBA Exam: Basic Questions With Answers: https://drive.google.com/open?id=1icHKW3qZ2xw8BHYBp57wGStHWvIKzd7Z