Back to sections

Networking Quiz

Test what you actually know about Networking. Free sample questions below, from easy to hard, with instant explanations.

easy

1. Your team is on a live video call while someone is also downloading a large file in the background. The video call gets choppy and audio cuts out occasionally, but the file download finishes perfectly with all data intact. Which best explains this difference?

Video calls use TCP and file downloads use UDP
Both use the same protocol, but the video call simply uses more bandwidth
Video calls typically use UDP, which favors speed and can drop data, while file downloads use TCP, which resends lost data to guarantee accuracyCorrect
The router intentionally deprioritizes video traffic

UDP is used for real time things like calls because it favors speed, dropped packets just get skipped so the call keeps flowing. TCP is used for downloads because it guarantees every byte arrives correctly, resending anything lost even if that means waiting.

medium

2. A team deploys a new virtual server in a cloud provider. The application is running correctly and the operating system firewall shows no blocking rules, yet nobody outside the cloud network can connect to it on port 443. What should they check next?

The cloud provider's security group or network rules, which act as an additional firewall layer controlling traffic before it reaches the server's own OS firewallCorrect
Whether the application code has a typo
Whether the client's antivirus is blocking the connection
Whether the domain name is spelled correctly

Cloud providers add their own network level firewall, often called a security group, that filters traffic before it ever reaches the virtual machine's own operating system firewall, so both layers need to allow the traffic. Since the OS firewall already shows no blocks, the cloud provider's separate security group is the more likely remaining culprit.

hard

3. A /27 was allocated to a point-to-point WAN link that only ever needs 2 usable host addresses. What's the more efficient subnet choice, and what does it save?

A /26 instead - this actually uses MORE space, not less
A /28 instead - saving 1 bit of address space per link
A /30 (2 usable hosts) instead - saving 3 bits of address space per linkCorrect
There is no more efficient option; /27 is already minimal for a WAN link

A point-to-point link only ever needs exactly 2 usable addresses, one for each end. A /30 gives you precisely that (4 total addresses, minus the 2 reserved ones), while a /27 wastes 28 addresses per link that will never be used, and that waste compounds fast once you have many such links across a network.

easy

4. A new employee can browse the internet fine but cannot connect to the company's internal database server on port 5432, even though the database is running correctly. Other employees on the same network connect without issues. What should be checked first?

Whether the employee's laptop has a valid IP address
Whether the database software needs to be reinstalled
Whether the firewall rules allow that employee's device to reach port 5432Correct
Whether the DNS server is resolving names correctly

Since general internet access works and coworkers can connect fine, the issue is most likely a firewall rule scoped to that specific device or user, blocking traffic to port 5432. DNS and basic connectivity are already proven to work since browsing succeeds.

medium

5. A company puts a single Nginx server in front of three backend application servers. External users only ever interact with Nginx's address, never directly with the app servers, and Nginx decides which backend should handle each request. What role is Nginx playing here?

A VPN gateway, encrypting traffic between offices
A forward proxy, hiding the identity of external users from the backend
A DNS resolver, translating backend server names
A reverse proxy, receiving external requests and forwarding them to the appropriate backend serverCorrect

A reverse proxy sits in front of one or more backend servers and forwards incoming requests to them, while hiding the backend servers' details from the outside world, which exactly matches this Nginx setup. A forward proxy instead sits in front of clients to manage their outgoing requests, the opposite direction.

hard

6. A backend service that makes many short-lived outbound HTTP calls to another internal service starts failing intermittently, but only under high load. `ss -tan state time-wait | wc -l` shows tens of thousands of sockets. What's the most likely root cause, and the standard fix?

Ephemeral port exhaustion from accumulating TIME_WAIT sockets; reuse connections with keep-alive or pooling instead of opening a new one per callCorrect
The remote service is slow to respond; increase the client's request timeout
A duplex mismatch between the client and switch is causing retransmissions
The client's DNS cache has expired and it's re-resolving on every request

Every short-lived connection the client closes first spends a couple of minutes in TIME_WAIT to guarantee delayed packets don't get confused with a future connection, and each of those sockets ties up one of a finite number of local ephemeral ports for that destination. Under enough concurrent short connections, the port pool gets exhausted and new outbound connections start failing. The standard fix is to stop opening a fresh connection per call: reuse persistent keep-alive connections or a connection pool so far fewer sockets ever need to enter TIME_WAIT in the first place.

easy

7. A user reports they can reach websites by typing the IP address directly, but not by typing the domain name. What's the likely cause?

The default gateway is down
The switch port is in the wrong VLAN
The subnet mask is incorrect
DNS resolution is failingCorrect

If typing the raw IP address works, that proves the network connection itself is fine, the only missing piece is translating the domain name INTO that IP address, and that translation job belongs entirely to DNS.

medium

8. A host's default gateway is configured correctly, and the switch has the right VLANs defined, but the host still can't reach devices on a different VLAN. What's most likely missing?

The host needs a static ARP entry
DHCP needs to be reconfigured on the host VLAN
The switch needs STP disabled
Inter-VLAN routing (an SVI, router-on-a-stick, or Layer 3 switching) has not been configuredCorrect

VLANs exist specifically to keep traffic separated at Layer 2, and a plain switch has no way to move traffic between them on its own. Something has to actually route between VLANs at Layer 3, whether that's a dedicated router (router-on-a-stick) or a Layer 3 switch configured with its own virtual interfaces (SVIs), and without that piece, devices on different VLANs simply can't reach each other.

hard

9. A GRE tunnel works fine for small pings, but larger packets from certain applications intermittently fail or get fragmented oddly. What's the classic cause and fix?

The tunnel needs to be rebuilt from scratch since GRE tunnels degrade over time
The issue is unrelated to MTU and is caused by an ACL blocking large packets specifically
GRE simply does not support any packet larger than a standard ping
GRE's encapsulation overhead reduces the effective MTU, causing fragmentation issues - fix by adjusting the tunnel MTU or using TCP MSS clampingCorrect

GRE wraps your original packet inside its own extra header, which adds a bit of size on top of what was already there. Small pings never get big enough to hit the ceiling, but larger real traffic can end up exceeding the physical link's maximum packet size once GRE's overhead is added, causing fragmentation issues, adjusting the tunnel's MTU or clamping the TCP segment size is the standard fix.

easy

10. Which sequence correctly describes the standard TCP three-way handshake used to establish a new connection?

SYN, ACK-ACK, FIN-ACK
ACK, SYN-ACK, SYN
SYN, SYN-ACK, ACKCorrect
SYN, ACK, FIN

The client first sends a SYN segment to signal it wants to open a connection and to propose an initial sequence number. The server replies with SYN-ACK, acknowledging the client's SYN while sending its own SYN, and the client finishes with a plain ACK, at which point the connection reaches the ESTABLISHED state. FIN segments are unrelated to setup, they belong to the separate process used later to gracefully close a connection.

Ready for the real thing?

Take the full timed Networking quiz and see your score.

    Welcome to OpsQuiz!

    Real scenario-based DevOps questions, hands-on practice, and clear explanations for every answer.