core Estimated learning time: 6 h

4.1 Virtual networks and subnets

You can design a network where the database is genuinely unreachable from the internet.

Before:03. Storage & DatabasesUnlocks:05. Identity, Security & Compliance

The same thing, three names

One idea, sold under a different brand by each provider. Learn it once and you can read any job advertisement.

On AWS
VPC
On Azure
Virtual Network (VNet)
On Google Cloud
VPC Network

A virtual network is address space you design, and this topic teaches designing it so the database is genuinely unreachable from the internet: CIDR planning, public and private subnets, route tables, gateways, and NAT for outbound-only access. It opens the networking module because everything after it lives inside this structure. The mistake it prevents is address exhaustion — planning space you will not run out of costs nothing on day one and a migration on day five hundred.

Work through these

  • Virtual network, CIDR planning and subnetting

    Your own private network in the provider's data centre, with an address range you choose and divide up. Planning this well is what makes everything later in the module possible.

  • Public vs private subnets; route tables and internet gateways

    A subnet with a route to the internet is public and one without is private, and putting the database in the second kind is the core defensive move. The route table is what actually decides which is which.

  • NAT for outbound-only access

    Machines in a private subnet often still need to reach out for updates without being reachable themselves, and a network address translation gateway is how that one-way path is built.

  • Planning address space you will not run out of

    Address ranges are painful to change once systems are running, so this item is about leaving room now. Running out later means renumbering or bolting on ranges that do not fit.

Sign in to keep your progress.

Free resources

These videos are on YouTube. Opening the link takes you to YouTube's page. Pressing "Watch here" loads YouTube's player into this page — nothing loads from YouTube until you do. Either way the video comes from Google and uses much more mobile data than a page of text. Something wrong with a link here?

Links last checked 29 Aug 2026.

Stuck here?

Ask a mentor. A real person answers, and they can see exactly which topic you're on. Usually within a couple of working days.

Checking your session…

Topics shown in module order.