Home / Learn Secure SQL / VPCs and Private Endpoints

VPCs and Private Endpoints

Keeping database traffic off the public internet entirely.

In shortKeeping database traffic off the public internet entirely.

What's actually going on

Private connectivityapplication server(in the VPC)private network path,no public internetdatabase (privateendpoint, no public…
Private connectivity

What it is

A VPC (Virtual Private Cloud) and private endpoints let an application reach its database over a private network path that never traverses the public internet, even when both are hosted by a cloud provider.

Why it matters

This extends the network segmentation idea with a concrete, common cloud mechanism: even a database with no public IP and strict firewall rules benefits further from a connection path that is private by construction, not just restricted by rule.

Mechanically speaking

Place both application and database inside the same VPC (or peered/connected VPCs), use the cloud provider's private endpoint/private link feature for managed database services, and disable any public endpoint entirely once private connectivity is confirmed working.

Shows up in

  • Web application code review
  • Backend development
  • Database administration

Setup is specific to each cloud provider (AWS VPC + RDS private subnet, GCP VPC + Private Service Connect, Azure VNet + Private Endpoint); the underlying principle is the same across all of them.

Check yourself

1. A private endpoint mainly ensures...