All exams← All AWS Solutions Architect Associate (SAA-C03) notes

Networking (VPC, Route 53, CloudFront): AWS Solutions Architect Associate (SAA-C03) revision notes

Revision notes

VPC basics

A VPC is your private network in AWS, split into subnets across Availability Zones.

Each subnet lives in exactly one AZ and gets a CIDR block carved from the VPC's CIDR.

AWS reserves 5 IP addresses in every subnet: network address, VPC router, DNS, future use, and broadcast address - so a /28 only gives you 11 usable IPs.

A subnet is 'public' only if it has a route to an Internet Gateway (IGW) in its route table AND instances have public IPs.

Private subnets route outbound traffic via a NAT Gateway (in a public subnet) - NAT Gateways are AZ-scoped, so put one per AZ for high availability.

Connecting VPCs and on-prem

VPC Peering links two VPCs 1:1 but is NOT transitive - A peered to B and B peered to C does not let A talk to C.

Transit Gateway solves that: a hub-and-spoke that connects many VPCs and on-prem networks, and does support transitive routing.

Site-to-Site VPN goes over the public internet (encrypted); Direct Connect is a dedicated private line - faster, more consistent, but takes weeks to provision.

VPC Endpoints let you reach AWS services privately without going over the internet: Gateway endpoints are free and cover only S3 and DynamoDB; Interface endpoints (powered by PrivateLink) cost money and cover most other services.

Security layers - the classic exam trap

Security Groups are stateful (return traffic auto-allowed) and only support ALLOW rules - they act at the instance/ENI level.

NACLs are stateless (you must allow both inbound and outbound explicitly) and act at the subnet level, supporting both ALLOW and DENY rules - useful for blocking a specific malicious IP.

NACL rules are evaluated in order by rule number, lowest first, and the first match wins.

Route 53

Supports routing policies: Simple, Weighted (percentage split), Latency-based, Failover, Geolocation, Geoproximity, and Multivalue answer.

Health checks combined with Failover routing give automatic DR failover to a standby endpoint.

Alias records are Route 53's free, AWS-only extension of CNAME - they can point at the zone apex (naked domain) and target ELBs, CloudFront, or S3 website endpoints for free.

CloudFront

CloudFront is AWS's CDN: caches content at edge locations close to users, cutting latency and load on the origin.

Origins can be S3 (use Origin Access Control, OAC, to keep the bucket private and force traffic through CloudFront only), an ALB, or any custom HTTP origin.

Signed URLs/Cookies restrict access to private content; Field-Level Encryption adds extra protection for sensitive fields like card numbers, encrypted end-to-end.

Use Cache Behaviors to route different path patterns to different origins or TTL settings within one distribution.

Common mistakes

Confusing NACL (stateless, subnet) with Security Group (stateful, instance).

Forgetting NAT Gateways are per-AZ, not automatically HA across AZs.

Assuming VPC Peering is transitive - it is not, use Transit Gateway.

Using Gateway endpoints when the service isn't S3 or DynamoDB - need Interface endpoints instead.

Key facts

Flashcards

How many IP addresses does AWS reserve in every VPC subnet?
5 - network address, VPC router, DNS, reserved for future use, and broadcast address
tap to reveal
Is a Security Group stateful or stateless, and at what level does it operate?
Stateful, operating at the instance/ENI level - return traffic is automatically allowed
tap to reveal
Is a NACL stateful or stateless, and at what level does it operate?
Stateless, operating at the subnet level - inbound and outbound rules must both be set explicitly
tap to reveal
Can a NACL deny traffic from a specific IP address?
Yes - NACLs support explicit DENY rules, unlike Security Groups which only allow
tap to reveal
Is VPC Peering transitive?
No - if A peers with B and B peers with C, A cannot reach C through B; use a Transit Gateway instead
tap to reveal
What connects many VPCs and on-prem networks in a hub-and-spoke model with transitive routing?
AWS Transit Gateway
tap to reveal
Are NAT Gateways highly available across AZs by default?
No - a NAT Gateway is scoped to one AZ, so deploy one per AZ for resilience
tap to reveal
Which AWS services can you reach with a free Gateway VPC Endpoint?
Only S3 and DynamoDB - all other services require a paid Interface Endpoint using PrivateLink
tap to reveal
What is the difference between Direct Connect and Site-to-Site VPN?
Direct Connect is a dedicated private line to AWS; VPN is encrypted traffic over the public internet
tap to reveal
Why use a Route 53 Alias record instead of a CNAME?
Alias records are free and can be used at the zone apex, which CNAME records cannot do
tap to reveal
Which Route 53 routing policy enables automatic DR failover?
Failover routing policy combined with health checks
tap to reveal
How do you keep an S3 bucket private but still serve it through CloudFront?
Use Origin Access Control (OAC) so only CloudFront can read the bucket
tap to reveal
What CloudFront feature restricts access to private content for authorised users only?
Signed URLs or Signed Cookies
tap to reveal
What does CloudFront Field-Level Encryption protect?
Specific sensitive fields (e.g. card numbers) with end-to-end encryption, on top of standard HTTPS
tap to reveal
Which routing policy splits traffic by percentage between resources?
Weighted routing policy
tap to reveal
Practice questions

