Networks Junior interview questions and answers

75 questions for a Networks (Junior) interview - with correct answers, explanations and links to the docs.

  1. 1.What does an IP address identify?
  2. 2.What is a port number used for?
  3. 3.Which port does HTTPS use by default?
  4. 4.Which port does DNS use by default?
  5. 5.What is the main difference between TCP and UDP?
  6. 6.How does a TCP connection start?
  7. 7.What does DNS do?
  8. 8.Which DNS record maps a name to an IPv4 address?
  9. 9.What is a CNAME record?
  10. 10.What is the TTL of a DNS record?
  11. 11.A tester wants test.example.com to point to a staging server only on their own machine. What is the simplest way?
  12. 12.What address does localhost usually resolve to?
  13. 13.Which of these is a private IPv4 address that can't be reached directly from the internet?
  14. 14.Why was IPv6 introduced?
  15. 15.What does NAT on a home router do?
  16. 16.What does DHCP do?
  17. 17.What does the ping command check?
  18. 18.What does traceroute (tracert on Windows) show?
  19. 19.What is the default gateway?
  20. 20.What are the two main parts of an HTTP message?
  21. 21.What do HTTP status codes in the 4xx range mean?
  22. 22.What's the difference between 301 and 302 redirects?
  23. 23.A page through a reverse proxy returns 502 Bad Gateway. What does it usually mean?
  24. 24.What does 504 Gateway Timeout mean?
  25. 25.What does 304 Not Modified mean?
  26. 26.What does the Content-Type header describe?
  27. 27.What is HTTPS?
  28. 28.The browser shows NET::ERR_CERT_DATE_INVALID. What is the likely cause?
  29. 29.What does a certificate authority (CA) do?
  30. 30.An HTTPS page loads an image over plain HTTP. What does the browser do?
  31. 31.In the URL https://shop.example.com:8443/cart?item=5#top, what is 8443?
  32. 32.Is the URL fragment (#section) sent to the server?
  33. 33.Why are spaces in query parameters written as %20 or +?
  34. 34.Which DevTools Network option keeps requests listed after a page reload or redirect?
  35. 35.What does 'Disable cache' in DevTools Network do?
  36. 36.How do you test a page on a slow mobile connection in Chrome?
  37. 37.In DevTools Network, a request shows '(disk cache)' in the Size column. What does it mean?
  38. 38.What is 'Copy as cURL' in DevTools useful for?
  39. 39.What does the Initiator column in DevTools Network show?
  40. 40.What does the Waterfall in DevTools Network show?
  41. 41.What does curl -I https://example.com do?
  42. 42.What does curl -v add?
  43. 43.What is a CORS error in the browser console about?
  44. 44.What makes two URLs the same origin?
  45. 45.Why does the browser send an OPTIONS request before some API calls?
  46. 46.What is a cookie?
  47. 47.What does the HttpOnly cookie attribute do?
  48. 48.What is latency in networking?
  49. 49.What is packet loss?
  50. 50.What is a CDN?
  51. 51.What is a reverse proxy?
  52. 52.Why do testers use proxies like Charles, Fiddler or mitmproxy?
  53. 53.To read HTTPS traffic of a mobile app in Charles, what is usually needed?
  54. 54.What does 'Connection refused' usually mean?
  55. 55.The browser shows ERR_NAME_NOT_RESOLVED. Where is the problem?
  56. 56.What does a firewall do?
  57. 57.Why might a tester use a VPN during testing?
  58. 58.What does gzip or br in the Content-Encoding header mean?
  59. 59.What does HTTP keep-alive (a persistent connection) do?
  60. 60.What's the main gain of HTTP/2 over HTTP/1.1?
  61. 61.What transport does HTTP/3 use?
  62. 62.What are WebSockets used for?
  63. 63.Which HTTP methods are idempotent?
  64. 64.What does Cache-Control: no-store tell the browser?
  65. 65.What does the OSI model describe?
  66. 66.At which layer do TCP and UDP work?
  67. 67.What is a MAC address?
  68. 68.What is bandwidth?
  69. 69.Why should testers check an app with the network switched off ('Offline' in DevTools)?
  70. 70.An API call works in Postman but fails in the browser with a CORS error. Why?
  71. 71.What is the TTFB of a request?
  72. 72.What is a subnet mask such as 255.255.255.0 (/24) for?
  73. 73.Which tool lets you query DNS records directly from the terminal?
  74. 74.What does the User-Agent request header contain?
  75. 75.Why can a website be fine for you but down for a user in another country?