Volume 2 · Chapter 14 — AWS Networking Deep Dive (VPC)

Volume Summary and Interview Rapid-Fire

Goutham Mayaluri 4 min read AWSCloudVPCNetworking

14.1 What This Volume Covered

This volume built the complete networking picture: the VPC as your isolated software-defined network, subnets per Availability Zone, the routing that makes subnets public or private, the internet and NAT gateways that control internet access, the two firewall layers (security groups and NACLs), private connectivity to AWS services and partners via endpoints and PrivateLink, the tools for connecting many networks (peering, Transit Gateway, VPN, Direct Connect), DNS and content delivery at the edge (Route 53 and CloudFront), and load balancing that ties scaling and resilience together. The unifying idea is that networking on AWS is defined entirely in software and driven by explicit configuration - routing decides reachability, firewalls decide permission, and every layer is a deliberate choice you make to expose or protect. The rest of this chapter consolidates the essentials for rapid review.

14.2 Rapid-Fire Interview Questions

Rapid-Fire

What determines whether a subnet is public or private?

Its route table. A subnet whose default route (0.0.0.0/0) points to an internet gateway is public; one that points to a NAT gateway is private-with-outbound; one with no default route is fully private. “Public” isn’t a checkbox - it’s routing.

Rapid-Fire

Internet gateway vs NAT gateway?

An internet gateway gives two-way internet access to public-subnet resources that have public IPs. A NAT gateway lets private-subnet resources make outbound connections while blocking all inbound - outbound-only internet for private tiers. Deploy a NAT gateway per AZ for resilience.

Rapid-Fire

Security group vs network ACL?

Security group = resource-level, stateful (return traffic auto-allowed), allow-only, can reference other groups. Network ACL = subnet-level, stateless (must allow both directions), supports allow and deny rules. Security groups do primary control; NACLs are a coarse guardrail.

Rapid-Fire

Gateway endpoint vs interface endpoint?

Gateway endpoints are for S3 and DynamoDB - route-table based and free. Interface endpoints are for most other services and PrivateLink - a private IP (ENI) in your subnet, priced. Both keep traffic to AWS services private, off the public internet.

Rapid-Fire

Why doesn't VPC peering scale, and what fixes it?

Peering is non-transitive, so connecting many VPCs needs a full mesh that grows with the square of the count. Transit Gateway fixes it with a central hub every VPC and on-premises network attaches to once, with central, segmentable routing.

Rapid-Fire

Site-to-Site VPN vs Direct Connect?

VPN is an encrypted tunnel over the public internet - quick, cheap, variable performance. Direct Connect is a dedicated private physical link - consistent low latency, private, higher bandwidth. Banks use Direct Connect primary with VPN as failover.

Rapid-Fire

What is PrivateLink for?

Privately exposing or consuming a single service between VPCs or organizations - the service appears as a private IP in the consumer’s VPC. No VPC peering, no internet exposure, and no concern about overlapping IP ranges since it connects one service, not whole networks.

Rapid-Fire

How does Route 53 support disaster recovery?

Health checks plus failover routing: Route 53 monitors the primary endpoint and, if it becomes unhealthy, stops returning it and returns the standby Region instead, redirecting users automatically. DNS TTL caching affects how quickly failover propagates.

Rapid-Fire

Name three things CloudFront gives you at once.

Lower latency (serve cached content from edge locations near users), lower origin load and egress cost (fewer requests reach the origin, less data leaves the Region), and edge security (attach a WAF, absorb DDoS, terminate TLS, and restrict the origin to CloudFront-only).

Rapid-Fire

ALB vs NLB?

Application Load Balancer works at HTTP/HTTPS and routes on content (path, host) - the default for web and microservices. Network Load Balancer works at TCP/UDP with ultra-high performance and low latency - for non-HTTP or extreme throughput. Both health-check targets across AZs.

14.3 Closing

Networking is the layer where security, availability, and connectivity are decided, and the recurring lesson of this volume is that every one of those properties is an explicit configuration choice: routing sets reachability, firewalls set permission, endpoints and PrivateLink keep sensitive traffic private, Transit Gateway and Direct Connect connect the estate, and Route 53, CloudFront, and load balancers shape performance and resilience at the edge. With the network foundation in place, the next volume turns to who and what is allowed to act within it - identity, security, and compliance.