Which port and protocol is commonly used by PostgreSQL databases?

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 PostgreSQL databases?

Explanation:
PostgreSQL uses TCP for client-server communication, providing reliable, ordered delivery of data. The default port it listens on is 5432, which is what clients connect to unless the server is configured to use another port. The other options map to different services—445 is for Windows file sharing (SMB), 27017 is the MongoDB default, and 1521 is Oracle’s listener—so they aren’t correct for PostgreSQL. Therefore, 5432 TCP is the standard choice for PostgreSQL.

PostgreSQL uses TCP for client-server communication, providing reliable, ordered delivery of data. The default port it listens on is 5432, which is what clients connect to unless the server is configured to use another port. The other options map to different services—445 is for Windows file sharing (SMB), 27017 is the MongoDB default, and 1521 is Oracle’s listener—so they aren’t correct for PostgreSQL. Therefore, 5432 TCP is the standard choice for PostgreSQL.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy