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
- A test throws ECONNREFUSED on localhost:3000. What does it mean? Junior
- How does TCP differ from UDP? Junior
- After a DNS record change some users see the new server and others still the old one. What is the most likely cause? Middle
- Which DNS record sets an alias: a name that points to another name rather than to an IP? Junior
- How long does a full TLS 1.3 handshake usually take (without session resumption), not counting TCP? Middle
- The browser shows ERR_CERT_COMMON_NAME_INVALID when https://10.0.0.5 is opened. Why? Middle
- In what order do the steps happen when a user types https://shop.example.com in a new tab? Junior
- Which ports do HTTP and HTTPS use by default? Junior
- A Node test fails with ENOTFOUND api.stage.example.test. What does it mean? Middle
- 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
- 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
- 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
- What is the main advantage of multiplexing in HTTP/2 over HTTP/1.1? Middle
- What problem of HTTP/2 does moving to HTTP/3 (QUIC) solve? Senior
- A request to the API consistently returns 504 after exactly 60 seconds. What is the best hypothesis? Middle
- How do 502 Bad Gateway and 504 Gateway Timeout differ? Middle
- Why does HTTP/1.1 use keep-alive (persistent connections)? Junior
- How does a reverse proxy differ from a forward proxy? Middle
- 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
- 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
- How does Cache-Control: no-cache differ from no-store? Middle
- 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
- Which response code does the server return for a successful WebSocket handshake over HTTP/1.1? Junior
- A WebSocket in production drops after about a minute of idleness with code 1006. What should you do? Middle
- 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
- 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');
});
});
- A test checks a message received over WebSocket while the page loads but sometimes misses it. What should be fixed? Middle
- Why can a browser not send a token in the Authorization header when opening a WebSocket with new WebSocket(url)? Middle
- 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
- How do you check in Playwright that the app shows a "no connection" banner and recovers? Middle
- How does route.abort("connectionrefused") differ from route.fulfill({ status: 503 }) for a UI test? Middle
- How do you emulate a slow network (for example slow 3G) in Playwright for Chromium? Senior
- 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
- Tests in CI occasionally fail with ECONNRESET when calling the API, locally they do not. Where do you start? Senior
- How do you check in Playwright that the app sent a request with the right body and header without replacing the response? Middle
- 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) => {
// ???
});
- 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
- Why does QA attach a HAR file to a bug report and what must be done before sending it? Middle
- What does curl -v show that plain curl does not? Junior
- tcpdump shows the client sending SYN to port 443 with no SYN-ACK or RST in reply. What does it mean? Senior
- 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