C100DBA Exam Questions
126 real C100DBA exam questions with expert-verified answers and explanations. Page 1 of 3.
- Question #1MongoDB Fundamentals
What does the following aggregate query perform?
aggregation pipeline$match$grouprange query - Question #2MongoDB Fundamentals
Which of the following commands finds all the documents in the posts collection with post timestamp field as null?
$type operatornull valuesquery operatorsfield types - Question #3Replication
What is the first task that a secondary would perform on being prompted by another secondary for an election?
election processreplica setsecondary nodeprimary availability - Question #4MongoDB Fundamentals
Aggregation Pipelines have a limit of:
aggregation pipelinememory limitsdocument size limitpipeline constraints - Question #5MongoDB Fundamentals
Which option should be used to update all the documents with the specified condition in the MongoDB query?
multi updateupdate operationswrite operationsbulk update - Question #6Monitoring and Diagnostics
Which mongodb tools allow us to work with our data in a human readable format?
MongoDB toolsdata visualizationhuman readable formatCLI tools - Question #8Backup and Recovery
In a sharded cluster, from which node does one stop the balancer process before initiating backup?
sharded clusterbalancer processbackup proceduremongos - Question #9Monitoring and Diagnostics
Which command is used to determine storage capacity of specific database?
dbstatsstorage capacitydatabase statisticsmonitoring commands - Question #10MongoDB Fundamentals
What is the maximum size of a MongoDB document
document size limitBSON16MB limit - Question #11MongoDB Fundamentals
What is the maximum size of a MongoDB document?
document size limitBSON16MB limit - Question #12MongoDB Fundamentals
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?
aggregation pipeline$group$sumcompound grouping - Question #13Sharding
Which of the following does MongoDB use to provide High Scalability?
shardinghorizontal scalinghigh scalability - Question #14MongoDB Fundamentals
Which of the following are valid json documents? Select all that apply.
JSON formatdocument structureBSONdata validation - Question #15MongoDB Fundamentals
Which of the following aggregate commands in MongoDB uses a pipeline approach with the goals of improving the aggregation performance?
aggregation pipelineaggregate commandpipeline approachperformance - Question #16Backup and Recovery
'mongoimport' command is used for
mongoimportbatch insertdata importbulk operations - Question #17Replication
The oplog (operations log) is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases. All the replica set members c...
oplogcapped collectionreplica setoperations log - Question #19MongoDB Fundamentals
You are comparing values of different BSON types in mongodb. You want to compare from lowest to highest. Which comparison order is used?
BSON typescomparison ordertype systemMinKey - Question #20Backup and Recovery
In what format does mongodump creates backup files?
mongodumpBSON formatbackup formatdata export - Question #21MongoDB Fundamentals
Which of the following commands will return all the posts with number of likes greater than 100 and less than 200, both inclusive?
$gte$lterange querycomparison operators - Question #22MongoDB Fundamentals
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?
$slicearray projectionquery projectionarray operators - Question #23Replication
Which node in a replica set does accept write operation?
replica setprimary nodewrite operations - Question #25MongoDB Fundamentals
Which are the ONLY ways to project portions of an array?
array projection$slice$elemMatchquery operators - Question #27Replication
You have a replicated cluster with 1 primary, 3 secondary, 1 arbiter. One of the secondary is hidden. What is the replication factor of this replicated cluster?
replica setreplication factorhidden nodearbiter - Question #28MongoDB Fundamentals
Which operations add new documents to a collection?
insertupsertCRUD operationsdocument creation - Question #29MongoDB Fundamentals
Consider the following document from the products collection: What does the following query using $elemMatch return? db.products.find( { product_code: "345678" }, { variations: { $...
$elemMatcharray projectionfind projectionquery operators - Question #30MongoDB Fundamentals
Update If Correct is an approach for which of the following concepts in MongoDB:
concurrency controloptimistic lockingupdate if correctwrite conflicts - Question #31Sharding
In a sharded replicas set environment with multiple mongos servers, which of the following would decide the mongos failover?
mongosshardingfailoverlanguage drivers - Question #32MongoDB Fundamentals
Below is a sample document of "orders" collection
aggregation$sortpipeline stages - Question #33Performance Tuning
Which type of indexes does MongoDB support?
indexescompound indexmultikey indexgeospatial index - Question #34MongoDB Fundamentals
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?
aggregation$group$sumpipeline - Question #35MongoDB Fundamentals
Which of the following is true about aggregation framework?
aggregation frameworkpipelineaccumulator expressions$group - Question #36Performance Tuning
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?
index creationarray indexnested documentsdescending index - Question #37MongoDB Fundamentals
Which of the following operator can be used to control the number of items of an array that a query returns?
$slicearray projectioncursor operatorsquery operators - Question #39Monitoring and Diagnostics
What does the totalKeysExamined field returned by the explain method indicate?
explaintotalKeysExaminedindex scanningquery diagnostics - Question #40Replication
In a replicated cluster, which of the following node would only be used during an election?
arbiterreplica setelectionreplication - Question #41MongoDB Fundamentals
The following aggregation option is used to specify the specific fields that needs to be passed to the next stage of the aggregation pipeline:
$projectaggregation pipelinefield selection - Question #42Performance Tuning
What is the maximum size of Index Key Limit and Number of Indexes per collection?
index key limitindexes per collectionindex constraints - Question #43MongoDB Fundamentals
In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)
skiplimitcursor methodspagination - Question #44MongoDB Fundamentals
MongoDB is a schema-less design.
schema-lessdocument modelNoSQLMongoDB basics - Question #45MongoDB Fundamentals
What is the output of following two commands in MongoDB: db. posts. insert({n_id":l}) db.posts.insert({"_id":l})
_id fieldduplicate key errordocument insertionunique index - Question #46Performance Tuning
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?
createIndexmultikey indexarray fieldsindex syntax - Question #47MongoDB Fundamentals
Which of the following command inside aggregate command is used in MongoDB aggregation to filter the documents to pass only the documents that match the specified condition(s) to t...
aggregation pipeline$matchpipeline stagesfiltering - Question #48MongoDB Fundamentals
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?
cursormongo shellit commanddefault batch size - Question #49Backup and Recovery
What is the use of mongodump and mongorestore tools?
mongodumpmongorestorebackup toolsdata export - Question #50MongoDB Fundamentals
Which format/standard is used by MongoDB internally to store documents?
BSONdocument storagedata formatinternal storage - Question #51Replication
Which of the tags in a replica set configuration specify the operations to be read from the node with the least network latency?
read preferencenearestnetwork latencyreplica set tags - Question #52Monitoring and Diagnostics
What is the on-premise solution having functionality equivalent to cloud manager?
Ops ManagerCloud Manageron-premisemanagement tools - Question #53MongoDB Fundamentals
In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)
skiplimitcursor methodsquery pagination - Question #54MongoDB Fundamentals
Which of the following is incorrect statement about find and findOne operations in MongoDB?
findfindOnecursorquery methods - Question #55MongoDB Fundamentals
'$set' sets the value of
$setupdate operatorfield valuedocument update