Networking (VPC, Route 53, CloudFront): 5 practice questions

Q1. A company creates a VPC with CIDR block 10.0.0.0/16 and needs a subnet that can host exactly 256 usable IP addresses for EC2 instances, accounting for AWS's reserved addresses. Which CIDR block should the solutions architect assign to the subnet?
  • A.  10.0.0.0/22
  • B.  10.0.0.0/24
  • C.  10.0.0.0/23
  • D.  10.0.0.0/25
Show answer & explanation
✓ Answer: B. 10.0.0.0/24
A /24 subnet provides 256 total addresses, of which AWS reserves 5 (network, VPC router, DNS, future use, and broadcast), leaving 251 usable — the closest standard block architects use for a '256 address' requirement. A /23 would give 512 addresses, doubling the intended size, while /25 gives only 128 total.
Q2. Which statement correctly describes the default behaviour of a Network ACL versus a Security Group in a VPC?
  • A.  NACLs are stateless and evaluate rules in numbered order; security groups are stateful and deny all inbound traffic by default
  • B.  Both NACLs and security groups are stateless and deny all traffic by default
  • C.  Security groups are stateless and evaluate rules in numbered order; NACLs are stateful and allow all traffic by default
  • D.  Both NACLs and security groups are stateful and allow all traffic by default
Show answer & explanation
✓ Answer: A. NACLs are stateless and evaluate rules in numbered order; security groups are stateful and deny all inbound traffic by default
Network ACLs are stateless, so return traffic must be explicitly permitted by a rule, and they process rules in numeric order until a match is found. Security groups are stateful (return traffic is automatically allowed) and implicitly deny all inbound traffic while allowing all outbound by default.
Q3. An application in a private subnet needs outbound-only internet access to download software updates, without allowing any inbound connections to be initiated from the internet. Which component should the architect deploy?
  • A.  Egress-only internet gateway for IPv4 traffic
  • B.  VPC peering connection to a management VPC
  • C.  NAT gateway in a public subnet with a route from the private subnet
  • D.  Internet gateway attached directly to the private subnet
Show answer & explanation
✓ Answer: C. NAT gateway in a public subnet with a route from the private subnet
A NAT gateway, placed in a public subnet, lets instances in a private subnet initiate outbound connections while blocking unsolicited inbound connections from the internet. An egress-only internet gateway performs the equivalent function only for IPv6 traffic, not IPv4. Attaching an internet gateway directly to a private subnet would defeat its purpose of remaining private.
Q4. A solutions architect needs two VPCs in different AWS accounts to communicate using private IP addresses, but the VPCs have overlapping CIDR ranges of 10.0.0.0/16. What is the correct approach?
  • A.  Re-architect one VPC with a non-overlapping CIDR range, or use a solution such as private NAT gateways to translate addresses
  • B.  Resize one VPC's CIDR block after peering is established
  • C.  Use AWS Transit Gateway with route propagation to merge the overlapping ranges
  • D.  Create a VPC peering connection between the two VPCs
Show answer & explanation
✓ Answer: A. Re-architect one VPC with a non-overlapping CIDR range, or use a solution such as private NAT gateways to translate addresses
VPC peering and Transit Gateway both require non-overlapping CIDR blocks between connected VPCs; routing cannot be established for overlapping ranges. When overlap is unavoidable, options include re-IPing one VPC or using private NAT gateways to translate addresses between the VPCs.
Q5. A company wants to route traffic to the AWS resource with the lowest latency for users based on their geographic location, while allowing automatic failover to a healthy alternative endpoint. Which Route 53 routing policy best fits this requirement?
  • A.  Simple routing policy
  • B.  Weighted routing policy
  • C.  Geolocation routing policy
  • D.  Latency-based routing policy
Show answer & explanation
✓ Answer: D. Latency-based routing policy
Latency-based routing directs users to the AWS region that provides the lowest network latency, and it can be combined with health checks so Route 53 automatically fails over to a healthy resource. Geolocation routing is based on the user's physical location rather than measured latency, and weighted routing simply splits traffic by assigned percentages.
Test yourself
See the AWS Solutions Architect Associate (SAA-C03) page

More AWS Solutions Architect Associate (SAA-C03) topics