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.
-
Most asked How should you design health checks for services behind a load balancer?
Make load balancer and readiness checks answer 'can this instance serve now?' using only local state, keep liveness checks trivial, and monitor shared dependencies separately. Health checks that…
-
Most asked How do you connect many VPCs together, and why isn't VPC peering always enough?
Peering connects exactly two VPCs and isn't transitive, so a full mesh grows quadratically and is hard to segment. A hub such as AWS Transit Gateway (Azure Virtual WAN or hub VNet, Google Cloud…
-
Most asked How would you migrate a production domain to a new load balancer with no downtime?
Lower the DNS TTL to 60-300 s at least one old-TTL period in advance, bring up the new target, shift traffic with weighted records in steps while watching errors, keep the old target serving until…
-
How do you get the real client IP behind proxies and load balancers safely?
Read X-Forwarded-For (or Forwarded) but trust only entries appended by your own proxies: walk the list from the right, skipping known proxy addresses, and take the first address you didn't add. For…
-
How would you give an application fixed outbound IP addresses for a partner's allow-list?
Route its outbound traffic through NAT gateways with Elastic IPs (AWS), a NAT gateway with static public IPs (Azure) or Cloud NAT with reserved addresses (Google Cloud), ideally centralised in an…
-
How do you reduce cloud networking costs?
Know what's charged: NAT gateway data processing, cross-AZ and inter-region transfer, internet egress, and endpoint and load balancer hours. Use gateway endpoints for S3/DynamoDB, keep chatty…
-
How do you secure administrative access to instances in private subnets?
Avoid public SSH/RDP. Use identity-aware, audited access: AWS Systems Manager Session Manager, Azure Bastion, Google Cloud IAP TCP forwarding, or a VPN with MFA. Security groups then allow no…