Google Professional Cloud Network Engineer Question 534
Single answerGoogle Cloud PlatformYou manage a multi-region application hosted on Google Cloud using multiple Virtual Private Cloud (VPC) networks. You need to set up a DNS configuration that allows your application to resolve private IPs of services hosted in these VPC networks. The solution must ensure low latency and avoid manual DNS management every time a new service is deployed in the VPCs. Which solution should you choose?
- A
Create a Cloud DNS public zone and manually add A records for each service.
- B
Set up a Cloud DNS private zone and configure DNS peering between the VPC networks.
- C
Use Cloud DNS forwarding zones to forward DNS queries to an external DNS server.
- D
Set up a Cloud DNS managed private zone with VPC-level attachment for automatic resolution of private services.
Show answer and explanation
Correct answer: D
Explanation
The best solution for resolving private IPs across multiple VPCs with minimal manual effort is to use a Cloud DNS managed private zone with VPC-level attachment. This setup automatically handles DNS resolution for private services hosted in the VPCs, ensuring low latency and reducing operational overhead. Other options either expose private IPs, require additional configuration, or are not applicable to the scenario.
- A. Incorrect.
Incorrect: A public DNS zone is not suitable since it exposes private IPs to the internet, and manual management of A records is not scalable.
- B. Incorrect.
Incorrect: While private zones with DNS peering can work, they require additional configuration and manual setup for each VPC, which is less efficient.
- C. Incorrect.
Incorrect: DNS forwarding zones are used to forward queries to external name servers, which is unnecessary in this case since Cloud DNS can handle private zones for VPCs.
- D. Correct.
Correct: A managed private zone with VPC-level attachment allows for automatic resolution of private IPs of services in the VPC network, meeting the requirements of low latency and reduced manual effort.