BM: Baca dalam Bahasa Melayu
World A3: The Mall's Roads · Boss challenge
Draw the mall's roads
You will learn: to plan a whole VPC for Kedai Kancil, with public and private rows, and let only the web in.
Checked with AWS 2026-11 on 1 Nov 2026
The problem
Boss: Kedai Kancil moves into the mall. A web front, app servers and an order database. Your rules: only the web faces the street, and every wing has a spare. Ready?
Pick one answer.
Try it
Room 1: three wings. One public row and one private row in each. Public rows need 20 addresses. Private rows need 200.
Give each row of units its own block of addresses. Nothing may overlap.
VPC (the mall's land)
10.20.0.0/16
65,536 addresses in this VPC.
The brief
- Public subnet (faces the street): 3, one per zone, each with at least 20 usable addresses.
- Private subnet (the back rooms): 3, one per zone, each with at least 200 usable addresses.
Hint
Pick /27 for public rows and /24 for private rows. The planner finds a free block.Try it
Room 2: road signs and residents. Sort each one into its row.
Drag a card into a box. Or tap the card, then tap the box.
Try it
Room 3: the load balancer’s door. Shoppers in on HTTPS from anywhere. No SSH for anyone.
Set the door guard's rules. Only the right visitors get in.
Visitors
- Shoppershould get in
TCP 443from 198.51.100.20Its replies go back to ports 49152–65535. - Shopper on a phoneshould get in
TCP 443from 203.0.113.77Its replies go back to ports 32768–61000. - Stranger (SSH)keep out
TCP 22from 192.0.2.77Its replies go back to ports 32768–61000.
Unit door · security group (the server)
Allow rules only. It remembers who came in, so replies always go out.
In
No In rules yet: nothing gets in.
Out: all traffic (a new group starts this way).
Hint
One rule: TCP 443 from 0.0.0.0/0.Predict
Room 4: the database needs a security patch from the internet. How does it get it?
Pick one answer.
Try it
Room 5: the database’s door. Only servers in the app group, sg-app, may use port 5432. Not even the load balancer.
Set the door guard's rules. Only the right visitors get in.
Visitors
- App servershould get in
TCP 5432from 10.20.1.15, a server in sg-appIts replies go back to ports 32768–61000. - Load balancerkeep out
TCP 5432from 10.20.0.5, a server in sg-lbIts replies go back to ports 32768–61000. - Strangerkeep out
TCP 5432from 192.0.2.77Its replies go back to ports 32768–61000.
Unit door · security group (the server)
Allow rules only. It remembers who came in, so replies always go out.
In
No In rules yet: nothing gets in.
Out: all traffic (a new group starts this way).
Hint
One rule: TCP 5432 fromsg-app.Check
Last room: the bill. Which parts of your plan cost money while the shop sleeps?
One at a time: does it keep costing money while it sits idle?
1 of 6
NAT gateway with no traffic
On the bill (costs even when idle)
Nothing here yet.
Free shelf (free when idle)
Nothing here yet.
You did it!
You can now plan Kedai Kancil’s whole VPC: rows, road signs, guards and the bill.
Bahasa Melayu
Boss: Kedai Kancil pindah ke pusat beli-belah. Ada depan web, server aplikasi dan pangkalan data pesanan. Peraturan anda: hanya web menghadap jalan, dan setiap sayap ada ganti. Sedia?
Bilik 1: tiga sayap. Satu baris awam dan satu baris peribadi di setiap sayap. Baris awam perlu 20 alamat. Baris peribadi perlu 200.
Bilik 2: papan tanda dan penghuni. Susun setiap satu ke dalam barisnya.
Bilik 3: pintu load balancer. Pembeli masuk guna HTTPS dari mana-mana. Tiada SSH untuk sesiapa.
Bilik 4: pangkalan data perlukan tampung keselamatan dari internet. Bagaimana ia dapat?
Bilik 5: pintu pangkalan data. Hanya server dalam kumpulan aplikasi, sg-app, boleh guna port 5432. Load balancer pun tidak.
sg-app.Bilik terakhir: bil. Bahagian mana dalam pelan anda makan duit semasa kedai tidur?
Kini anda boleh rancang seluruh VPC Kedai Kancil: baris, papan tanda, pengawal dan bil.
You finished this before. Practice is always welcome!
Official docs: Amazon VPC: Example: VPC with servers in private subnets and NAT · Amazon VPC: Security group rules · Amazon VPC: Subnet CIDR blocks · Amazon VPC pricing
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?