Google PCNE: Cloud DNS, Service Discovery and Hybrid Name Resolution — Study Guide

Part of the Google Professional Cloud Network Engineer — Study Guide. Practice with verified answers in the Google exam hub, or take timed practice tests on ExamRoll.io.

Overview

Cloud DNS is Google Cloud’s scalable, highly available DNS service that supports both public authoritative zones and private DNS for VPCs. It also provides hybrid name resolution primitives—forwarding, peering, inbound servers, response policies, and DNS policies—to integrate with on-premises DNS and multi-cloud. This section covers authoritative DNS lifecycle, private-zone visibility and sharing, hybrid resolution, service discovery patterns, security and integrity (including DNSSEC and zone transfers), advanced traffic management with routing policies, DNS for private service endpoints, and day-2 operations such as troubleshooting, caching, logging, and migration/coexistence strategies.

Authoritative DNS and the DNS Lifecycle

Private-Zone Visibility, VPC Association, and Cross-Project Design

Short example: create and attach a private zone

gcloud dns managed-zones create corp-internal \
  --dns-name=corp.internal. \
  --visibility=private \
  --description="Private corp zone" \
  --networks=prod-vpc,stg-vpc

Hybrid Name Resolution: Forwarding, Peering, and Policies

Short examples:

# Outbound forwarding policy to on-prem resolvers
gcloud dns policies create corp-outbound \
  --networks=prod-vpc \
  --forwarding-targets=10.1.0.10,10.1.0.11 \
  --enable-logging

# Forwarding zone for partner domain
gcloud dns managed-zones create partner-fwd \
  --dns-name=partner.example. \
  --visibility=private \
  --forwarding-targets=172.16.10.53,172.16.11.53 \
  --networks=prod-vpc

Service Discovery, Split-Horizon, and Private Endpoints

Short example: internal ILB mapping

; Private zone: corp.internal.
web.svc.corp.internal.  60  IN  A 10.20.0.15

Security, Traffic Management, Operations, and Migration

Short examples:

# Enable authoritative query logging for a public zone
gcloud dns managed-zones update prod-public --enable-logging

# Create inbound servers policy (IP allocation is automatic)
gcloud dns policies create corp-inbound --networks=prod-vpc

Practical Problem Scenario

Contoso Retail and Fabrikam Payments are separate Google Cloud organizations that must interoperate for one year while they integrate networks and DNS with minimal downtime. Each org uses non-overlapping 10.0.0.0/8 space. Contoso will host internal services under svc.contoso.internal; Fabrikam will continue to host pay.fabrikam.internal on-prem. Both sides need to resolve each other’s private names and gradually migrate some zones to Cloud DNS.

Approach:

  1. Establish resilient hybrid connectivity

    • Create two Cloud VPN tunnels between Contoso’s hub VPC and Fabrikam’s on-prem routers, each to a distinct Fabrikam public IP, with Cloud Router BGP on both tunnels.
    • Rationale: Dual tunnels plus dynamic routing provide path redundancy and propagate routes for DNS targets automatically, reducing asymmetric routing risks for UDP/TCP 53.
  2. Implement conditional name resolution in both directions

    • At Contoso, create a forwarding zone fabrikam.internal that forwards to Fabrikam’s on-prem DNS servers (for example, 172.20.10.53 and 172.20.11.53) and attach it to app VPCs.
    • At Fabrikam, configure conditional forwarders on the on-prem DNS to forward svc.contoso.internal to Contoso’s Cloud DNS inbound forwarding IPs provided by a Cloud DNS inbound policy.
    • Rationale: Forwarding zones avoid duplicating authority and allow each side to keep its DNS where it is today. Inbound servers extend Cloud DNS private resolution to Fabrikam without changing its resolvers broadly.
  3. Guard against forwarding loops and enforce visibility boundaries

    • Ensure Fabrikam’s conditional forwarders do not forward contoso.internal back to Contoso for names Fabrikam still owns; similarly, Contoso should only forward fabrikam.internal.
    • Attach Contoso’s private zones only to the VPCs that require them; do not globally attach to reduce the blast radius.
    • Rationale: Eliminates DNS recursion loops and prevents private-zone shadowing of public domains.
  4. Migrate a shared zone using managed zone transfers

    • For a legacy shared zone legacy.shared.internal currently hosted on Fabrikam’s BIND primary, configure Cloud DNS as a secondary with TSIG and allow-list Fabrikam’s primary for AXFR/IXFR. Keep Fabrikam as primary during the coexistence period.
    • Rationale: Secondary mode provides live synchronization without changing clients. It enables safe validation in Contoso while maintaining a single source of truth.
  5. Introduce split-horizon for externally exposed services

    • Create a public zone contoso.example with records pointing to a global HTTPS load balancer IP for customers. Create an identically named private zone attached to internal VPCs that maps the same names to internal ILB addresses.
    • Rationale: External users continue to reach edge load balancers; internal services reach private ILBs over RFC1918, optimizing latency and cost while maintaining consistent hostnames.
  6. Provide private access to Google APIs without egressing through firewalls

    • For Contoso VMs without external IPs, enable Private Service Connect for Google APIs and create the managed private DNS zone for googleapis.com that maps to PSC endpoints.
    • Rationale: Ensures BigQuery and Pub/Sub access remains private and local to the VPC, avoiding third-party egress appliances and preserving security posture.
  7. Enable observability and control

    • Turn on Cloud DNS query logging on Contoso’s DNS policy for involved VPCs and authoritative query logging on public zones. Create response policy rules to block known malicious domains organization-wide.
    • Rationale: Query telemetry supports troubleshooting and capacity planning; response policies provide central control for security without touching every resolver.
  8. Execute change management with safe TTLs

    • Reduce TTLs to 60s for records being migrated a week before changes. After validation and cutover (for example, switching a service from on-prem to GCP ILB), gradually raise TTLs to 300–600s.
    • Rationale: Short TTLs confine risk during transitions; restoring higher TTLs improves cache efficiency post-stabilization.
  9. Test, validate, and harden

    • From canary VMs on both sides, run dig with +trace and verify authoritative paths, confirm no SERVFAIL/NXDOMAIN spikes in logs, and simulate link failures to observe DNS behavior with VPN redundancy.
    • Rationale: Proactive validation detects loop/visibility issues early; failure simulations verify that hybrid resolution survives transport incidents without user impact.

Load Balancing · All domains · Private Connectivity to Google and Managed Services

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Google →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product