A service name example.internal must resolve to a private IP inside the VPC but to a public IP for internet clients. What Cloud DNS pattern achieves this split-horizon behavior?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a public managed zone and a private managed zone that share the same DNS name; attach the private zone to the VPC network so internal queries receive private records..
Why this is the answer
The correct solution leverages Cloud DNS's split-horizon functionality. By creating both a public and a private managed zone for the same DNS name (e.g., example.internal), and attaching the private zone to your VPC network, internal queries will resolve using the private zone's records, returning private IPs. External queries will resolve using the public zone, returning public IPs. This provides the desired behavior where the same hostname resolves differently based on the client's origin. The other options are incorrect: Relying on firewall tags to change DNS responses is not a standard or supported Cloud DNS feature. Firewalls control traffic, not DNS resolution logic. A forwarding zone is used to forward queries to another DNS server, not to provide split-horizon resolution for the same domain. DNSSEC is for securing DNS responses against tampering, not for altering resolution based on client location or providing private IPs to internal clients.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed