200-301 · Question #863
Under which condition is TCP preferred over UDP?
The correct answer is C. TCP is used when data reliability is critical, and UDP is used when missing packets are. TCP is preferred over UDP when the application demands guaranteed data delivery and reliability, even at the cost of potential latency.
Question
Options
- AUDP is used when low latency is optimal, and TCP is used when latency is tolerable.
- BTCP is used when dropped data is more acceptable, and UDP is used when data is accepted out-
- CTCP is used when data reliability is critical, and UDP is used when missing packets are
- DUDP is used when data is highly interactive, and TCP is used when data is time-sensitive.
How the community answered
(63 responses)- A3% (2)
- B8% (5)
- C87% (55)
- D2% (1)
Why each option
TCP is preferred over UDP when the application demands guaranteed data delivery and reliability, even at the cost of potential latency.
This statement is generally correct about the use cases but doesn't explain *why* TCP is preferred; it just states *when*.
This statement is incorrect; TCP is used when dropped data is *not* acceptable (it retransmits), and UDP is often used when out-of-order data might be handled by the application or is less critical, but TCP ensures in-order delivery.
TCP ensures reliable data transmission through features like acknowledgements, retransmissions of lost segments, and ordered delivery, which is critical for applications where data integrity and completeness are paramount. In contrast, UDP operates without these reliability mechanisms, making it suitable for applications where occasional missing packets are acceptable in favor of speed and lower overhead.
This statement incorrectly assigns characteristics; UDP is often used for highly interactive or time-sensitive data where some loss is acceptable for low latency (e.g., VoIP), while TCP, due to its overhead, might introduce more latency and is used when reliability is key, regardless of some latency.
Concept tested: TCP vs. UDP characteristics
Source: https://learn.microsoft.com/en-us/windows-server/networking/technologies/network-subsystem/tcp-udp-feature-overview
Topics
Community Discussion
No community discussion yet for this question.