Pass C100DBA Exam - Real Test Engine PDF with 123 Questions
Get New C100DBA Certification Practice Test Questions Exam Dumps
NEW QUESTION 31
Mongodb does provide high availability via which option?
- A. Replication
- B. Indexing
- C. Journaling
- D. Sharding
Answer: A
NEW QUESTION 32
In what format does mongodump creates backup files?
- A. JSON
- B. XML
- C. BSON
- D. SOAP
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: D
NEW QUESTION 34
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( { name : "Big Rig Truck", date : "2013-02-01", manufacturer : "Tanko"
- B. db.toys.find( { date : "2015-03-01", manufacturer : "Loggo", name : "Brick Set" } )
- C. db.toys.find( { manufacturer : "Matteo", name : "Barbara", date : "2014-07-02" } )
Answer: A,B,C
NEW QUESTION 35
If the value of totalKeysExamined is 30000 and the value of totalDocsExamined is 0, which of the following option is correct?
- A. The query used an index to fetch the results
- B. The query returned 0 documents
- C. None of the above
- D. The query returned 30000 documents after scanning the documents
Answer: A
NEW QUESTION 36
In mongodb how do you update a document partially?
- A. $set
- B. $update
- C. $project
- D. $modify
Answer: A
NEW QUESTION 37
Which operations add new documents to a collection?
- A. update
- B. insert
- C. Create
- D. delete
Answer: B,C
NEW QUESTION 38
You are in a sharded cluster. What will you do prior to initiating backup in sharded cluster?
- A. sh.stopserverQ
- B. db.stopserver()
- C. sh.stopBalancer()
- D. db.stopBalancer()
Answer: C
NEW QUESTION 39
What is the use of mongodump and mongorestore tools?
- A. audit mongodb deployment
- B. replicate mongodb deployments
- C. backup mongodb deployment
- D. performance tune mongodb deployment
Answer: C
NEW QUESTION 40
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.find( { $array : {tags: "tutorial") > );
- B. db.posts.find( { tags : ["tutorial"] } );
- C. db.posts.find( { tags : "tutorial" } );
- D. db.posts.findInArray( { tags : "tutorial" > );
Answer: C
NEW QUESTION 41
Which of the following is incorrect statement about find and findOne operations in MongoDB?
- A. find.limit(l) is not the same query as findOne()
- B. findOneQ returns the actual first document retrieved from a collection
- C. findQ returns all the documents in a collection while findOne() retrieves only the first one.
- D. findQ and findOneQ returns cursors to the collection documents
Answer: D
NEW QUESTION 42
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 last
- B. Returns 5 comments, beginning with the last 10 items
- C. Returns 5 comments, beginning with the first 10 items
- D. Returns 10 comments, beginning with the first
Answer: B
NEW QUESTION 43
Which mongodb tools allow us to work with our data in a human readable format?
- A. mongodump
- B. mongoexport
- C. mongoimport
- D. mongostat
Answer: B,C
NEW QUESTION 44
Which of the following is a valid insert statement in mongodb? Select all valid.
- A. db.test.insert{"x":2, "y":"apple"})
- B. db.test.insert({x:2,y:"apple"})
- C. db.test.push({x:2,y:"apple"})
- D. db.test.insert({x:2},{y:"apple"})
Answer: A,B
NEW QUESTION 45
Which of the following commands can cause the database to be locked?
- A. Issuing a query
- B. All of the above
- C. Map-reduce
- D. Inserting data
Answer: B
NEW QUESTION 46
The difference between $push and $addToSet is:
- A. $addToSet needs the fields to be already present while $push will work even if the field is not present
- B. $addToSet adds the item to the field only if it does not exist already; while $push pushes the item to the field irrespective of whether it was present or not
- C. There is no major difference between them. $addToSet is a deprecated version of $push.
- D. $addToSet adds the item to the field only if the new item is of the same datatype
Answer: B
NEW QUESTION 47
Which of the following operator can be used to control the number of items of an array that a query returns?
- A. $slice
- B. MongoDB does not support partial retrieval of items from an array
- C. $ elemMatch
- D. $
Answer: A
NEW QUESTION 48
Which of the documents below will be retrieved by the following query? Assume the documents are stored in a collection called "sample". Check all that apply.
db.sample.find( { "$or" : [ { "a" : { "$in" : [ 3, 10] > }, { "b" : { "$lt" : 2 > > ] > )
- A. {''_Jd" :7, "a": 8, "c" :1, "b" :7}
- B. {".Jd" :: 5, "a": 3, "c" :: 0, "b": 12}
- C. { ''\Jd" :9, "a": 17, "c": 1, "b": 1}
- D. {".Jd" :: 8, "a": 11, "c": 1, "b": 0}
- E. {".Jd" :: 1, "a": 0, "c" :: 0, "b": 2}
- F. {".Jd" :6, "a": 1, "c" :1, "b" :5}
- G. { \Jd" :10,"a": 3, "c": 1, "b": 1}
- H. {".Jd" :: 2, "a": 2, "c" :: 0, "b": 1}
- I. {''__id" :3, "a": 4, "c" :0, "b" :14}
- J. {".Jd" :: 4, "a": 5, "c" :: 0, "b": 17}
Answer: B,C,D,G,H
NEW QUESTION 49
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. {update: true, insert: true} as the third parameter of update command
- C. Specify {upsert : true } as the third parameter of update command
- D. This has to be handled in application code (Node.js, PHP, JAVA, C#, etc.) and cannot be handled in mongo shell query
Answer: C
NEW QUESTION 50
......
C100DBA Exam Dumps - PDF Questions and Testing Engine: https://passleader.free4dump.com/C100DBA-real-dump.html