The mental model

A VPC is a logically isolated network. A subnet belongs to one Availability Zone and uses a route table to decide where traffic goes. A public subnet has a route to an internet gateway; an instance still needs suitable addressing and security configuration to communicate directly with the internet. The subnet name alone changes nothing.

Security groups are stateful controls attached to supported resources. Network ACLs are stateless subnet controls. Private workloads may use NAT for outbound internet access or VPC endpoints for supported AWS services. NAT gateways, endpoints, and cross-zone traffic have distinct cost and availability implications worth drawing on the network diagram.

Decisions to make

  1. Put databases behind private network paths and permit only required application connections.
  2. Compare NAT and service endpoints using your traffic destination, availability needs, and current pricing.

Design exercise · no AWS resources needed

Work through a scenario

A private application server must read S3 objects and install external packages.

  1. Draw the two destination paths separately.
  2. Identify which path can use an S3 endpoint and which still needs external egress.
  3. Mark route tables and the database security-group boundary.

Check your understanding

What makes a subnet public in AWS networking terms?

Continue with AWS documentation

Before following a deployment guide, review current pricing, permissions, and cleanup steps. Budget alerts are not a hard spending cap.

Saved in this browser. Press again to undo.

Prepaid · USD

Top up balance

Available balance: $0.00

Your balance works across Heap tools. A failed lookup or generation releases its reserved amount.