QA Interview Hub · Knowledge base · Quizzes · Українська

All topics

Networking interview questions

41 questions on Networking, from the basics to the hard ones. Answers and explanations are in the quiz and the knowledge base.

By level: Junior QA interview questions · Middle QA interview questions · Senior QA interview questions

TCP/IP and the path of a request

  1. A test throws ECONNREFUSED on localhost:3000. What does it mean? Junior
  2. How does TCP differ from UDP? Junior
  3. After a DNS record change some users see the new server and others still the old one. What is the most likely cause? Middle
  4. Which DNS record sets an alias: a name that points to another name rather than to an IP? Junior
  5. How long does a full TLS 1.3 handshake usually take (without session resumption), not counting TCP? Middle
  6. The browser shows ERR_CERT_COMMON_NAME_INVALID when https://10.0.0.5 is opened. Why? Middle
  7. In what order do the steps happen when a user types https://shop.example.com in a new tab? Junior
  8. Which ports do HTTP and HTTPS use by default? Junior
  9. A Node test fails with ENOTFOUND api.stage.example.test. What does it mean? Middle
  10. The new server is not in DNS yet, but https://shop.example.com must be checked on it. What does curl --resolve do? Middle
    curl --resolve shop.example.com:443:203.0.113.10 https://shop.example.com/health
  11. A Node test against staging fails with UNABLE_TO_VERIFY_LEAF_SIGNATURE while a browser opens the same site without warnings. What is the most likely cause? Middle
  12. What does a DNS record of type AAAA define? Junior

Take the quiz for this chapter · Read the explanation in the knowledge base

HTTP versions and infrastructure

  1. What is the main advantage of multiplexing in HTTP/2 over HTTP/1.1? Middle
  2. What problem of HTTP/2 does moving to HTTP/3 (QUIC) solve? Senior
  3. A request to the API consistently returns 504 after exactly 60 seconds. What is the best hypothesis? Middle
  4. How do 502 Bad Gateway and 504 Gateway Timeout differ? Middle
  5. Why does HTTP/1.1 use keep-alive (persistent connections)? Junior
  6. How does a reverse proxy differ from a forward proxy? Middle
  7. The API sits behind a trusted reverse proxy and the backend logs show the proxy IP instead of the client. Where do you get the real IP? Middle
  8. A server must temporarily redirect POST /orders to another URL so that the client repeats the POST with the same body. Which status fits? Middle
  9. How does Cache-Control: no-cache differ from no-store? Middle
  10. How do you make sure a request really went over HTTP/2 and not HTTP/1.1? Senior

Take the quiz for this chapter · Read the explanation in the knowledge base

WebSocket, SSE and real-time

  1. Which response code does the server return for a successful WebSocket handshake over HTTP/1.1? Junior
  2. A WebSocket in production drops after about a minute of idleness with code 1006. What should you do? Middle
  3. An app streams an LLM response to the user in chunks and needs nothing from the client except the initial request. What is the simplest option? Middle
  4. How do you intercept a WebSocket in Playwright and answer from the test without a real server? Middle
    await page.routeWebSocket('wss://example.com/ws', (ws) => {
      ws.onMessage((message) => {
        if (message === 'ping') ws.send('pong');
      });
    });
  5. A test checks a message received over WebSocket while the page loads but sometimes misses it. What should be fixed? Middle
  6. Why can a browser not send a token in the Authorization header when opening a WebSocket with new WebSocket(url)? Middle
  7. An EventSource (SSE) connection dropped because of the network. What does the browser do by default? Middle

Take the quiz for this chapter · Read the explanation in the knowledge base

Networking in QA work

  1. How do you check in Playwright that the app shows a "no connection" banner and recovers? Middle
  2. How does route.abort("connectionrefused") differ from route.fulfill({ status: 503 }) for a UI test? Middle
  3. How do you emulate a slow network (for example slow 3G) in Playwright for Chromium? Senior
  4. What does this curl show and why is it useful when analysing a slow request? Middle
    curl -sS -o /dev/null -w "dns=%{time_namelookup} tcp=%{time_connect} tls=%{time_appconnect} ttfb=%{time_starttransfer} total=%{time_total}\n" https://example.com
  5. Tests in CI occasionally fail with ECONNRESET when calling the API, locally they do not. Where do you start? Senior
  6. How do you check in Playwright that the app sent a request with the right body and header without replacing the response? Middle
  7. How do you delay a real API response by 3 seconds in Playwright without replacing its content? Middle
    await page.route('**/api/orders', async (route) => {
      // ???
    });
  8. In DevTools Network a request has Waiting for server response (TTFB) of 4 s and Content Download of 20 ms. Where is the bottleneck most likely? Middle
  9. Why does QA attach a HAR file to a bug report and what must be done before sending it? Middle
  10. What does curl -v show that plain curl does not? Junior
  11. tcpdump shows the client sending SYN to port 443 with no SYN-ACK or RST in reply. What does it mean? Senior
  12. A test inside a Docker container calls http://localhost:8080, where the API runs on the host, and gets ECONNREFUSED. Why? Junior

Take the quiz for this chapter · Read the explanation in the knowledge base