yoklainterview sim

Backend Networking / HTTP Interview Questions

75 verified Backend Networking / HTTP interview questions — solve with answers, learn from explanations, test yourself in a real simulation.

Try the real simulation →

Sample questions

Networking / HTTPDifficulty 1
What is the key difference between TCP and UDP?
  • aUDP delivers every packet exactly once and in order, while TCP prioritizes raw speed over strict ordering
  • bTCP provides reliable, ordered delivery over a connection; UDP sends datagrams without delivery guarantees
  • cTCP can only be used between servers, while UDP is meant for browser-to-server traffic
  • dUDP encrypts its payload by default, while TCP leaves encryption to the application
Explanation:TCP establishes a connection and uses acknowledgements and retransmission to guarantee that data arrives complete and in order; UDP just sends independent datagrams, trading those guarantees for lower overhead. Option (a) swaps the two protocols — a classic trap.
Networking / HTTPDifficulty 2
You are adding live video streaming to a product. Losing an occasional frame is acceptable, but added delay is not. Which transport protocol fits better, and why?
  • aTCP — video frames must arrive complete and in the exact order they were sent, so reliable delivery is worth any extra delay
  • bTCP — UDP packets are usually blocked outside local networks
  • cUDP — it reserves dedicated bandwidth for the stream so frames arrive faster
  • dUDP — waiting for a lost frame to be retransmitted would make it arrive too late to be useful
Explanation:For real-time media, a retransmitted frame usually arrives after its display time has passed, so dropping it and moving on is better — which is exactly UDP's model. TCP (a) would stall the stream while recovering lost packets, and UDP reserves no bandwidth (c).
Networking / HTTPDifficulty 3
What actually happens during TCP's three-way handshake (SYN, SYN-ACK, ACK)?
  • aThe client and server negotiate which cipher will encrypt the traffic
  • bThe server validates the client's credentials before accepting any data
  • cBoth sides agree to open a connection and synchronize the initial sequence numbers used for ordered delivery
  • dThe client sends its request three times so at least one copy is guaranteed to arrive
Explanation:The handshake establishes that both ends are ready and exchanges initial sequence numbers, which later let TCP detect loss and preserve ordering. Cipher negotiation (a) belongs to the TLS handshake, which runs only after the TCP connection exists.
Networking / HTTPDifficulty 1
What is the purpose of a port number in TCP/IP networking?
  • aIt identifies which application (process) on the host should receive the traffic
  • bIt uniquely identifies the machine on the network, taking priority over the IP address
  • cIt determines the order in which packets are reassembled at the destination
  • dIt selects which physical network interface the traffic goes through
Explanation:The IP address locates the machine; the port directs traffic to a specific service on it — 80 and 443 for web servers, for example. Packet ordering (c) is handled by TCP sequence numbers, not ports.
Networking / HTTPDifficulty 1
By default, which ports do HTTP and HTTPS use?
  • a80 for HTTP, 443 for HTTPS
  • b443 for HTTP, 80 for HTTPS
  • c8080 for HTTP, 8443 for HTTPS
  • d25 for HTTP, 22 for HTTPS
Explanation:The defaults are 80 and 443, which is why URLs normally omit them. 8080 and 8443 (c) are common alternative or development ports but not the defaults; 25 and 22 (d) belong to SMTP and SSH.
Networking / HTTPDifficulty 1
What is the primary job of DNS?
  • aChoosing the fastest network route for each packet
  • bVerifying that a website's TLS certificate is valid
  • cTranslating domain names like example.com into IP addresses
  • dAssigning an IP address to a machine when it joins a network
Explanation:DNS resolves human-readable names to IP addresses so clients know where to connect. Handing out addresses to machines joining a network (d) is DHCP's job — a frequent mix-up.

Test yourself against the 3300-question Backend bank.

Start interview