[2021] C100DBA PDF Questions - Perfect Prospect To Go With Exam4Docs Practice Exam [Q22-Q37]

Share

[2021] C100DBA PDF Questions - Perfect Prospect To Go With Exam4Docs Practice Exam

MongoDB C100DBA Pdf Questions - Outstanding Practice To your Exam

NEW QUESTION 22
In mongodb how do you update a document partially?

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

Answer: A

 

NEW QUESTION 23
What is the maximum size of a MongoDB document

  • A. 2 MB
  • B. 16 MB
  • C. There is no maximum size. It depends on the RAM.
  • D. 12 MB

Answer: B

 

NEW QUESTION 24
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. find.limit(l) is not the same query as findOne()
  • D. findOneQ returns the actual first document retrieved from a collection

Answer: B

 

NEW QUESTION 25
Which of the following are valid json documents? Select all that apply.

  • A. {"city":"New York", "population", 7999034, boros:{"queens", "manhattan", "staten island", "the bronx", u "brooklyn"}}
  • B. {"a":l, "b":{"b":l, "c":"foo", "d":"bar", "e":[l,2,4]}}
  • C. { }
  • D. {"name":"Fred Flintstone";"occupation":"Miner";"wife":"Wilma"}

Answer: B,C

 

NEW QUESTION 26
Which of the following aggregation commands in MongoDB does not support sharded collections?

  • A. mapReduce
  • B. group
  • C. All of the above
  • D. aggregate

Answer: B

 

NEW QUESTION 27
Which are the ONLY ways to project portions of an array?

  • A. $slice
  • B. All of the above
  • C. $
  • D. $ elemMatch

Answer: B

 

NEW QUESTION 28
Which of the following command is used to get all the indexes on a collection?

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

Answer: A

 

NEW QUESTION 29
Update If Correct is an approach for which of the following concepts in MongoDB:

  • A. Transaction Management
  • B. Performance Management
  • C. Concurrency Control
  • D. Atomicity

Answer: C

 

NEW QUESTION 30
Which of the following is true of the mechanics of replication in MongoDB? Check all that apply.

  • A. Members of a replica set may replicate data from any other data-bearing member of the set by default
  • B. Operations on the primary are recorded in a capped collection called the oplog
  • C. Clients read from the nearest member of a replica ser by default

Answer: B

 

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

Answer: A

 

NEW QUESTION 32
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
  • C. 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)
  • D. Returns the complete document since MongoDB does not support partial array retrieval

Answer: A

 

NEW QUESTION 33
Which of the following commands will return all the posts with number of likes greater than 100 and less than
200, both inclusive?

  • A. db.posts.find({ likes : { $gte : 100 , $lte : 200 } } );
  • B. db.posts.find({ likes : { $gte : 100, $lt : 200 } } );
  • C. db.posts.find({ likes : { $gt : 100, $lt : 200 > > );
  • D. db.posts.find({ likes : { $gt : 100 , $lte : 200 } } );

Answer: A

 

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

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

Answer: D

 

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

Answer:

Explanation:
$project

 

NEW QUESTION 36
Which of the following is supported by MongoDB?

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

Answer: D

 

NEW QUESTION 37
......

Online Questions - Outstanding Practice To your C100DBA Exam: https://www.exam4docs.com/C100DBA-study-questions.html

Practice To C100DBA - Exam4Docs Remarkable Practice On your MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4) Exam: https://drive.google.com/open?id=18P4gUeqb8teevkR1If5buCuGcnU2w6wX