Exam C100DBA Topic 5 Question 110 Discussion

Actual exam question for MongoDB's C100DBA exam
Question #: 110
Topic #: 5
Which TWO mongosh commands can be used to shutdown the mongod daemon?

Suggested Answer: A,D Vote an answer

MongoDB supports a clean server shutdown through the shutdown administrative command and through the mongosh helper db.shutdownServer(). Option A uses db.adminCommand({ shutdown: 1 }), which executes the shutdown command against the admin database and requests an orderly termination of the server process.
Option D explicitly switches to the admin database and calls db.shutdownServer(), the documented shell helper that wraps the same administrative behavior. Option B uses killOp, which terminates a specific database operation identified by an operation ID; port 27017 is not an operation ID and killing an operation is not equivalent to shutting down mongod. Option C uses killAllSessions, which ends logical sessions but leaves the server process running. A controlled shutdown is preferred over abruptly terminating the process because MongoDB can close resources and complete its shutdown procedures cleanly. In replica-set deployments, administrators should also consider whether the member is primary and whether a planned step- down is appropriate before maintenance. Among the commands shown, A and D are the two valid mongosh- based shutdown mechanisms.
Study Guide reference/topic:MongoDB Architecture and Core Operations - clean server shutdown, admin commands, and db.shutdownServer().

by Quincy at Oct 14, 2026, 02:50 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10