Services Español / VPC networks

VPC networks for Google Cloud certification exams

A Virtual Private Cloud (VPC) is the private network your Google Cloud resources run in. VPCs are global, subnets are regional, and most network and security questions start here.

In 431 practice questions across 12 practice banks

Professional Cloud Network Engineer GKE Networking

Your company runs its applications on Google Kubernetes Engine (GKE), and your team recently created a private Cloud DNS zone, corp.internal, to host records for internal services, such as a managed database at db.corp.internal. You verified that a Compute Engine VM in the same VPC as your GKE cluster can successfully resolve db.corp.internal. However, when you access a Pod inside your GKE cluster, you can resolve in-cluster services (for example, kubernetes.default.svc.cluster.local), but any attempt to resolve db.corp.internal fails. Upon inspecting the coredns ConfigMap in the kube-system namespace, you discovered the default forward plugin has been modified to point directly to a public DNS provider’s IP address, bypassing the node’s local resolver. You need to enable Pods in the cluster to resolve records in the existing corp.internal private zone as well as other zones under .internal.

  1. a stubDomains entry only covers corp.internal; the requirement also includes other zones under .internal, and hand-maintaining stubs adds overhead.

  2. an ExternalName service aliases one name (db.corp.internal) but cannot resolve the rest of the zone or other .internal zones, and ExternalName relies on the upstream resolver anyway.

  3. Cloud DNS for GKE replaces the cluster DNS provider entirely, which is a much bigger change than needed and would not directly fix the broken forward statement.

  4. forwarding to /etc/resolv.conf delegates resolution to the node/VPC resolver, which resolves all private Cloud DNS zones authorized on the VPC.

Pick an answer to see why each option is right or wrong.

Try 20 questions free

Key concepts for practice

  • Firewall rules are stateful and target instances by network tag or service account.
  • Shared VPC gives central control across projects; VPC Network Peering connects separate networks and is not transitive.
  • Private Google Access lets VMs without external IPs reach Google APIs.
  • VPC Service Controls draw a perimeter around services to prevent data exfiltration.