Try Before You Buy

Download a free sample of any of our exam questions and answers

  • 24/7 customer support, Secure shopping site
  • Free One year updates to match real exam scenarios
  • If you failed your exam after buying our products we will refund the full amount back to you.

Check the Free demo of our C100DBA Exam Dumps with 130 Questions [Q59-Q84]

Share

Check the Free demo of our C100DBA Exam Dumps with 130 Questions

Clear your concepts with C100DBA Questions Before Attempting Real exam


What is the time duration of the MongoDB C100DBA Exam

MongoDB C100DBA exam duration is 90 minutes. The maximum number of attempts to pass this exam is six.

 

NEW QUESTION # 59
What does the following query do when performed on the posts collection? db.posts.update({_id:l},{Title:This is post with ID 1"})

  • A. Updating a document is possible only with $set
  • B. Replaces the complete document with _id as 1 with the document specified in second parameter
  • C. Syntax error
  • D. Updates the Title of the post

Answer: B


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

Answer: C


NEW QUESTION # 61
Which option should be used to update all the documents with the specified condition in the MongoDB query?

  • A. specify {multi : true} as the third parameter of update command
  • B. specify {all: true} as the third parameter of update command
  • C. updateAII instead of update
  • D. specify {updateAII: true} as the third parameter of update command

Answer: A


NEW QUESTION # 62
Which of the following commands finds all the documents in the posts collection with post timestamp field as null?

  • A. db.posts.find( { post_timestamp: { $type: null } } )
  • B. db.posts.find( { post_timestamp: { $fieldtype: null } } )
  • C. db.posts.find( { post_timestamp: { $fieldtype: 10 } } )
  • D. db.posts.find( { post_timestamp : { $type; 10 > > )

Answer: A


NEW QUESTION # 63
Which node in a replica set does accept write operation?

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

Answer: A


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

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

Answer: A,B


NEW QUESTION # 65
Write the command(s) are correct to enable sharding on a database "testdb" and shard a collection "testCollection" with _id as shard key.

Answer:

Explanation:
sh.enableSharding("testdb") & sh.shardCollection("testdb.testCollection", {_id : 1 }, true )


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

Answer: D


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

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

Answer: C


NEW QUESTION # 68
What does the following aggregate query perform?

  • A. Fetches the posts with likes between 100 and 200, sets the _id of the first document as null and then increments it 1 every time
  • B. Groups the posts by number of likes (101, 102, 103.) by adding 1 every time
  • C. Calculates the number of posts with likes between 100 and 200
  • D. Fetches the posts with likes between 100 and 200 and sets their _id as null

Answer: C


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

Answer: B


NEW QUESTION # 70
Which of the following does MongoDB use to provide High Availability and fault tolerance?

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

Answer: A


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

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

Answer: C


NEW QUESTION # 72
In which of the following scenarios is sharding not the correct option. Select all that apply.

  • A. The write operations on the collection are very high
  • B. The working set in the collection is expected to grow very large in size
  • C. The collection is a read intensive collection with less working set
  • D. The write operations on the collection are low

Answer: C,D


NEW QUESTION # 73
Which of the following operator can be used to control the number of items of an array that a query returns?

  • A. $ elemMatch
  • B. $slice
  • C. MongoDB does not support partial retrieval of items from an array
  • D. $

Answer: B


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

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

Answer: B


NEW QUESTION # 75
You have the following index on the toys collection:
{
"manufacturer" : 1,
"name" : 1,
"date" : -1
}
Which of the following is able to use the index for the query? Check all that apply.

  • A. db.toys.find( { date : "2015-03-01", manufacturer : "Loggo", name : "Brick Set" } )
  • B. db.toys.find( { name : "Big Rig Truck", date : "2013-02-01", manufacturer : "Tanko"
  • C. db.toys.find( { manufacturer : "Matteo", name : "Barbara", date : "2014-07-02" } )

Answer: A,B,C


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

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

Answer: A


NEW QUESTION # 77
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 indexed query using "mylndex" because field "user.login" is indexed
  • C. As a covered query using "mylndex" because we are filtering out "_id" and only returning "user.login"
  • D. MongoDB will need to do a table/collection scan to find matching documents
  • E. As an optimized sort query (scanAndOrder = false) using "mylndex" because we are sorting on an indexed field

Answer: B


NEW QUESTION # 78
The following aggregation option is used to specify the specific fields that needs to be passed to the next stage of the aggregation pipeline:

  • A. $match
  • B. $group
  • C. $project
  • D. $aggregate

Answer: C


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

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

Answer: A


NEW QUESTION # 80
Which of the following collections stores authentication credentials in MongoDB?

  • A. system.users
  • B. test.users
  • C. users.users
  • D. local.users

Answer: A


NEW QUESTION # 81
In order to ensure that you can maintain high availability in the face of server failure, you should implement which of the following?

  • A. Replication
  • B. Properly defined user roles
  • C. Sharding
  • D. Put indexes on all of your documents
  • E. The proper storage engine

Answer: A


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

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

Answer: D


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

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

Answer: D


NEW QUESTION # 84
......


Preparing for the MongoDB C100DBA exam requires a solid understanding of MongoDB architecture and administration. Candidates can prepare for the exam by taking MongoDB's official training courses, reading the MongoDB documentation, and practicing their skills on real-world MongoDB deployments. Passing the MongoDB C100DBA exam is a valuable achievement for any database administrator who works with MongoDB and can open up new career opportunities.

 

Get professional help from our C100DBA Dumps PDF: https://examtorrent.vce4dumps.com/C100DBA-latest-dumps.html