In a Shared VPC (host project + service projects), Compute instances in service projects must resolve on‑prem hostnames over a Dedicated Interconnect. What should you configure?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a Cloud DNS private forwarding zone in the host project that forwards the private zone to the on‑prem DNS servers. In Cloud Router, add a custom route advertisement for 35.199.192.0/19 to on‑prem..
Why this is the answer
To resolve on-prem hostnames from Compute instances in service projects within a Shared VPC, you need to configure DNS forwarding. A Cloud DNS private forwarding zone in the host project, forwarding queries to on-prem DNS servers, is the correct approach. This ensures all service projects can utilize the same DNS configuration. The Cloud Router needs a custom route advertisement for 35.199.192.0/19 to on-prem. This range is Google's internal IP address space for Cloud DNS forwarding, allowing on-prem DNS servers to send responses back to Cloud DNS. The second option is incorrect because 169.254.169.254 is the metadata server IP, not relevant for DNS forwarding. The third and fourth options are incorrect because they describe inbound forwarding (on-prem resolving cloud resources), not outbound forwarding (cloud resolving on-prem resources), and the IP 169.254.169.254 is again irrelevant.
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