Networking and content delivery
Describe a VPC and its parts, tell security groups from network ACLs, and choose between VPN, Direct Connect, Route 53 and CloudFront.
16 min
A Virtual Private Cloud (VPC) is your own private, isolated network inside a Region. You choose its IP range and divide it into subnets, each in one AZ.
- A public subnet has a route to an internet gateway, so resources with public IPs can reach and be reached from the internet.
- A private subnet has no direct route from the internet. To let private resources go out (for updates), use a NAT gateway placed in a public subnet.
- A route table says where traffic goes.
- Security groups: stateful firewall on the instance. Only allow rules.
- Network ACLs: stateless firewall on the subnet. Allow and deny rules, numbered order.
Connecting networks. VPC peering links two VPCs. AWS Transit Gateway is a hub that connects many VPCs and on-premises networks. Site-to-Site VPN is an encrypted tunnel over the public internet. AWS Direct Connect is a dedicated private fiber connection from your site to AWS, with steady bandwidth and latency.
Delivering to users. Amazon Route 53 is DNS and can route by latency, health or location. Amazon CloudFront caches content at edge locations. AWS Global Accelerator sends traffic over the AWS network to the closest healthy endpoint. Amazon API Gateway creates and publishes APIs.
A VPC with public and private subnets.
Security group versus network ACL.
Security group
- Level
- Instance (network interface)
- Stateful?
- Stateful: replies are allowed automatically
- Rules
- Allow only
Best for Fine-grained instance rules
Network ACL
- Level
- Subnet
- Stateful?
- Stateless: return traffic needs its own rule
- Rules
- Allow and deny
Best for Subnet-wide guardrails and explicit blocks
VPN versus Direct Connect.
Site-to-Site VPN
- Path
- Encrypted over the public internet
- Setup time
- Minutes to hours
- Best for
- Quick, low-cost connection
Direct Connect
- Path
- Dedicated private line
- Setup time
- Weeks
- Best for
- Consistent bandwidth and latency, large data
Connect and deliver.
A company needs a consistent, high-bandwidth private link from its data center to AWS that does not use the public internet.
“Security groups and network ACLs do the same job.”
Both are 'firewalls'.
What is actually true
They work at different levels. Security groups are stateful and apply to instances. Network ACLs are stateless and apply to subnets. Traffic must pass both.
- A VPC is your private network, divided into subnets in AZs.
- Public subnets route to an internet gateway. Private subnets use a NAT gateway for outbound-only access.
- Security groups are stateful at the instance. Network ACLs are stateless at the subnet.
- VPN is encrypted over the internet. Direct Connect is a dedicated line. CloudFront caches. Route 53 is DNS.
Networking check.
Which service provides a dedicated private network connection from on premises to AWS?
- AAmazon CloudFront
- BAWS Site-to-Site VPN
- CAmazon Route 53
- DAWS Direct Connect
Which service is a scalable DNS web service?
- AAmazon CloudFront
- BAWS Transit Gateway
- CAmazon Route 53
- DAmazon VPC
Which component allows resources in a public subnet to communicate with the internet?
- AVPC peering
- BInternet gateway
- CNetwork ACL
- DNAT gateway
Which service connects many VPCs and on-premises networks through a central hub?
- AAmazon CloudFront
- BAWS Transit Gateway
- CVPC peering
- DAWS Direct Connect
Which TWO statements about security groups are true?
- AThey apply to the whole subnet
- BThey are stateless
- CThey support explicit deny rules
- DThey are stateful
- EThey support allow rules only
Practise this lesson, not just read it
In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of AWS Certified Cloud Practitioner (CLF-C02) is planned around your week. Free.