CompTIA Network+ · N10-009
Network+ Ports and Protocols Practice Questions
Knowing the common ports by heart earns quick points on the Network+ exam and makes firewall and troubleshooting scenarios much easier. These 15 original questions test the port numbers, transport protocols and secure alternatives listed in the N10-009 objectives. Each answer is explained.
What these 15 questions cover
- Remote access ports: SSH, Telnet and RDP
- DNS, DHCP and TFTP
- Mail and directory services ports
- SNMP and syslog monitoring ports
- SMB, SQL Server and SIP
- ICMP and IPsec protocols
Remote access ports
A network administrator is replacing Telnet with an encrypted protocol for managing switches from the command line. Which port must the firewall allow for the replacement protocol?
Remote access ports
Help desk staff cannot open remote desktop sessions to Windows workstations at a branch office after a new firewall is installed. Which port does the firewall need to allow?
DNS
After a firewall change, clients can still resolve names, but zone transfers between the primary and secondary DNS servers fail. Which traffic most likely needs to be allowed between the two servers?
DHCP
A technician is writing a firewall rule so that clients can obtain addresses from a DHCP server. Which ports does DHCP use?
Directory services
An application sends directory lookups to a domain controller in clear text. The security team requires those lookups to be protected with TLS. Which port should the application use?
Email ports
A technician is configuring a mail client to submit outgoing messages to the mail server over an encrypted connection. Which port from the Network+ objectives is used for secure SMTP?
SNMP
A monitoring server can poll switches successfully, but it never receives the unsolicited alerts the switches are configured to send. Which port should be opened toward the monitoring server?
File transfer ports
A technician is upgrading a router that downloads its firmware image from a TFTP server. Which port must be allowed to the server?
Syslog
Firewalls at several sites must send their event logs to a central log collector using the standard syslog protocol. Which port should the collector listen on?
Voice protocols
IP phones are configured to register with the call server using SIP signaling protected by TLS. Registration fails through a new firewall. Which port should be allowed?
File sharing ports
Users at a remote site cannot map network drives to a Windows file server at headquarters, although they can ping the server. Which port is most likely blocked?
Database ports
A web application in a screened subnet must query a Microsoft SQL Server database on the internal network. Which port should the internal firewall allow from the web server to the database server?
IPsec
A network engineer is building an IPsec VPN and needs the protocol that encrypts the packet payload to provide confidentiality. Which IPsec protocol does this?
ICMP
A technician can browse to a web server but cannot ping it. The firewall administrator says every TCP and UDP port to that server is open. Which protocol is most likely being blocked?
File transfer ports
An audit flags a nightly job that sends files in clear text over TCP port 21. The job must move to a protocol that runs over SSH. Which protocol and port should replace it?
All 15 Network+ Ports and Protocols questions with answers
Try the set above first. Then open any question below to check the answer and read why it is correct.
Remote access ports
1. A network administrator is replacing Telnet with an encrypted protocol for managing switches from the command line. Which port must the firewall allow for the replacement protocol?
- A. TCP 23
- B. TCP 3389
- C. UDP 69
- D. TCP 22
Show the answer
D. TCP 22
SSH is the encrypted replacement for Telnet and listens on TCP port 22. TCP 23 is Telnet itself, which sends everything, including passwords, in clear text.
Remote access ports
2. Help desk staff cannot open remote desktop sessions to Windows workstations at a branch office after a new firewall is installed. Which port does the firewall need to allow?
- A. TCP 22
- B. TCP 3389
- C. TCP 445
- D. TCP 1433
Show the answer
B. TCP 3389
Remote Desktop Protocol uses TCP port 3389. TCP 445 is also a Windows port, but it carries SMB file and printer sharing, not remote desktop sessions.
DNS
3. After a firewall change, clients can still resolve names, but zone transfers between the primary and secondary DNS servers fail. Which traffic most likely needs to be allowed between the two servers?
- A. TCP 53
- B. UDP 67
- C. UDP 123
- D. TCP 389
Show the answer
A. TCP 53
DNS uses port 53. Ordinary queries normally use UDP, while zone transfers use TCP because they move a large amount of data reliably. Working queries with failing transfers points to TCP 53 being blocked. UDP 67 is DHCP.
DHCP
4. A technician is writing a firewall rule so that clients can obtain addresses from a DHCP server. Which ports does DHCP use?
- A. TCP 67 and TCP 68
- B. UDP 53 and UDP 67
- C. UDP 67 and UDP 68
- D. UDP 68 and UDP 69
Show the answer
C. UDP 67 and UDP 68
DHCP uses UDP, with the server listening on port 67 and the client on port 68. It does not use TCP, because a client that has no address yet relies on broadcasts. UDP 69 is TFTP and UDP 53 is DNS.
Directory services
5. An application sends directory lookups to a domain controller in clear text. The security team requires those lookups to be protected with TLS. Which port should the application use?
- A. TCP 389
- B. TCP 636
- C. TCP 443
- D. TCP 445
Show the answer
B. TCP 636
LDAPS, which is LDAP over TLS, uses TCP port 636. TCP 389 is standard LDAP, the unencrypted protocol the application is using now. TCP 443 is also protected by TLS, but it carries HTTPS, not directory queries.
Email ports
6. A technician is configuring a mail client to submit outgoing messages to the mail server over an encrypted connection. Which port from the Network+ objectives is used for secure SMTP?
- A. TCP 25
- B. TCP 110
- C. TCP 993
- D. TCP 587
Show the answer
D. TCP 587
TCP 587 is the mail submission port that clients use to send outgoing mail with TLS, and it is the port the N10-009 objectives list for SMTPS. Some references also list TCP 465 for SMTP over implicit TLS. TCP 25 is standard SMTP, used for relay between mail servers. TCP 110 and TCP 993 are for retrieving mail with POP3 and secure IMAP.
SNMP
7. A monitoring server can poll switches successfully, but it never receives the unsolicited alerts the switches are configured to send. Which port should be opened toward the monitoring server?
- A. UDP 161
- B. UDP 514
- C. UDP 162
- D. UDP 123
Show the answer
C. UDP 162
SNMP traps are sent from the device to the manager on UDP port 162. UDP 161 is the port the agents listen on for polling, and polling is already working. UDP 514 is syslog.
File transfer ports
8. A technician is upgrading a router that downloads its firmware image from a TFTP server. Which port must be allowed to the server?
- A. UDP 69
- B. TCP 21
- C. TCP 22
- D. UDP 161
Show the answer
A. UDP 69
TFTP is a simple file transfer protocol with no authentication that uses UDP port 69. TCP 21 is the FTP control port, which is a different and more capable protocol.
Syslog
9. Firewalls at several sites must send their event logs to a central log collector using the standard syslog protocol. Which port should the collector listen on?
- A. UDP 162
- B. UDP 514
- C. TCP 445
- D. TCP 636
Show the answer
B. UDP 514
Syslog uses UDP port 514 by default. UDP 162 is close in purpose because it also carries device notifications, but it is used for SNMP traps, not syslog messages.
Voice protocols
10. IP phones are configured to register with the call server using SIP signaling protected by TLS. Registration fails through a new firewall. Which port should be allowed?
- A. TCP 5060
- B. TCP 3389
- C. TCP 1433
- D. TCP 5061
Show the answer
D. TCP 5061
SIP uses port 5060 for unencrypted signaling and port 5061 for signaling over TLS. Because the phones are set to use TLS, opening 5061 is the fix. Opening 5060 would only help phones using unencrypted SIP.
File sharing ports
11. Users at a remote site cannot map network drives to a Windows file server at headquarters, although they can ping the server. Which port is most likely blocked?
- A. TCP 389
- B. TCP 3389
- C. TCP 445
- D. TCP 443
Show the answer
C. TCP 445
Windows file sharing uses SMB over TCP port 445. TCP 3389 is Remote Desktop Protocol, which would let users log in to the server remotely but is not used for mapped drives.
Database ports
12. A web application in a screened subnet must query a Microsoft SQL Server database on the internal network. Which port should the internal firewall allow from the web server to the database server?
- A. TCP 1433
- B. TCP 3389
- C. TCP 636
- D. TCP 445
Show the answer
A. TCP 1433
Microsoft SQL Server listens on TCP port 1433 by default. TCP 3389 is Remote Desktop Protocol, which administrators may use to manage the server but which carries no database queries.
IPsec
13. A network engineer is building an IPsec VPN and needs the protocol that encrypts the packet payload to provide confidentiality. Which IPsec protocol does this?
- A. Authentication Header (AH)
- B. Encapsulating Security Payload (ESP)
- C. Generic Routing Encapsulation (GRE)
- D. Internet Key Exchange (IKE)
Show the answer
B. Encapsulating Security Payload (ESP)
ESP encrypts the payload and can also provide integrity and authentication. AH is the tempting wrong answer, but it provides integrity and authentication only and does not encrypt anything. IKE negotiates the keys and security associations.
ICMP
14. A technician can browse to a web server but cannot ping it. The firewall administrator says every TCP and UDP port to that server is open. Which protocol is most likely being blocked?
- A. GRE
- B. ESP
- C. ICMP
- D. ARP
Show the answer
C. ICMP
Ping uses ICMP echo request and echo reply messages. ICMP is its own IP protocol and has no TCP or UDP port numbers, so opening every port does not permit it. ARP works only within the local segment and is not filtered as a routed protocol.
File transfer ports
15. An audit flags a nightly job that sends files in clear text over TCP port 21. The job must move to a protocol that runs over SSH. Which protocol and port should replace it?
- A. TFTP on UDP 69
- B. FTP on TCP 20
- C. Telnet on TCP 23
- D. SFTP on TCP 22
Show the answer
D. SFTP on TCP 22
SFTP is the SSH File Transfer Protocol. It runs inside an SSH session on TCP port 22, so both the login and the data are encrypted. TFTP is the tempting choice because of its name, but it has no encryption or authentication.
More Network+ practice questions by topic
Networking Concepts
15 questions, Domain 1 (23% of the exam)
Network Implementation
15 questions, Domain 2 (20% of the exam)
Network Operations
15 questions, Domain 3 (19% of the exam)
Network Security
15 questions, Domain 4 (14% of the exam)
Network Troubleshooting
15 questions, Domain 5 (24% of the exam)
Subnetting
15 questions
Frequently asked questions
- Which ports do I need to memorize for Network+ N10-009?
- The objectives list FTP 20/21, SSH and SFTP 22, Telnet 23, SMTP 25, DNS 53, DHCP 67/68, TFTP 69, HTTP 80, NTP 123, SNMP 161/162, LDAP 389, HTTPS 443, SMB 445, Syslog 514, SMTPS 587, LDAPS 636, SQL Server 1433, RDP 3389 and SIP 5060/5061.
- Do I need to know whether a port uses TCP or UDP?
- Yes, for the common ones. Know that DHCP, TFTP, NTP, SNMP and syslog use UDP, that DNS uses both, and that SSH, HTTPS, SMB, RDP and LDAP use TCP. Firewall scenarios often hinge on choosing the right transport protocol as well as the right number.
- What is the best way to memorize port numbers?
- Learn them in pairs of insecure and secure versions, such as Telnet 23 and SSH 22, HTTP 80 and HTTPS 443, or LDAP 389 and LDAPS 636. Then drill them with flashcards for a few minutes a day and practice with scenario questions like the ones on this page.
Practice Network+ PBQs
Performance-based questions (PBQs) are the hands-on simulations on the real exam. Practice them in our PBQ labs.
More Network+ resources
Want more Network+ Ports and Protocols questions?
Practice by domain in the full question bank, take timed mock exams and see exactly where to focus next.
Get started