Cloud network scope differences
One idea, three different scopes
AWS Virtual Private Cloud (VPC), Azure Virtual Network (VNet) and Google Cloud Virtual Private Cloud (VPC) give applications virtual networking, but their scope is not identical. Scope describes where a resource belongs and where it can be used, not a guarantee of application availability. An availability zone is a fault-isolation placement area within a region. A regional network can support multiple zones; a global network does not automatically make a VM multi-region.
| Platform | Network scope | Ordinary subnet scope | Reserved IPv4 addresses |
|---|---|---|---|
| AWS VPC | Regional | One availability zone | 5 |
| Azure VNet | Regional | Regional, spanning zones | 5 |
| Google Cloud VPC | Global | Regional | 4 (primary range) |
These are standard models verified against official documentation excerpts. Special service subnets, IPv6 allocations and resource constraints need separate checks.
Design two-zone compute placement
Imagine two zones A and B in a fictional region R. Each zone must be able to host 40 API interfaces during a failure. The system uses private addresses. In AWS, create two /26 subnets, one in each zone, for example 10.42.1.0/26 and 10.42.1.64/26, within the same regional VPC. Each has 59 assignable addresses before extra service constraints, enough for 40. An EC2 instance in zone B cannot attach its normal primary NIC to the zone A subnet.
In Azure, a regional VNet can use a regional API subnet such as 10.42.1.0/25 for VMs in both zones. It has 123 assignable addresses; the compute resources must still be explicitly distributed across zones and support the selected placement. A single subnet does not imply a single availability zone.
In Google Cloud, a global custom-mode VPC can use a regional primary subnet 10.42.1.0/25 for instances in either zone of R. It has 124 assignable primary IPv4 addresses before further reservations. A VM in another region S requires a subnet in S.
These three alternatives are independent designs, not networks to connect together using the same CIDRs. In each, check simultaneous recovery or rollout demand: if 40 existing interfaces and 40 new ones coexist in the regional /25, 80 fits; a /26 would not.
Extend into a second region
To add region S, use distinct ranges such as 10.43.0.0/22. AWS normally needs another VPC in S and explicit inter-region connectivity. Azure normally needs another regional VNet in S and a supported connection such as global VNet peering. Google Cloud can add a subnet in S to the same global VPC; the network need not be recreated.
AWS R VPC -> R zone A subnet / R zone B subnet
AWS S VPC -> S zone A subnet (separate VPC)
Azure R VNet -> R regional subnet -> R zones A and B
Azure S VNet -> S regional subnet (separate VNet)
Google Cloud global VPC -> R regional subnet + S regional subnet
These text diagrams describe placement only. They do not assert peering, transit routing, firewall rules, load balancers, data replication or failover is already configured. Even within a global VPC, inter-region traffic can carry costs, latency and policy constraints. A second-region application needs explicit compute, data and recovery design.
Follow the route in both directions
Suppose a private API in R calls a private database in S. Draw a source NIC and subnet, destination CIDR, next hop or provider-managed path, return route and firewall allowances. AWS and Azure route tables and learned routes have provider-specific association and propagation rules; Google Cloud route scope and dynamic routing modes affect learned route visibility. Do not copy one provider’s route syntax or priority rules to another.
In a toy routing table, R has a route to S via the approved connection but S has only a default route to an internet gateway. The intended private flow is incomplete: add or verify an appropriate return route using the chosen platform’s supported mechanism, not a public database IP. Test the desired source/destination pair, then test a denied pair. DNS resolution and identity permission need independent checks.
For inbound internet traffic, distinguish a public-facing load balancer from a publicly addressed backend. Keep administration and database endpoints private by design. A NAT service for outbound IPv4 connectivity does not, by itself, allow unsolicited inbound connections. More detailed NAT and private endpoint behavior belongs to the next chapter.
Review the design before deployment
Record the provider, network and subnet scopes, zone placement, address ranges, capacity in steady state and during failover, route origins, return paths, allowed flows, and planned costs. Confirm the selected service supports its required subnet type, address family and zone/region. An architecture drawing or a valid template is not proof of connectivity.
Practice: a GCP VM in region S is assigned to a subnet in R. Reject the placement. An Azure VM in zone B uses an ordinary subnet in the same region as the VM: scope alone does not reject it. An AWS EC2 VM in zone B uses a subnet in zone A: reject it. Explain all three results without relying on actual account access.
The core lesson requires no cloud credentials, live network changes or payment. Next: network access, NAT and private connectivity.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Cloud network scope differences — knowledge check
Choose the best answer for each offline scenario.
Which platform has a global VPC with regional subnets?
Can an ordinary AWS subnet span two availability zones?
Which placement passes an ordinary subnet scope check?
Which action is needed to place a GCP VM in a second region using the same VPC?
A global VPC contains subnets in two regions. What does that prove?