C100DBA Exam Questions
126 real C100DBA exam questions with expert-verified answers and explanations. Page 3 of 3.
- Question #107Performance Tuning
Below is a sample document in a given collection test. { a : 5, b : 3, c: 2, d : 1 > Given a compound index { a: 1, b:l, c:l, d:l}, Which of the below query will not use in-memory...
compound indexin-memory sortindex prefixquery optimization - Question #108MongoDB Fundamentals
Consider that the posts collection contains an array called ratings which contains ratings given to the post by various users in the following format: Which of the following query...
array queries$elemMatchquery operatorselement matching - Question #109Replication
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?
read preferenceprimaryPreferredreplica set readssecondary fallback - Question #110Replication
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. Assumin...
oplogelectionrollbackreplica set failover - Question #111Performance Tuning
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 a...
compound indexindex prefixquery planningindex utilization - Question #112Performance Tuning
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...
text index$text operatortext searchstemming - Question #113MongoDB Fundamentals
You perform the following operation in the shell: db.foo.insert( { } ); What gets inserted?
insertObjectIddocument creation - Question #114MongoDB Fundamentals
Dada una coleccion, cuales devuelve con la siguiente query db.coleccion.find({nombre:"ruben",apellido:"gomez"},{nombre:l,apellido:l,aficion:l});
find queryprojectionquery filterfield selection - Question #115Replication
Using an arbiter allows one to easily ensure an odd number of voters in replica sets. Why is this important?
arbitervoting membersnetwork partitionreplica set topology - Question #116MongoDB Fundamentals
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...
$or operator$in operatorquery operatorslogical operators - Question #117Performance Tuning
Consider the following example document: { "_id": Objectld("5360c0a0a655a60674680bbe"), "user" "login": "irOn" "description": "Made of steel" "date": ISODate("2014-04-30T09:16:45.8...
index utilizationregex querycovered querysort optimization - Question #118MongoDB Fundamentals
You perform the following query; How many documents will be updated by the query?
updatesingle document updatewrite operations - Question #119Replication
Which of the following is a valid Replica Set configuration if you want: 1-Have 3 copies of everything 2- That RS3 is never primary 2- That RSI and RS2 can be primary? You had to s...
replica set configurationmember priorityelectionhidden member - Question #120Performance Tuning
Addding the index {a:l} can potentially decrease the speed of which of the following operations? Check all that apply.
index overheadwrite performanceinsert costupdate cost - Question #121MongoDB Fundamentals
Consider the following example document from the sample collection. All documents in this collection have the same schema. Which of the following queries will replace this with the...
updatedocument replacement$set$unset - Question #122MongoDB Fundamentals
Which of the following are common uses of the mongo shell? Check all that apply
mongo shelladministrative tasksJavaScript interface - Question #123MongoDB Fundamentals
Which of the following is a valid insert statement in mongodb? Select all valid.
insert syntaxCRUD operationswrite operations - Question #124Replication
In order to ensure that you can maintain high availability in the face of server failure, you should implement which of the following?
high availabilityreplicationserver failurefault tolerance - Question #125MongoDB Fundamentals
Which features of relational database management systems were deliberately omitted in MongoDB and help us to obtain horizontal scalability? Check all that apply.
horizontal scalabilityjoinsmulti-statement transactionsRDBMS vs MongoDB - Question #126MongoDB Fundamentals
What tool would you use if you want to save a gif file in mongo? Answer: mongofile
mongofilesGridFSbinary storagetools - Question #127MongoDB Fundamentals
Suposse tou have the following collection with only 2 documents: If you run an aggregation query and use { $unwind: "$traits" } as the first stage, how many documents will be passe...
aggregation pipeline$unwindarray unwindingdocument count - Question #128Monitoring and Diagnostics
What tool do you use to see if you have a problem in the consumption of disk I / 0? Answer: Mongoperf
mongoperfdisk I/Operformance toolsdiagnostics - Question #129Replication
Which of the following is true of the mechanics of replication in MongoDB? Check all that apply.
replica setoplogreplication mechanicsread preference - Question #130Backup and Recovery
What tool do you use if you want to extract a CSV from mongo? Answer: mongoexport
mongoexportCSV exportdata exporttools - Question #131MongoDB Fundamentals
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...
$slicearray projectionquery operatorsfield projection - Question #132MongoDB Fundamentals
Which of the following statements are true about the $match pipeline operator? Check all that apply.
$matchaggregation pipelinepipeline optimizationquery syntax