Original study notes for cloud certification exams — Google Cloud first, more clouds in build.
Home › Associate Cloud Engineer › Section 3: Deploying and Implementing a Cloud Solution › Serverless VPC Access and Private Google Access

Serverless VPC Access and Private Google Access Study Notes

Serverless services and private VMs both start life outside or isolated from your VPC, and two different features bridge the gaps. Serverless VPC Access lets Cloud Run, Cloud Functions, and App Engine reach VPC resources, while Private Google Access lets private subnet resources reach Google APIs without public addresses.

Exam tip: Memorise the direction of each bridge: connector brings serverless into the VPC, Private Google Access brings Google APIs to private subnets — direction decides the answer.

Key facts

What the exam expects you to know

Serverless VPC Access and Private Google Access vs Cloud NAT: when to use which

Use Private Google Access when private resources need only Google APIs, because it is a simple subnet setting with no NAT addresses, ports, or internet exposure involved. Use Cloud NAT when those same resources also need arbitrary internet endpoints such as vendor APIs, external package repositories, or webhook callbacks. Many architectures enable both together. The exam tests the boundary precisely: Google APIs in the requirement means Private Google Access suffices, while any non-Google internet destination in the same scenario forces you to add Cloud NAT as well. See also the Cloud NAT notes.

Useful gcloud commands

gcloud compute networks vpc-access connectors create my-connector --region=us-central1 --network=my-vpc --range=10.8.0.0/28
gcloud compute networks vpc-access connectors describe my-connector --region=us-central1
gcloud compute networks subnets update my-subnet --region=us-central1 --enable-private-ip-google-access
gcloud run deploy my-service --vpc-connector=my-connector --vpc-egress=private-ranges-only

Common exam traps

Frequently asked questions

Why can my Cloud Run service not reach a VM's private IP address?

By default a Cloud Run service is not attached to your VPC, so it has no route to private addresses. You must configure Serverless VPC Access with a connector in the correct region, or use direct VPC egress, and set the service's egress to route private ranges through it. Firewall rules in the VPC must also allow the traffic.

What does Private Google Access actually enable?

Private Google Access lets resources with only private IP addresses on an enabled subnet reach Google APIs and services, such as Cloud Storage and BigQuery, without traversing the public internet or holding external addresses. It is enabled per subnet. It does not provide general internet access, so workloads needing third-party endpoints still require Cloud NAT in addition.

Does Serverless VPC Access route all traffic through the VPC?

Only if you configure it that way. The default private-ranges-only setting sends traffic destined for private IP ranges through the connector while internet traffic leaves the serverless environment directly. The all-traffic setting routes everything through the VPC, which organisations use to enforce Cloud NAT addressing, firewall inspection, or fixed egress IPs for serverless workloads.

Study aid disclaimer: Cloud Cert Notes is an independent educational study aid. It is not affiliated with, endorsed by, or sponsored by Google, Microsoft, Amazon, Oracle, or Alibaba. Google Cloud, Associate Cloud Engineer, and Cloud Digital Leader are trademarks of Google LLC; all other certification names and product names are trademarks of their respective owners. Always confirm service details against the official provider documentation before sitting an exam.