Google Professional Cloud Network Engineer Question 526
Select 2Google Cloud PlatformYour company needs to configure DNS to support a multi-region application deployment in Google Cloud. The application should route users to the nearest regional backend for optimal performance. Which of the following steps should you take to ensure this functionality using Cloud DNS?
- A
Create a Cloud DNS public zone and configure geo-location-based routing with multiple A/AAAA records for each region.
- B
Set up a Cloud DNS private zone and configure forwarding to route requests to the nearest backend.
- C
Use Cloud Load Balancer with a global external IP and enable geo-based routing in the load balancer configuration.
- D
Configure a Cloud DNS policy to block queries from regions without a backend.
- E
Use Cloud DNS with a traffic director policy to manage routing based on geo-location.
Show answer and explanation
Correct answers: A, C
Explanation
To enable DNS-based geo-location routing for a multi-region deployment, you need to configure Cloud DNS with geo-location-specific records (e.g., A/AAAA records) or use a Global Load Balancer with geo-routing capabilities. Private zones, DNS policies, and Traffic Director are not suitable for this use case.
- A. Correct.
This is correct because Cloud DNS supports geo-location-based routing by configuring DNS records with region-specific values, allowing users to resolve to the nearest backend.
- B. Incorrect.
This is incorrect because private zones are used for internal DNS within a VPC, and forwarding would not achieve geo-based routing.
- C. Correct.
This is correct because Global Load Balancers in Google Cloud support geo-based routing, which works in conjunction with Cloud DNS.
- D. Incorrect.
This is incorrect because DNS policies are used to control query behavior, not to manage geo-based routing.
- E. Incorrect.
This is incorrect because Traffic Director is used for service mesh and traffic management, but it does not directly integrate with Cloud DNS for geo-based routing.