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. A DevOps engineer deploys a new service on port 8443. nc -zv localhost 8443 succeeds, but curl -k https://localhost:8443 fails with SSL_ERROR_SYSCALL. What is the MOST probable cause?

Firewall blocks localhost.
curl requires SNI for port 8443.
TLS certificate is expired.
The service is HTTP, not HTTPS.Correct

nc -zv only checks that something is listening on the port and will accept a TCP connection, it says nothing about what LANGUAGE that something speaks. If the service is actually plain HTTP but curl tries to speak encrypted TLS to it, the service has no idea what curl just sent, and the connection gets abruptly killed, which is exactly what SSL_ERROR_SYSCALL means here.

medium

2. A team wants example.com, the bare apex domain rather than a subdomain, to point directly at their CDN's hostname using a CNAME record, but their DNS provider rejects the configuration. What's the underlying reason this doesn't work?

CDNs only accept traffic from A records, never CNAMEs
CNAME records are deprecated in favor of SRV records
The domain's TTL is set too low for a CNAME to propagate
A CNAME record cannot coexist with the other records, like NS and SOA, required at a zone's apexCorrect

DNS rules require that when a name has a CNAME record, that record must be the ONLY record for that name, no other record type is allowed alongside it. The zone apex always needs NS and SOA records to function at all, so a CNAME can never legally live there. This is exactly why providers offer proprietary workarounds like ALIAS or ANAME records, which behave like a CNAME to configure but get resolved server-side into a plain A record at the apex.

hard

3. 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

4. Two switches are connected by a link that needs to carry traffic for multiple VLANs simultaneously. What should that port be configured as?

A trunk port (802.1Q)Correct
An access port
A port with port security enabled
A port in shutdown state

A normal (access) port can only carry traffic for one single VLAN at a time. When a link between two switches needs to carry several VLANs' worth of traffic at once, it needs to be a trunk port instead, which tags each frame with an 802.1Q VLAN ID so the receiving switch knows which VLAN each frame actually belongs to.

medium

5. A single server hosts HTTPS sites for two completely different domains on the same IP address and port 443. Clients connecting to one of the domains receive a TLS certificate warning because they're being served the OTHER domain's certificate. What's the most likely missing piece?

The server needs a separate IP address for every HTTPS domain it hosts
A wildcard certificate covering both domains
Server Name Indication (SNI) support, so the correct certificate is selected during the TLS handshakeCorrect
HTTP Strict Transport Security (HSTS) headers

SNI lets the client announce which hostname it's trying to reach as part of the TLS handshake itself, before the server has to pick and send a certificate, which is exactly what allows one IP and port to correctly serve multiple certificates for multiple domains. Without SNI support (or an old client that never sends it), the server has to guess and falls back to a single default certificate, causing a mismatch for anyone requesting the other domain. Assigning a separate IP per domain is the older workaround from before SNI existed, and a wildcard certificate only helps if both domains happen to share the same base domain.

hard

6. You need to summarize the routes 10.1.0.0/24, 10.1.1.0/24, 10.1.2.0/24, and 10.1.3.0/24 into a single advertisement. What's the correct summary route?

10.1.0.0/23
10.1.0.0/22Correct
10.1.0.0/24
10.1.0.0/21

These four networks (.0 through .3 in the third octet) are contiguous, meaning they sit right next to each other in a clean block. 'Borrowing back' 2 bits from the mask (going from /24 to /22) creates one wider range that exactly covers all four smaller subnets at once, letting you advertise them as a single route instead of four separate ones.

easy

7. Which TLS protocol version is disabled by default in OpenSSL 3.0+ due to security vulnerabilities?

SSL 3.0
TLS 1.0
All of the aboveCorrect
TLS 1.1

SSL 3.0, TLS 1.0, and TLS 1.1 all have real, well-known cryptographic weaknesses that attacks like POODLE and BEAST exploit. Because of that, OpenSSL 3.0 turns all three off by default, and you'd have to explicitly opt back in to use any of these older, weaker protocol versions.

medium

8. A network runs EIGRP with a redundant path available, but EIGRP isn't using it even as a backup route. Per EIGRP's DUAL algorithm, what's the likely reason?

The administrative distance of EIGRP is too high compared to a static route
The redundant path uses a different Layer 2 medium, which EIGRP does not support
The alternate path doesn't satisfy the feasibility condition - its reported distance isn't lower than the current successor's feasible distanceCorrect
EIGRP only ever supports a single path with no backups at all

EIGRP's DUAL algorithm won't just accept any alternate path as a usable backup, it specifically requires that path's reported distance to be strictly better than the current best path's own feasible distance. That rule is what guarantees backups are always loop-free, but it also means a redundant physical path can exist and still not qualify as a usable backup route.

hard

9. Two switches both have the default STP priority of 32768. An admin wants Switch A to reliably become the root bridge regardless of its MAC address. What's the correct configuration approach?

Change Switch A's MAC address to a lower value manually
Enable port security on all of Switch A's ports
Physically disconnect Switch B whenever Switch A needs to be root
Explicitly lower Switch A's bridge priority (e.g. to 4096) rather than relying on MAC address as the tiebreakerCorrect

When two switches have the exact same priority, STP has no other choice but to fall back to comparing their MAC addresses, and that's essentially outside your control since you can't reliably predict or choose a MAC address. Explicitly setting a lower priority on Switch A removes that guesswork entirely and guarantees it wins the root bridge election every time.

easy

10. Which command on a Cisco router displays its current routing table?

show interfaces
show running-config
show ip arp
show ip routeCorrect

If you want to see every route a Cisco router currently knows about, whether it learned it from being directly connected, a static entry, or a dynamic routing protocol, along with exactly how it would reach each one, show ip route is the command built exactly for that.

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.