Networks Senior interview questions and answers
75 questions for a Networks (Senior) interview - with correct answers, explanations and links to the docs.
- 1.A Node.js API behind a cloud load balancer returns rare 502s under steady load. What timeout mismatch is a classic cause?
- 2.Services in a private subnet get random connection timeouts to one external API at peak. What should you suspect first?
- 3.What is HTTP request smuggling?
- 4.What is web cache poisoning?
- 5.What do
stale-while-revalidateandstale-if-erroradd to caching? - 6.Why can HTTP/2 connection coalescing lead to a 421 Misdirected Request?
- 7.A product moves to HTTP/3. What must the test plan cover besides performance?
- 8.Why may a JVM service keep calling an old IP after a DNS failover?
- 9.How do you test that an app survives a DNS outage of its resolver?
- 10.What is a PMTUD black hole?
- 11.Retries are set at the client, gateway and service layers, three attempts each. What is the risk?
- 12.Why must deadlines or timeouts shrink at each layer of a call chain?
- 13.What is the main risk of an endpoint that fetches a user-supplied URL?
- 14.How does DNS rebinding bypass an SSRF check that validates the host name first?
- 15.Why is Host header injection dangerous for password reset emails?
- 16.A deploy restarts all WebSocket servers at once. What should the test catch?
- 17.How do you avoid dropping requests when a load balancer removes a node during deploy?
- 18.What does OCSP stapling improve?
- 19.What should certificate monitoring for a production site include?
- 20.TLS ends at the load balancer and traffic to backends is plain HTTP. What should security testing check?
- 21.In Kubernetes, a service can't reach the database after a new NetworkPolicy. What's the likely fix?
- 22.A service mesh sidecar adds its own retries and timeouts. Why does that matter to testers?
- 23.What does carrier-grade NAT mean for rate limiting by IP?
- 24.Why should an app avoid IPv4 literals in its code and config?
- 25.Why does Resource Timing show zeros for DNS and connect of a cross-origin request?
- 26.How should a team test behavior under a network partition between two regions?
- 27.A BGP route leak sends some traffic to a site through a far-away network. How would users notice?
- 28.What does a good network test matrix for a mobile app include?
- 29.A user taps 'Pay', the network drops, and the app retries. What must the backend have?
- 30.Database connections through a firewall drop after an hour of idling, and the next query hangs. What helps?
- 31.Why can a wrong system clock on a test machine break HTTPS and auth?
- 32.How does a team catch a CDN misconfiguration that caches personal pages?
- 33.What is origin shielding in a CDN?
- 34.Why is it risky that the origin server's IP is publicly known behind a CDN with a WAF?
- 35.What did the HTTP/2 'Rapid Reset' attack (2023) exploit?
- 36.How do you reproduce a bug seen only on a high-latency network in an automated test?
- 37.What is Happy Eyeballs (RFC 8305) and why does it matter for testers?
- 38.Why may long-polling requests be cut at exactly 30 s in one data center but not another?
- 39.What does the
Alt-Svcheader open as a test risk? - 40.How should a team handle certificate rotation for mTLS between services?
- 41.Why can open redirects matter even without direct damage?
- 42.A client reports 'it's slow'. What network data helps most to triage?
- 43.What is the risk of very low DNS TTLs on critical records?
- 44.Why should load tests set the
Hostheader and SNI to the real domain, not hit IPs? - 45.What does
Connection: Upgradestripping by an HTTP/2 hop cause for WebSockets? - 46.What is the danger of trusting the client IP from
X-Forwarded-Foreverywhere? - 47.What should a test for 'the API is unreachable' check in a single-page app?
- 48.Why may a CDN return a different TLS certificate than expected for a custom domain?
- 49.How do you check that a service handles slow clients (slowloris-style) safely?
- 50.What is the risk of enabling TLS session tickets without rotating their keys?
- 51.Why can geo-routing tests pass from the office and fail for real users?
- 52.A gRPC service works locally but fails through the company proxy. What's a common reason?
- 53.What does it mean to 'test the network as a dependency'?
- 54.Why should HAR files from production be stored and shared carefully?
- 55.How do you test that cookies don't leak to subdomains you don't control?
- 56.What is the effect of a TCP proxy that hides the client's IP from the backend?
- 57.Why must clients handle DNS answers with several A records?
- 58.What is the point of synthetic monitoring of an endpoint from several regions?
- 59.How should a team decide timeouts for a call to a third-party API?
- 60.Why is it useful to break DNS for a single dependency in staging?
- 61.What is the risk of
Access-Control-Allow-Originreflecting any Origin with credentials allowed? - 62.Why may HTTP/2 make a single slow backend hurt other requests on the same page?
- 63.What does chaos testing of the network show that load tests don't?
- 64.Why should the app's API host and its CDN assets host have separate monitoring?
- 65.A partner API allows calls only from a fixed IP list. What does it mean for your cloud setup?
- 66.What's the value of a tool like mitmproxy in automated tests?
- 67.Why does a VPN sometimes break only large uploads?
- 68.What should testers look for in
ServerandX-Powered-Byheaders? - 69.Why is it hard to reproduce network bugs reported by users on public Wi-Fi?
- 70.When is it reasonable to accept 'works on my machine' for a network issue?
- 71.What is the trade-off of terminating TLS at the edge for performance?
- 72.Why do mobile apps need a timeout on the TLS handshake, not just on the response?
- 73.How do you verify that HTTP downgrade attacks are blocked for a new subdomain?
- 74.Why can an API work for all users except those on one ISP?
- 75.What's the point of testing an app with a proxy that adds 2 s to only one dependency?