[Oct 29, 2021] Pass MongoDB C100DBA Exam Info and Free Practice Test [Q42-Q57]

Share

[Oct 29, 2021] Pass MongoDB C100DBA Exam Info and Free Practice Test 

C100DBA Exam Dumps PDF Updated Dump from  Prep4sures Guaranteed Success

NEW QUESTION 42
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 43
Which of the following is supported by MongoDB?

  • A. Relationships between Collections (Primary Key Foreign Key)
  • B. Journaling
  • C. ACID Transactions
  • D. Transaction Management

Answer: B

 

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

Answer: A

 

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

Answer: D

 

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

Answer: A

 

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

Answer: B,C

 

NEW QUESTION 50
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: D

 

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

Answer: D

 

NEW QUESTION 52
What does the output x of the following MongoDB aggregation query result into; db.posts.aggregate( [ {
$group: { _id; "$author", x: { $sum: $likes } } } ] )

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

Answer: D

 

NEW QUESTION 53
You are comparing values of different BSON types in mongodb. You want to compare from lowest to highest.
Which comparison order is used?

  • A. MinKey, Null, Numbers,Symbol, String,Object,Array,BinData
  • B. Objec^Array^inData,Symbol, String,MinKey, Null, Numbers
  • C. MinKey, Null, Numbers,Object,Array,BinData,Symbol, String
  • D. Object/Array^inData/Symbol,MinKey, Null, Numbers,String

Answer: A

 

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

Answer: D

 

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

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

Answer: C

 

NEW QUESTION 56
In a replica set, a_________number of members ensures that the replica set is always able to select a primary.

  • A. Even
  • B. Depends on the application architecture
  • C. Odd
  • D. 0

Answer: C

 

NEW QUESTION 57
......

Pass Your MongoDB Exam with C100DBA Exam Dumps: https://www.prep4sures.top/C100DBA-exam-dumps-torrent.html

C100DBA Exam Dumps - MongoDB Practice Test Questions: https://drive.google.com/open?id=1KXIoCnkMWiQ2ueJiZyARBF4YRGkWNiil