Skip to Content
Cloud Engineering Academy
2. AWS Networking & Infrastructure

Module 2 cheat sheet

One-page revision summary for AWS Networking: services, Azure mapping, CLI commands, limits, decision rules, exam traps and cost traps.

SAA-C03SOA-C03SCS-C03

Assumes: AWS CLI v2 · IPv4 + IPv6 · Region us-east-1 · prices and limits as stated in the Module 2 lessons (us-east-1, checked 2026-11-18); items marked VERIFY there are not repeated as certain here. Verified against official sources on 2026-11-18.

A printable summary of Module 2. Each row links back to the lesson with the detail.

Key services

ServiceWhat it is for
VPC, subnets, route tablesRegional private network; subnets are zonal; routes decide where packets go
Internet gateway / NAT gatewayTwo-way public access / outbound-only access
Security groups / network ACLsStateful allow-only on ENIs / stateless ordered allow and deny on subnets
Gateway and interface endpoints, PrivateLinkPrivate paths to AWS services (S3 and DynamoDB free) / to your own NLB-fronted service
Route 53 and ResolverPublic and private DNS, routing policies, health checks, hybrid DNS
ALB / NLB / GWLBHTTP routing and WAF / TCP, static IPs, PrivateLink / appliance insertion
VPC peering / Transit GatewayTwo-VPC link (non-transitive) / Regional hub for many VPCs and on-premises
Site-to-Site VPN / Direct ConnectEncrypted internet tunnels / private dedicated circuit
Network FirewallStateless and Suricata stateful inspection, domain allow-lists
Flow Logs / Reachability AnalyzerWhat did talk / what could talk, from configuration

.NET / Azure → AWS

Microsoft / AzureAWS
VNetVPC (Regional; subnets per AZ)
NSGSecurity group (stateful) + network ACL (stateless)
Service endpoint / Private EndpointGateway endpoint / interface endpoint (PrivateLink)
Azure DNS, Private DNS zonesRoute 53 public and private hosted zones
Application Gateway / Load BalancerALB / NLB
VNet peering, Virtual WANVPC peering, Transit Gateway
VPN Gateway / ExpressRouteSite-to-Site VPN / Direct Connect
Azure FirewallNetwork Firewall
NSG flow logs, Network WatcherVPC Flow Logs, Reachability Analyzer

Most useful CLI commands

TaskCommand
List VPCs and subnetsaws ec2 describe-vpcs · aws ec2 describe-subnets --filters Name=vpc-id,Values=VPC_ID
Read a route tableaws ec2 describe-route-tables --filters Name=vpc-id,Values=VPC_ID
Add S3 gateway endpointaws ec2 create-vpc-endpoint --vpc-id VPC_ID --service-name com.amazonaws.us-east-1.s3 --route-table-ids RTB_ID
Audit security group rulesaws ec2 describe-security-group-rules --filters Name=group-id,Values=SG_ID
Enable flow logsaws ec2 create-flow-logs --resource-type VPC --resource-ids VPC_ID --traffic-type ALL ...
Prove a pathaws ec2 create-network-insights-path ... then aws ec2 start-network-insights-analysis ...
Find leftoversaws resourcegroupstaggingapi get-resources --tag-filters Key=Project,Values=cea-lab

Key limits and defaults

ItemValueLesson
VPC size; AWS-reserved addresses per subnet/16 to /28; 5 per subnetRefresher
VPCs per Region; subnets per VPC; IPv4 CIDRs per VPC5; 200; 5 (up to 50)VPC fundamentals
Route tables per VPC; internet gateways per VPC200; oneRoute tables and IGW
Security group rules60 in, 60 out per SG; 5 SGs per ENISGs vs NACLs
Ephemeral ports to allow in NACLs1024-65535Refresher
Endpoint quotas20 gateway endpoints per Region; 50 interface endpoints per VPCEndpoints
VPC peerings per VPC50 (up to 125); full mesh needs n(n-1)/2Peering and TGW
Transit Gateway5 per Region; 5,000 attachments; up to 100 Gbps per VPC attachment per AZPeering and TGW
VPN tunnel bandwidth1.25 Gbps standard; 5 Gbps large-bandwidth; two tunnels per connectionHybrid
ALB idle timeout60 seconds; keep app keep-alive longerELB
Flow log interval600 s default; 60 s optionalFlow Logs

Decision rules

If…Then…
Reaching S3 or DynamoDB from private subnetsGateway endpoint (free), not NAT
Reaching other AWS APIs privatelyInterface endpoint, centralised at scale
Database or customer data tierIsolated subnet: local route only, SG from app SG only
Rules inside the VPCReference security groups, not IP ranges
Immediate cut-off of an addressNACL deny (SG changes may not end tracked connections)
Overlapping CIDRs between VPCsPrivateLink, not peering
Three or more VPCs, or on-premises plus VPCsTransit Gateway hub, separate route tables per segment
HTTP routing, WAF, OIDCALB
Static IPs, raw TCP/TLS, PrivateLink serviceNLB
Allow-list internet egress by domainNetwork Firewall (strict order, drop established)
Quick, encrypted link to a data centreSite-to-Site VPN; Direct Connect for predictable bandwidth
Canary release / DR / latency / residencyWeighted / failover / latency / geolocation routing
Proving a database is privateReachability Analyzer plus Flow Logs, with a positive control

Common exam traps

  • "Public subnet" only means a route to an internet gateway. Internet access also needs a public address and open SG/NACL rules.
  • Network ACLs are stateless: allow the ephemeral return ports; SGs are stateful.
  • SGs cannot deny; use a NACL deny for blocking.
  • VPC peering is not transitive and gives no edge-to-edge routing through a peer's gateway.
  • Gateway endpoints work only from inside the VPC; interface endpoints are reachable over VPN and Direct Connect.
  • A NAT gateway is not a firewall and never accepts unsolicited inbound connections.
  • An all-unhealthy ALB target group fails open.
  • Route 53 health checkers sit on the internet: use CloudWatch-alarm checks for private resources.
  • DNS failover is bounded by TTL and by client connection reuse.
  • Flow logs show allowed or rejected, not which control rejected, and arrive minutes late.
  • Reachability Analyzer proves configuration, not traffic.
  • Most Transit Gateway incidents are a missing return route.

Cost traps

TrapAvoid it by
S3/DynamoDB traffic through a NAT gateway (USD 0.045/GB)Add the free gateway endpoints
NAT gateway per AZ idle (about USD 110/month for three, with addresses)NAT-free design or delete after the lab
Idle ALB (about USD 16/month plus public IPv4)Delete after the lesson
Interface endpoints (USD 0.01 per AZ-hour plus USD 0.01/GB)Add only what you need; centralise
Transit Gateway (USD 0.05 per attachment-hour plus USD 0.02/GB)Design-only; peering for heavy two-VPC flows
Site-to-Site VPN (USD 0.05 per connection-hour) and Direct Connect port-hoursDesign-only on paper
Route 53 hosted zone (USD 0.50/month)Delete within 12 hours to avoid the fee
Reachability Analyzer (USD 0.10 per analysis) and verbose flow logsRun few analyses; send logs to S3 with retention

Independent learning resource — not affiliated with, endorsed or sponsored by Amazon Web Services. AWS and related marks are trademarks of Amazon.com, Inc. or its affiliates. All banking data in examples is fictional. Sample architectures are for learning and are not automatically compliant with GDPR, PCI DSS or any banking regulation.

On this page