Accurate Hot Selling C100DBA Exam Dumps 2024 Newly Released
Get 100% Authentic MongoDB C100DBA Dumps with Correct Answers
NEW QUESTION # 45
Below is a sample document of "orders" collection
Answer:
Explanation:
$project
NEW QUESTION # 46
What is the on-premise solution having functionality equivalent to cloud manager?
- A. Ops Manager
- B. Replica Manager
- C. Journaling
- D. Service Manager
Answer: A
NEW QUESTION # 47
Which of the following node is used during election in a replication cluster?
- A. hidden
- B. secondary
- C. primary
- D. arbiter
Answer: D
NEW QUESTION # 48
In a collection that contains 100 post documents, what does the following command do? db. posts.
find().skip(5).limit(5)
- A. Skips the first five documents and returns the sixth document five times
- B. Limits the first five documents and then return them in reverse order
- C. Skip and limit nullify each other. Hence returning the first five documents
- D. Skips the first five documents and returns the next five
Answer: D
NEW QUESTION # 49
What is the use of mongodump and mongorestore tools?
- A. replicate mongodb deployments
- B. performance tune mongodb deployment
- C. audit mongodb deployment
- D. backup mongodb deployment
Answer: D
NEW QUESTION # 50
Which of the following aggregate commands in MongoDB uses a pipeline approach with the goals of improving the aggregation performance?
- A. All of the above
- B. mapReduce
- C. aggregate
- D. group
Answer: C
NEW QUESTION # 51
What does the output x of the following MongoDB aggregation query result into; db.posts.aggregate( [ {
$group: { _id; "$author", x: { $sum: $likes } } } ] )
- A. Sum of likes on all the posts by all the authors
- B. Sum of likes on all the posts by an author, grouped by author
- C. Number of posts by an author
- D. Average of likes on all the posts of an author, grouped by author
Answer: B
NEW QUESTION # 52
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: "$state", city; "$city" },pop: { $sum: 1 > > >] )
- B. db.population.aggregate( [{ $group: { _id: { state: Estate", city: n$city" },pop: { $sum: "$pop" } } }] )
- 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: { $pop: 1 } } }] )
Answer: B
NEW QUESTION # 53
'$set' sets the value of
- A. None of the above
- B. Key
- C. Code block
- D. Name/value pair
Answer: B
NEW QUESTION # 54
What is the equivalent command in MongoDB for the following SQL query?
SELECT * FROM posts WHERE author like "%john%"
- A. db.posts.find( { author: /John/ } )
- B. db.posts.find( { author: /AjohnA/ > )
- C. db.posts.find( { author: {$like: /John/} } )
- D. db.posts.find( { $like: {author: /John/} } )
Answer: A
NEW QUESTION # 55
What is the output of the following program?
- A. 1s
- B. 100 ms
- C. 100 s
- D. 60 s
Answer: D
NEW QUESTION # 56
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. Updates the Title of the post
- B. Replaces the complete document with _id as 1 with the document specified in second parameter
- C. Updating a document is possible only with $set
- D. Syntax error
Answer: B
NEW QUESTION # 57
Which of the following is correct about MongoDB?
- A. MongoDB supports some of the SQL functions
- B. MongoDB supports collection joins
- C. MongoDB uses JSON format to represent documents
- D. MongoDB supports geospatial indexes
Answer: D
NEW QUESTION # 58
What is the defau size of a GridFS chunk?
- A. 16 MB
- B. 255 K
- C. 1 MB
- D. 2 MB
Answer: B
NEW QUESTION # 59
Consider the following documents:
You perform the following query;
How many documents will be updated by the query?
- A. 0
- B. 1
- C. 2
- D. 3
- E. 4
Answer: C
NEW QUESTION # 60
What is the output of following two commands in MongoDB: db. posts. insert({n_id":l}) db.posts.insert({"_id":l})
- A. Two documents will be inserted with _id as 1
- B. This will throw a duplicate key error
- C. MongoDB will automatically increment the _id of the second document as 2
- D. It will insert two documents and throw a warning to the user
Answer: B
NEW QUESTION # 61
......
Dumps of C100DBA Cover all the requirements of the Real Exam: https://troytec.dumpstorrent.com/C100DBA-exam-prep.html