Which port is used by MongoDB?

Study for the CPSA Port Numbers Exam. Practice with flashcards and multiple choice questions, each with hints and explanations. Get ready for your test!

Multiple Choice

Which port is used by MongoDB?

Explanation:
MongoDB listens on port 27017 by default for client connections. This is the standard listening port assigned to the mongod process, so when you set up MongoDB without changing settings, clients connect to 27017. You can configure MongoDB to use a different port, but the out-of-the-box and most common/default port is 27017, which is why this option is the best answer. For context, the other ports shown belong to completely different services—636 is LDAP over SSL, 3389 is Remote Desktop Protocol, and 445 is SMB for Windows file sharing—helpful for memorization but not related to MongoDB.

MongoDB listens on port 27017 by default for client connections. This is the standard listening port assigned to the mongod process, so when you set up MongoDB without changing settings, clients connect to 27017. You can configure MongoDB to use a different port, but the out-of-the-box and most common/default port is 27017, which is why this option is the best answer. For context, the other ports shown belong to completely different services—636 is LDAP over SSL, 3389 is Remote Desktop Protocol, and 445 is SMB for Windows file sharing—helpful for memorization but not related to MongoDB.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy