VPC Networking and Private Connectivity for SOA-C03
Amazon VPC is the software-defined network every AWS workload you operate lives inside: subnets, route tables, gateways, and firewall layers that decide exactly which packets flow where. Task 5.1 of the SOA-C03 exam tests whether you can configure those pieces correctly — public and private subnets, zonal and regional NAT gateways, egress-only internet gateways, security groups versus network ACLs — and then connect networks privately with VPC endpoints, PrivateLink, peering, Transit Gateway, and Site-to-Site VPN. It also expects you to audit the network protection services running in a single account (AWS WAF, Shield, Network Firewall, Route 53 Resolver DNS Firewall) and to cut network spend, most famously by replacing NAT gateway data-processing charges with free gateway endpoints. This lesson works through each building block from an operations perspective: what to configure, which settings matter, and the trade-offs the exam probes. Troubleshooting broken connectivity belongs to Task 5.3 — here you learn to build it right the first time.
What you’ll learn
- Plan subnet CIDRs, account for reserved addresses, and add address space with a secondary VPC CIDR
- Configure route tables, internet gateways, zonal or regional NAT gateways, egress-only internet gateways, and NAT64
- Choose between security groups and network ACLs using statefulness, rule numbering, and ephemeral ports
- Configure gateway and interface endpoints, endpoint and bucket policies, and PrivateLink endpoint services
- Connect VPCs with peering or Transit Gateway, including Transit Gateway route table association and propagation
- Configure Site-to-Site VPN with static or BGP routing, and Client VPN for remote users
- Audit AWS WAF, Shield, Network Firewall, and Route 53 Resolver DNS Firewall coverage in a single account
- Cut network spend with gateway endpoints, same-AZ placement, and the cheapest construct that meets the requirement
The 8 parts · about 17 min of reading
- Subnets, CIDR planning, and the five reserved IPsStart hereSubnets sit in one AZ, lose five addresses each, and never resize, so an exhausted VPC grows by adding a secondary CIDR block.2 min
- Route tables, internet gateways, and NATMost specific route wins; a public subnet needs an IGW route plus public IPs, and NAT comes zonal, regional, or as NAT64 for IPv6.2 min
- Security groups vs network ACLsStateful allow-only rules on an interface versus stateless numbered rules on a subnet, where the first match wins and replies need rules.2 min
- VPC endpoints and PrivateLinkGateway endpoints route S3 and DynamoDB for free, interface endpoints add ENIs, and PrivateLink lets you publish your own service.3 min
- Connecting VPCsPeering is a non-transitive one-to-one link; Transit Gateway is the hub, and association plus propagation decide who reaches whom.2 min
- Hybrid connectivitySite-to-Site VPN joins a network over two IPsec tunnels with static or BGP routes, while Client VPN connects individual users.2 min
- Auditing network protection services in one accountAudit WAF, Shield, Network Firewall and DNS Firewall for two things: configured correctly and actually attached to the traffic.3 min
- Optimizing network costsCut network bills by moving S3 and DynamoDB traffic off NAT, keeping chatty tiers in one AZ, and picking the cheapest fitting link.1 min
Mind map
How the exam tests this
This task is tested through configure-it-right scenarios and trigger phrases: “S3 traffic must not traverse the internet, at no cost” means a gateway endpoint; transitive routing across many VPCs, or selective isolation between attached networks, means Transit Gateway route table association and propagation; “IPv6 outbound only” means an egress-only internet gateway, while IPv6-only workloads reaching IPv4 mean NAT64; NAT resilience questions turn on whether you build per-AZ zonal gateways yourself or let a regional NAT gateway span AZs; “expose a service to consumer VPCs with overlapping CIDRs” means PrivateLink. Network ACL questions probe statefulness, ephemeral ports and rule-number order; audit questions probe where each protection attaches — WAF scope, Shield Advanced protected resources, Network Firewall routing, DNS Firewall VPC associations. Cost questions resolve to NAT data processing, cross-AZ transfer, or the cheapest construct that meets the requirement. Troubleshooting variants of the same facts belong to Task 5.3.
Key takeaways
- A subnet is public only if its route table sends 0.0.0.0/0 to an internet gateway and its instances have public IPs.
- Every subnet loses five IPs; subnet and primary VPC CIDRs are fixed, so add a secondary VPC CIDR and new subnets when addresses run out.
- Zonal NAT gateways need one per AZ with same-AZ routes for resilience; a regional NAT gateway spans AZs automatically and needs no public subnet, but private NAT stays zonal.
- IPv6 outbound-only is an egress-only internet gateway; IPv6-only workloads reaching IPv4 need NAT64 (DNS64 plus 64:ff9b::/96 to a NAT gateway).
- NACLs are stateless and stop at the lowest-numbered matching rule — a deny must be numbered below the allow it overrides.
- Gateway endpoints are free and have no security groups; interface endpoints need inbound 443 in their security group; bucket policies restrict paths with aws:SourceVpce.
- PrivateLink endpoint services control consumers with allowed principals and acceptance required, and tolerate overlapping CIDRs.
- Peering is never transitive and has no edge-to-edge routing; Transit Gateway segments with route table association and propagation — turn the defaults off to isolate new attachments.
- Site-to-Site VPN has two tunnels; BGP plus VGW route propagation keeps new on-premises networks flowing without manual routes.
- WAF scope is fixed at creation (CloudFront in us-east-1 vs regional); Shield Advanced protects only added resources; Network Firewall inspects only routed traffic; DNS Firewall associates with VPCs.
Part 1: Subnets, CIDR planning, and the five reserved IPs
Subnets sit in one AZ, lose five addresses each, and never resize, so an exhausted VPC grows by adding a secondary CIDR block.
Frequently asked questions
What makes a subnet public in AWS?
A subnet is public when its route table has a route sending 0.0.0.0/0 to an internet gateway and the instances in it have public IPv4 addresses (auto-assigned or Elastic IPs). There is no public checkbox on the subnet itself — remove the IGW route or the public IPs and the same subnet is private.
What is the difference between a security group and a network ACL?
A security group attaches to an instance's network interface, is stateful (return traffic is automatically allowed), and supports only allow rules evaluated as a set. A network ACL attaches to a subnet, is stateless (return traffic needs its own rule, including the ephemeral port range), supports allow and deny rules, and evaluates them in rule-number order with the first match winning. Use security groups for routine workload rules and network ACLs for subnet-wide blocks.
What is the difference between a zonal and a regional NAT gateway?
A zonal NAT gateway lives in one subnet of one Availability Zone (a public one, with an Elastic IP, for internet access), so a resilient design needs one per AZ and routes from each private subnet to the gateway in its own AZ. A regional NAT gateway, available since November 2025, belongs to the VPC rather than a subnet, needs no public subnet, and expands automatically into the AZs where workloads run. Private NAT (translation without internet access) is supported only by zonal NAT gateways.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.