Which port and protocol is commonly used by MongoDB?

Prepare for the CPSA Port Numbers Exam with quizzes on port numbers, services, and protocols. Each question is accompanied by hints and detailed explanations. Get exam-ready with our comprehensive study tool!

Multiple Choice

Which port and protocol is commonly used by MongoDB?

Explanation:
MongoDB’s database server (mongod) listens on the default port 27017 and uses TCP for reliable, connection-oriented communication between clients and the database. This port is the standard, widely-recognized starting point for MongoDB connections, though it can be changed if needed. The other ports correspond to different services—3389 is for Remote Desktop Protocol, 1521 for Oracle’s database listener, and 1883 for MQTT—so they aren’t MongoDB by default.

MongoDB’s database server (mongod) listens on the default port 27017 and uses TCP for reliable, connection-oriented communication between clients and the database. This port is the standard, widely-recognized starting point for MongoDB connections, though it can be changed if needed. The other ports correspond to different services—3389 is for Remote Desktop Protocol, 1521 for Oracle’s database listener, and 1883 for MQTT—so they aren’t MongoDB by default.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy