Courseiva

C100DEV · domain

Drivers, Tools, Transactions, and Search

This domain covers MongoDB's client tooling and operational features: mongosh, Database Tools like mongodump and mongorestore, sessions and transactions, and Atlas Search. Questions present scenarios—an error exhibit, a backup requirement, or a session behavior—and ask you to pick the correct tool, command, or next step rather than recite definitions.

39 questions13 easy16 medium10 hard

Focused practice

Practice Drivers, Tools, Transactions, and Search questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

What to know about Drivers, Tools, Transactions, and Search

Match the tool or feature to the scenario: mongodump/mongorestore for binary backups, mongosh for interactive and scripted administration, sessions for causal consistency, and transactions for multi-document atomicity. The key skill is reading the exhibit or requirement and choosing the correct next step, not just naming the command.

Selecting mongodump and mongorestore for binary BSON backups versus mongosh for interactive queries

Explaining causally consistent sessions and causal ordering of reads and writes within a session

Using multi-document transactions with startTransaction, commitTransaction, and abortTransaction in sessions

Choosing mongosh for JavaScript-based administrative scripting and Atlas Search for full-text queries

Watch out for

Common Drivers, Tools, Transactions, and Search exam traps

  • ▸Confusing mongodump/mongorestore binary backups with mongoexport/mongoexport JSON or CSV exports, which lose BSON types and index metadata
  • ▸Assuming every read in a causally consistent session sees the latest write across all clients, rather than only causally related operations
  • ▸Treating transactions as available on standalone servers or forgetting that collections must already exist before use

Question index

All Drivers, Tools, Transactions, and Search questions (39)

Click any question to see the full explanation, or start a practice session above.

1

Refer to the exhibit. What is the impact of setting 'dynamic' to true in this Atlas Search index definition?

Hard
2

A developer needs to perform a point-in-time backup of a MongoDB replica set while the database remains online and serving reads and writes. Which MongoDB Database Tool is designed for this task?

Easy
3

Refer to the exhibit. An application receives this error during a multi-document transaction. What is the correct approach for the application developer?

Medium
4

What is the primary function of the MongoDB connection pool in a driver?

Easy
5

A developer wants to query MongoDB Atlas Search for documents where the 'description' field contains the phrase 'wireless headphones'. Which Atlas Search operator should be used to achieve this?

Easy
6

A developer is using mongosh to connect to a MongoDB Atlas cluster and needs to run several administrative commands. The developer wants to ensure that the connection uses the correct authentication database and that all commands are executed with the appropriate read preference. Which mongosh command-line option should be used to specify the authentication database?

Hard
7

A developer is using the MongoDB Node.js driver to perform a multi-document transaction that includes a read operation followed by a write operation. The developer wants to ensure that the read sees a consistent snapshot of the data and that the write is atomic with the read. Which of the following read concerns should be used for the read operation within the transaction?

Hard
8

Refer to the exhibit. What is the most appropriate next step for an application encountering this error?

Medium
9

A developer needs to quickly inspect the contents of a collection and run ad-hoc queries against a MongoDB Atlas cluster without installing any additional software. Which tool should be used?

Easy
10

Which MongoDB tool should be used to perform a point-in-time backup of a MongoDB cluster while the database is running?

Easy
11

A developer is building an application that uses the MongoDB Node.js driver to perform a multi-document transaction. The transaction includes an update to an 'inventory' collection and an insert into an 'orders' collection. During testing, the developer notices that occasionally the transaction aborts with a TransientTransactionError. What is the most appropriate way to handle this error in the application code?

Hard
12

A developer runs `mongosh` against a replica set and wants to inspect the current database's collections before writing any queries. Which command should be executed?

Easy
13

Which TWO of the following are common use cases for using the 'mongosh' shell in a production environment?

Medium
14

When using the MongoDB C#/.NET driver, which object is essential for managing the scope and lifecycle of a multi-document transaction?

Medium
15

A developer is debugging a multi-document transaction in the MongoDB Node.js driver. The transaction updates a document in the `orders` collection and inserts into `audit`. The commit fails with a `WriteConflict` error that does not carry the `TransientTransactionError` label. What is the most appropriate action?

Hard
16

What is the primary purpose of the 'causal consistency' feature provided by MongoDB sessions?

Hard
17

A developer uses the MongoDB Node.js driver to run a multi-document transaction that updates an accounts collection and inserts a ledger entry. The transaction commits successfully, but a second application instance immediately reads the ledger entry through a session that is not causally linked to the transaction session and receives stale data. The developer wants the second instance to observe the transaction's committed writes without changing the transaction itself. Which approach should the developer use?

Hard
18

A developer needs to create a backup of a MongoDB deployment that includes all databases and their indexes, and then restore it to a different server. The backup should be in a binary format that preserves BSON data types. Which tool should be used to create the backup?

Medium
19

A developer is using the MongoDB Node.js driver to perform a multi-document transaction that includes a read operation on a collection with a read concern of 'snapshot'. What is the effect of using 'snapshot' read concern in this transaction?

Hard
20

A developer wants to run ad-hoc queries against a MongoDB Atlas cluster from a terminal, including commands like db.collection.find() and db.adminCommand({listDatabases: 1}). The developer has the connection string and wants the least additional setup. Which tool should be used?

Medium
21

Which of the following describes the behavior of a 'write concern' in a MongoDB transaction?

Medium
22

A developer is writing a Node.js application that must execute a series of document updates across two collections atomically. The application uses the MongoDB Node.js driver and needs to ensure that if any operation fails, all changes are rolled back. Which driver API should the developer use to achieve this?

Medium
23

What is the primary role of the 'mongos' process in a sharded cluster?

Medium
24

A developer is configuring an Atlas Search index on a collection of product documents. The index definition uses a dynamic mapping. Which two statements accurately describe the behavior or configuration of Atlas Search indexes in this scenario? (Choose two.)

Hard
25

In the context of the MongoDB Node.js driver, what happens if an application fails to provide a write concern?

Medium
26

A developer needs to run a multi-document transaction using the MongoDB Node.js driver. The transaction must read from the 'orders' collection and write to the 'inventory' collection. Which sequence of operations correctly implements the transaction?

Medium
27

Which of the following describes the behavior of a 'causally consistent' session in MongoDB?

Medium
28

An application using the MongoDB Node.js driver must ensure that a multi-document transaction is retried correctly when it encounters a transient error. Which two practices are required? (Choose two.)

Medium
29

Which of the following best describes the purpose of the MongoDB 'mongosh' shell?

Easy
30

A developer is using the MongoDB Node.js driver to perform a multi-document transaction that updates multiple collections. During testing, the transaction occasionally fails with a TransientTransactionError. What is the most appropriate way to handle this error?

Hard
31

A developer is using the MongoDB Node.js driver to perform a multi-document transaction that updates a document in the 'orders' collection and inserts a record into the 'audit' collection. After starting the session and transaction, the update succeeds, but the insert fails due to a duplicate key error. What should the developer do to handle this error and ensure data consistency?

Medium
32

A developer is building a Node.js application that connects to a MongoDB replica set. The application must ensure that every read operation sees a consistent snapshot of the data, even if other clients are concurrently modifying documents. Which read concern level should be used for these reads?

Medium
33

Which tool is primarily recommended for performing binary backups and restores of a MongoDB deployment?

Easy
34

A developer needs to quickly inspect the contents of a MongoDB collection and run ad-hoc queries during development. The developer prefers a command-line interface that supports JavaScript syntax and allows direct interaction with the database. Which MongoDB tool should be used?

Easy
35

A developer needs to load a large JSON file into a collection named 'inventory' in the 'retail' database on a MongoDB server running on localhost. The file contains one JSON document per line. Which command-line tool should be used?

Easy
36

A developer needs to import a large JSON file into a MongoDB collection named 'products' in the 'catalog' database. The file contains one JSON document per line (JSON Lines format). Which MongoDB tool should be used to accomplish this efficiently?

Easy
37

When using MongoDB Compass to analyze query performance, which tool is most effectively used to view the explain plan output in a visual format?

Easy
38

A developer needs to create an Atlas Search index that supports autocomplete on a `name` field. Which Atlas Search index definition is required?

Easy
39

An application uses a multi-document transaction to update inventory and process an order. What happens if the transaction exceeds the default transaction lifetime limit of 60 seconds?

Medium

Frequently asked questions

What does the Drivers, Tools, Transactions, and Search domain cover on the C100DEV exam?
Match the tool or feature to the scenario: mongodump/mongorestore for binary backups, mongosh for interactive and scripted administration, sessions for causal consistency, and transactions for multi-document atomicity. The key skill is reading the exhibit or requirement and choosing the correct next step, not just naming the command.
How many questions are in this domain?
This page lists all 39 Drivers, Tools, Transactions, and Search questions in the C100DEV question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Drivers, Tools, Transactions, and Search questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
mongodb-associate-developer MONGODB-ASSOCIATE-DEVELOPER drivers tools transactions search Practice Questions