Interview Q&A · questions with model answers

Networking Interview Questions

Part of the study plan for: Site Reliability Engineer (SRE) · Cloud Engineer · DevOps Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked What's the difference between TCP and UDP, and when would you choose UDP?

    TCP provides a reliable, ordered byte stream with connection setup, retransmission, flow and congestion control. UDP sends independent datagrams with no handshake or delivery guarantees. Choose UDP…

  2. Most asked What's the difference between stateful and stateless firewalls? Give cloud examples.

    A stateful firewall tracks connections and automatically allows reply traffic; a stateless one evaluates every packet independently, so replies need explicit rules to the initiator's ephemeral…

  3. Most asked Security groups versus network ACLs: how do they differ and how would you use them together?

    Security groups attach to network interfaces, are stateful, allow-only and can reference other security groups. Network ACLs attach to subnets, are stateless, evaluated in rule-number order and…

  4. Most asked Compare HTTP/1.1, HTTP/2 and HTTP/3.

    HTTP/1.1 is text-based with one request at a time per connection. HTTP/2 uses binary frames and multiplexes many streams over one TCP connection with header compression. HTTP/3 does the same over…

  5. Most asked Compare layer 4 and layer 7 load balancers. When would you use each?

    Layer 4 balancers route TCP/UDP by IP and port, preserve the protocol, handle very high throughput and offer static IPs (AWS NLB, Azure Load Balancer). Layer 7 balancers understand HTTP, terminate…

  6. Most asked What makes a subnet public or private in AWS?

    Its route table: a public subnet's default route (0.0.0.0/0) points to an internet gateway, a private subnet's to a NAT gateway or nowhere. Resources in a public subnet also need a public IP to be…

  7. What's the difference between Azure VNets and Google Cloud VPCs compared with AWS VPCs?

    AWS VPCs and Azure VNets are regional; AWS subnets are per availability zone while Azure subnets span zones. Google Cloud VPC networks are global, with regional subnets, so one network can span…

Was this page helpful?

Report a mistake