C100DBA Server Administration Practice Question
Which configuration file setting is used to specify the network interface and port that a mongod instance listens on?
⚠ Common exam trap
Candidates often confuse the 'net' section with 'replication' or 'systemLog' sections, forgetting that network binding and port configuration are strictly under the 'net' header.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
net
The 'net' section in the YAML configuration file provides granular control over how the MongoDB instance communicates over the network. Configuring the 'bindIp' and 'port' is a fundamental step in securing and reaching the database. Properly setting these parameters ensures that the server is accessible only on the intended interfaces, which is a critical security practice to prevent unauthorized access from untrusted networks or public interfaces.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
systemLog
Why it's wrong here
The 'systemLog' section is used to define logging behavior, such as the log file path, verbosity levels, and whether to append or rotate logs. It does not control network interfaces or port bindings, which are exclusively managed within the 'net' configuration block for the MongoDB instance.
- ✗
storage
Why it's wrong here
The 'storage' section defines how data is stored, including the 'dbPath' for data files, journaling settings, and WiredTiger engine parameters. It has no influence on network connectivity, port assignment, or interface binding, as these settings reside within the 'net' configuration section of the MongoDB YAML file.
- ✓
net
Why this is correct
The 'net' section is the standard configuration block for network-related settings. It specifically contains 'port' to define the listening port and 'bindIp' to restrict the interfaces the server listens on, ensuring that the MongoDB instance can be correctly reached by applications and administrative tools in a network.
- ✗
processManagement
Why it's wrong here
The 'processManagement' section contains settings related to how the process runs, such as enabling fork mode or configuring the PID file path. It does not manage networking or port binding for the MongoDB server, which are strictly handled within the 'net' configuration block of the server.
About these practice questions
This C100DBA question is part of Courseiva's 222-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official MongoDB exam blueprint
This C100DBA practice question is part of Courseiva's free MongoDB certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the C100DBA exam.