Under which condition is TCP preferred over UDP?
Choose an answer
Tap an option to check your answer.
Correct answer: TCP is used when data reliability is critical, and UDP is used when missing packets are acceptable..
Why this is the answer
TCP (Transmission Control Protocol) is connection-oriented, providing reliable, ordered, and error-checked delivery of data. It ensures that all data sent arrives at the destination in the correct sequence, retransmitting any lost segments. This makes TCP ideal for applications where data integrity is paramount, such as web browsing (HTTP), email (SMTP), and file transfer (FTP). UDP (User Datagram Protocol), on the other hand, is connectionless and offers a best-effort delivery service without guarantees of delivery, order, or error checking. While UDP is faster due to less overhead, it means missing packets are acceptable for applications like streaming video/audio, online gaming, and DNS lookups, where speed is prioritized over guaranteed delivery.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed