BM: Baca dalam Bahasa Melayu
World A3: The Mall's Roads
Public and private subnets
You will learn: to split your VPC into public and private rows, one per wing.
Checked with AWS 2026-11 on 1 Nov 2026
The problem
Kedai Kancil’s order database sits in the row that faces the street. Strangers walk past it all day. Where should it live?
Pick one answer.
Watch
A Subnet: One row of units inside your VPC, in one wing (Availability Zone). It gets part of the VPC's addresses. is one row of units in one wing. Public rows face the street. Private rows are back rooms. Sort Kedai Kancil’s parts.
Drag a card into a box. Or tap the card, then tap the box.
Watch
What makes a row public? Its Route table: The road signs for a row: which way each address goes.: the road signs. Tap the sign that leads to the street.
Tap the route that makes this row public.
0 of 1 found
Try it
Plan both rows in both wings. Public rows need 20 addresses each. Private rows need 200.
Give each row of units its own block of addresses. Nothing may overlap.
VPC (the mall's land)
10.0.0.0/16
65,536 addresses in this VPC.
The brief
- Public subnet (faces the street): 2, one per zone, each with at least 20 usable addresses.
- Private subnet (the back rooms): 2, one per zone, each with at least 200 usable addresses.
- Public · ap-southeast-5a
10.0.0.0/27
Which 5 addresses does AWS keep in 10.0.0.0/27?
10.0.0.0network address10.0.0.1the VPC router10.0.0.2Amazon DNS (base + 2)10.0.0.3kept for future use10.0.0.31broadcast (a VPC has no broadcast)
Hint
A /27 is enough for 20. A /24 is enough for 200.Predict
A /24 subnet has 256 addresses. How many can your servers use?
Pick one answer.
Check
Good row design, or risky? Swipe right for good.
Swipe right for good, left for needs work. Or use the buttons.
One public and one private row in each of two wings
You did it!
You can now plan public and private rows in every wing.
Go deeper (optional)
The AWS CLI makes a row with aws ec2 create-subnet. Here is the official example’s answer, cut short. Note 251 usable addresses in a /24.
Bahasa Melayu
Pangkalan data pesanan Kedai Kancil duduk di baris yang menghadap jalan. Orang asing lalu di depannya sepanjang hari. Di mana patut ia tinggal?
Subnet (baris unit) ialah satu baris di satu sayap. Baris awam menghadap jalan. Baris peribadi ialah bilik belakang. Susun bahagian Kedai Kancil.
Apa yang jadikan baris itu awam? Jadual laluan baris itu: papan tanda jalan. Ketik papan tanda yang menuju ke jalan.
Rancang kedua-dua baris di kedua-dua sayap. Baris awam perlu 20 alamat setiap satu. Baris peribadi perlu 200.
Subnet /24 ada 256 alamat. Berapa yang server anda boleh guna?
Reka bentuk baris yang baik, atau berisiko? Leret ke kanan untuk baik.
Kini anda boleh rancang baris awam dan peribadi di setiap sayap.
You finished this before. Practice is always welcome!
Official docs: Amazon VPC: Subnets for your VPC · Amazon VPC: Subnet CIDR blocks · Amazon VPC: Route tables · AWS CLI: aws ec2 create-subnet
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?