CLF-C02 ยท Network services
VPC building blocks
Amazon VPC, public and private subnets, route tables, internet gateways, NAT gateways and VPC endpoints.
Key points
- Amazon VPC: your logically isolated network in a Region.
- Subnet: IP range in one Availability Zone.
- Route tables: decide where traffic goes.
- Public subnet: route table points to an internet gateway; private subnet: no such route.
- NAT gateway: private instances start outbound connections, no inbound ones.
- VPC endpoints: reach AWS services privately, with no internet gateway or NAT.
Source: https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html
Practice questions
Where does a single VPC subnet live?
- In one Availability Zone
- Across all AZs of a Region
- Across several AWS Regions
- In one edge location
Show answer
Answer: A. In one Availability Zone
A subnet is a range of IP addresses that must sit in exactly one Availability Zone. The VPC itself can span the AZs of its Region, so for high availability you create subnets in several AZs.
Which statements about Amazon VPC are true?
- Route tables decide where traffic from a subnet is sent
- Each subnet resides in a single Availability Zone
- One VPC can stretch across several AWS Regions
- An internet gateway exposes private-subnet instances to inbound traffic
- Every subnet must cover all AZs of its Region
Show answer
Answer: A. Route tables decide where traffic from a subnet is sent, B. Each subnet resides in a single Availability Zone
Route tables direct traffic from subnets and gateways, and every subnet sits in a single AZ. A VPC is created in one Region, not several, and an internet gateway does not let instances in a private subnet accept inbound traffic, because a private subnet has no route to it.
Simply creating a VPC adds an hourly charge to your bill, even before you add anything to it.
Show answer
Answer: False
False. There is no additional charge for a VPC itself. You pay for certain components inside it, such as NAT gateways, public IPv4 addresses or traffic mirroring.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
