Courseiva
← Back to MongoDB Certified DBA Associate questions

Scenario-based practice

Refer to the Exhibit Practice Questions

Practise MongoDB Certified DBA Associate practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

15
scenario questions
C100DBA
exam code
MongoDB
vendor

Scenario guide

How to approach refer to the exhibit practice questions

Practise exhibit-style questions that ask you to read a topology, table, command output or diagram before choosing the best answer.

Quick answer

Exhibit-style questions test whether you can read a topology, command output, diagram or table before choosing the best answer.

How to extract the relevant detail from an exhibit.

How topology, command output or routing information affects the answer.

How to avoid answering from memory before reading the evidence.

How to map the exhibit back to the exam objective.

Related practice questions

Related C100DBA topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1hardmultiple choice
Full question →

Refer to the exhibit. The MongoDB process has crashed due to a storage engine error. What is the most immediate administrative action required to restore service?

Exhibit

2023-10-27T10:00:00.000Z I STORAGE [conn12] WiredTiger (28) No space left on device
2023-10-27T10:00:01.000Z F STORAGE [conn12] Failed to write record to storage engine
Question 2hardmultiple choice
Full question →

Refer to the exhibit. An administrator attempts to execute the shardCollection command but receives the displayed error message. What is the root cause of this failure?

Exhibit

{ "ok" : 0, "errmsg" : "a sharded collection must have an index starting with the shard key", "code" : 85, "codeName" : "ShardKeyNotFound"levant }
Question 3easymultiple choice
Full question →

Refer to the exhibit. What is the primary benefit of the data structure shown?

Exhibit

db.products.insert({name: 'Laptop', price: 1000, tags: ['electronics', 'work']})
Question 4hardmultiple choice
Full question →

Refer to the exhibit. A developer attempts to run a query using both 'tags' and 'location' in a single $and operation. What is the expected behavior regarding index usage?

Exhibit

db.collection.createIndex({ 'tags': 1 })
db.collection.createIndex({ 'location': '2dsphere' })
Question 5easymultiple choice
Full question →

Refer to the exhibit. What is the primary function of the node with _id 2 in this replica set?

Exhibit

rs.status()
{
  "set": "mySet",
  "members": [
    { "_id": 0, "stateStr": "PRIMARY", "optime": { "ts": Timestamp(1600000000, 1) } },
    { "_id": 1, "stateStr": "SECONDARY", "optime": { "ts": Timestamp(1600000000, 1) } },
    { "_id": 2, "stateStr": "ARBITER" }
  ]
}
Question 6mediummultiple choice
Full question →

Refer to the exhibit. Which MongoDB philosophy is represented by this document structure?

Exhibit

{
  "_id": 1,
  "name": "SensorA",
  "readings": [22.5, 23.1, 22.8]
}
Question 7hardmultiple choice
Full question →

Refer to the exhibit. The explain output shows a SORT stage wrapping an IXSCAN stage. What is the performance implication of this execution plan?

Exhibit

{
  "queryPlanner": {
    "winningPlan": {
      "stage": "SORT",
      "sortPattern": { "created": -1 },
      "inputStage": {
        "stage": "IXSCAN",
        "indexName": "status_1"
      }
    }
  }
}
Question 8mediummultiple choice
Full question →

Refer to the exhibit. What philosophy regarding client connectivity does this log entry reflect?

Exhibit

2023-10-27T10:00:00.000Z I NETWORK  [listener] connection accepted from 192.168.1.5:54321 #1
Question 9mediummultiple choice
Full question →

Refer to the exhibit. What is the effect of the 'writeConcern' parameter in this operation?

Exhibit

db.users.updateMany({active: false}, {$set: {status: 'archived'}}, {writeConcern: {w: 'majority'}})
Question 10mediummultiple choice
Full question →

Refer to the exhibit. What does this output indicate about the query performance?

Exhibit

{
  "ns": "db.collection",
  "nReturned": 10000,
  "totalKeysExamined": 10000,
  "totalDocsExamined": 10000,
  "planSummary": "COLLSCAN"
}
Question 11mediummultiple choice
Full question →

Refer to the exhibit. Which documents will this query return?

Exhibit

db.products.find({tags: 'electronics', price: {$lt: 500}}).sort({price: 1}).limit(5).pretty()
Question 12hardmultiple choice
Full question →

Refer to the exhibit. An administrator attempts to recover a corrupted standalone mongod instance using the --repair flag. Based on the error log output, what is the most appropriate next step for the administrator?

Network Topology
dbPath /data/db$ mongodrepair
Question 13hardmultiple choice
Full question →

Refer to the exhibit. What is the primary cause of the performance issue seen in this query plan?

Exhibit

{
  "ns": "app.orders",
  "nScanned": 500000,
  "nReturned": 1,
  "execStats": {
    "stage": "COLLSCAN",
    "nReturned": 1
  }
}
Question 14hardmultiple choice
Full question →

Refer to the exhibit. An aggregation pipeline is failing with an error. How can you modify the pipeline to allow it to process the large dataset?

Exhibit

{ "code": 50, "errmsg": "Exceeded memory limit for $group, but didn't allow external sort.", "ok": 0 }
Question 15hardmultiple choice
Full question →

Refer to the exhibit. Which index is most effective for this query?

Exhibit

db.collection.find({ 'tags': { $all: ['red', 'blue'] } })

These C100DBA practice questions are part of Courseiva's free MongoDB certification practice question bank. Courseiva provides original exam-style C100DBA questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.