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