Share Latest Sep-2024 C100DBATest Practice Test Questions, Exam Dumps [Q44-Q64]

Share

Share Latest Sep-2024 C100DBATest Practice Test Questions, Exam Dumps

Positive Aspects of Valid Dumps C100DBA Exam Dumps! 


Certification Cost of MongoDB C100DBA Exam

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


Prerequisites of MongoDB C100DBA Exam

  • MongoDB Developer Certified Associate
  • MongoDB C100DBA: Deploy and Maintain
  • MongoDB CMEv5 Implementation Engineer
  • MongoDB C100DBA: Installation and Administration: Essentials

 

NEW QUESTION # 44
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: B


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

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

Answer: B


NEW QUESTION # 46
Which option can be used with update command so that a new document gets created if no matching document is found based on the query condition?

  • A. upsert command instead of update command
  • B. This has to be handled in application code (Node.js, PHP, JAVA, C#, etc.) and cannot be handled in mongo shell query
  • C. {update: true, insert: true} as the third parameter of update command
  • D. Specify {upsert : true } as the third parameter of update command

Answer: D


NEW QUESTION # 47
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({commerits.$.author":-l});
  • B. db.posts.createIndex({comments.author":-l});
  • C. db.posts.createIndex({comments.$.author": {$desc:l>});

Answer: B


NEW QUESTION # 48
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 : { $gt : 100 , $lte : 200 } } );
  • C. db.posts.find({ likes : { $gte : 100, $lt : 200 } } );
  • D. db.posts.find({ likes : { $gt : 100, $lt : 200 > > );

Answer: A


NEW QUESTION # 49
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. 50, it
  • D. 200, more

Answer: B


NEW QUESTION # 50
What is the use of mongodump and mongorestore tools?

  • A. audit mongodb deployment
  • B. replicate mongodb deployments
  • C. performance tune mongodb deployment
  • D. backup mongodb deployment

Answer: D


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

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

Answer: D


NEW QUESTION # 52
What read preference should your application use if you want to read from the primary under normal circumstances but allow reads from secondaries when a primary is unavailable?

  • A. nearest
  • B. Secondary
  • C. primary
  • D. secondaryPreferred
  • E. primaryPreferred

Answer: E


NEW QUESTION # 53
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"}.limit($slice:{tags:2>)
  • B. db.posts.find({author:"Tom">,{tags:{$slice:2})
  • C. db.posts.find({author:"Tom"}.limit({tags:2})
  • D. 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.

Answer: B


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. the most current secondary will roll back the operations following the election
  • B. the secondary with the most current oplog will be elected primary
  • C. missing operations will need to be manually re-performed
  • D. the primary may roll back the operations once it recovers
  • E. reads will be stale until the primary comes back up

Answer: B


NEW QUESTION # 55
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 # 56
Which of the following is true about sharding?

  • A. We cannot change a shard key directly/automatically once it is set up
  • B. Sharding is enabled at the database level
  • C. A sharded environment does not support sorting functionality since the documents lie on various mongod instances
  • D. Creating a sharded key automatically creates an index on the collection using that key

Answer: A


NEW QUESTION # 57
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 : { $gt : 100 , $lte : 200 } } );
  • C. db.posts.find({ likes : { $gte : 100, $lt : 200 } } );
  • D. db.posts.find({ likes : { $gt : 100, $lt : 200 > > );

Answer: A


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

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

Answer: B


NEW QUESTION # 59
Consider the following example document:
{
"_id": Objectld("5360c0a0a655a60674680bbe"),
"user"
"login": "irOn"
"description": "Made of steel"
"date": ISODate("2014-04-30T09:16:45.836Z"),
}
>
and index creation command:
db.users.createlndex( { "user.login": 1, "user.date": -1 }, "mylndex" )
When performing the following query:
db.users.find( { "user.login": /Air.*/ }, { "user":1, "_id":0 } ).sort( { "user.date":1 } )
which of the following statements correctly describe how MongoDB will handle the query? Check all that apply.

  • A. None of the above
  • B. As an optimized sort query (scanAndOrder = false) using "mylndex" because we are sorting on an indexed field
  • C. As an indexed query using "mylndex" because field "user.login" is indexed
  • D. As a covered query using "mylndex" because we are filtering out "_id" and only returning "user.login"
  • E. MongoDB will need to do a table/collection scan to find matching documents

Answer: C


NEW QUESTION # 60
Which of the following are common uses of the mongo shell? Check all that apply

  • A. Use as a JavaScript framework for your production system
  • B. Perform administrative tasks
  • C. Perform queries against MongoDB collections

Answer: B,C


NEW QUESTION # 61
Consider the following document:
> db.c.find()
{ "_id" : 12, b : [ 3, 5, 7, 2, 1, -4, 3, 12 ] }
Which of the following queries on the "c" collection will return only the first five elements of the array in the "b" field? E.g., Document you want returned by your query:
{ "_id" : 12, "b" : [ 3, 5, 7, 2, 1 ] }

  • A. db.c.find( { > , { b : { $slice : [ 0 , 5 ] } } )
  • B. db.c.find( { > , { b : [ 0, 1, 2, 3, 4, 5 ] > )
  • C. db.c.find( { > , { b : { $substr[ 0 , 5 ] > > )
  • D. db.c.find( { b : [ 0 , 5 ] > )
  • E. db.c.find( { > , { b : [ 0 , 5 ] > )

Answer: A


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

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

Answer: A


NEW QUESTION # 63
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 # 64
......

Practice LATEST C100DBA Exam Updated 130 Questions: https://examboost.latestcram.com/C100DBA-exam-cram-questions.html