CompTIA Network+ (N10-007) — Question 221

Which of the following protocols can be both connection-oriented and connectionless?

Answer options

Correct answer: B

Explanation

The correct answer is B, as DNS can function using both UDP (connectionless) for queries and TCP (connection-oriented) for tasks such as zone transfers. Options A (FTP), C (DHCP), and D (HTTP) are primarily connection-oriented protocols, which do not support connectionless communication.