Networks Middle interview questions and answers
75 questions for a Networks (Middle) interview - with correct answers, explanations and links to the docs.
- 1.What's the difference between a recursive resolver and an authoritative DNS server?
- 2.You plan to move a site to a new IP tomorrow. What should you do with the A record's TTL today?
- 3.Why can't a bare domain like
example.comusually be a CNAME? - 4.After a DNS change, some testers see the new site and others the old one. Why?
- 5.How can you send a request to a specific server IP while keeping the real host name, without touching DNS?
- 6.What is SNI in TLS?
- 7.Chrome on desktop opens the site fine, but an Android app fails with a certificate error. What is a common cause?
- 8.What does the Subject Alternative Name (SAN) of a certificate list?
- 9.Does a wildcard certificate for
*.example.comcoverapi.v2.example.com? - 10.What does the
Strict-Transport-Security(HSTS) header do? - 11.How many round trips does a fresh TLS 1.3 handshake need before app data?
- 12.Why is 0-RTT early data in TLS 1.3 risky for a POST that places an order?
- 13.What is certificate pinning in a mobile app?
- 14.What is mutual TLS (mTLS)?
- 15.What's the difference between 302 and 307 redirects?
- 16.A login form POSTs to an http:// URL that redirects with 301 to https://. What can go wrong?
- 17.What does an
ETagresponse header enable? - 18.What does
Vary: Accept-Languagetell caches? - 19.After a deploy, users still get the old JavaScript file. What is the usual fix?
- 20.What does 206 Partial Content mean?
- 21.What should a client do with a 429 response that has
Retry-After: 30? - 22.Why can HTTP/2 still suffer from head-of-line blocking?
- 23.What is a benefit of QUIC on mobile networks?
- 24.How does a browser find out that a server supports HTTP/3?
- 25.What does the
X-Forwarded-Forheader contain? - 26.What's the difference between L4 and L7 load balancers?
- 27.A report export takes 90 s and users get 504 at exactly 60 s. What is the likely cause?
- 28.WebSockets work locally but fail behind the company's nginx. What is often missing?
- 29.What's the difference between WebSockets and Server-Sent Events?
- 30.A CORS response has
Access-Control-Allow-Origin: *and the request sends cookies. What happens? - 31.What does
SameSite=Laxon a session cookie do? - 32.Why should HAR files from DevTools be handled carefully in bug reports?
- 33.How can you check how a page behaves when one API call fails, using only DevTools?
- 34.Which Linux tool can add delay, loss and jitter to a network interface?
- 35.What is Toxiproxy used for in tests?
- 36.A mobile app hangs for 60 s when the network drops mid-request. What should testers report?
- 37.What is MTU, and what can a too-small path MTU cause?
- 38.What is the TCP TIME_WAIT state?
- 39.What does a TCP RST (reset) mean for the client?
- 40.What does TCP slow start do?
- 41.Why does a large file download faster on a nearby server than on a far one, even with the same bandwidth?
- 42.What's the risk of testing an app only on IPv4?
- 43.What is split-horizon DNS?
- 44.What does DNS over HTTPS (DoH) change for testing?
- 45.What is a negative DNS cache?
- 46.How can Wireshark help when DevTools shows nothing useful?
- 47.Why do some proxy-based tests break with HTTP/3?
- 48.What does Certificate Transparency give site owners and testers?
- 49.What does a 'self-signed certificate' warning on staging teach about production?
- 50.What does
Cache-Control: s-maxage=600affect? - 51.After an article is updated, the CDN still serves the old version. What are the usual options?
- 52.Why may a request work with curl but fail from the app with a TLS error?
- 53.What does
curl -k(--insecure) do, and why is it a red flag in production code? - 54.How does chunked transfer encoding work?
- 55.Why can an app under load see 'too many open files' or port exhaustion errors?
- 56.What does the 'Protocol' column in DevTools Network help you check?
- 57.Why is a request stuck in 'Stalled' or 'Queueing' in DevTools on HTTP/1.1?
- 58.How do you see WebSocket messages in Chrome DevTools?
- 59.Why may a site behave differently for testers on the office network than for users at home?
- 60.What is a sticky session on a load balancer?
- 61.What do load balancer health checks do?
- 62.Why can
pingfail while the website works fine? - 63.What does anycast mean for DNS and CDNs?
- 64.Why should a hard-coded IP address in an app config worry testers?
- 65.What does
Connection: closein a response mean? - 66.Why is it useful to test an app behind a captive portal (hotel or airport Wi-Fi)?
- 67.How can you test a site from another region without a VPN?
- 68.Why may DevTools show a request as 'canceled'?
- 69.What does
Accept-Encoding: gzip, brin a request mean? - 70.Why should testers check both
wwwand non-wwwversions of a site? - 71.What does a client's retry loop need besides a retry count, to be safe for the server?
- 72.Why should a QA engineer check the response to a request with a very long URL?
- 73.What happens when a proxy buffers the whole response before passing it on?
- 74.A user's session drops every time they switch from Wi-Fi to mobile data. What may the backend be doing?
- 75.What can a QA engineer learn from the
Server-Timingheader in DevTools?