
Answer-first summary for fast verification
Answer: 1. Create a private forwarding zone in Cloud DNS for ‘corp.altostrat.com’ called corp-altostrat-com that points to 192.168.20.88. Associate the zone with the hub VPC. 2. Create a private peering zone in Cloud DNS for ‘corp.altostrat.com’ called corp-altostrat-com associated with the spoke VPCs, with the hub VPC as the target. 3. Set a custom route advertisement on the Cloud Router for 35.199.192.0/19. 4. Configure VPC peering in the spoke VPCs to peer with the hub VPC.
To ensure Compute Engine resources in spoke VPCs can resolve both on-premises and Google Cloud hostnames, the recommended approach involves DNS peering and proper route configuration. Here's the breakdown: 1. **Private Forwarding Zone in Hub VPC**: Create a private forwarding zone for 'corp.altostrat.com' in the hub VPC, pointing to the on-premises DNS server (192.168.20.88). This allows the hub to forward DNS queries for the on-premises domain. 2. **Private Peering Zone in Spoke VPCs**: Create a private peering zone in each spoke VPC for 'corp.altostrat.com', targeting the hub VPC. This enables spokes to route DNS queries for the domain to the hub, which then forwards them to on-premises. 3. **Custom Route Advertisement**: The Cloud Router in the hub must advertise the 35.199.192.0/19 subnet (Google's private DNS IP range) to ensure DNS queries for Google Cloud hostnames are routed correctly. 4. **VPC Peering**: Spoke VPCs must peer with the hub VPC to establish network connectivity required for DNS peering to function. Option **A** includes all these steps. Option **B** omits VPC peering (step 4), which is essential for DNS peering to work. Options **C** and **D** suggest redundant VPN configurations, violating the hub-and-spoke best practices.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are designing a hybrid cloud environment where your Google Cloud infrastructure connects to your on-premises network via HA VPN and Cloud Router in a central transit hub VPC (using default settings). Your on-premises DNS server is at 192.168.20.88. How can you enable Compute Engine instances across multiple spoke VPCs to resolve both on-premises private hostnames under the domain corp.altostrat.com and Google Cloud hostnames while adhering to Google's recommended practices?
A
B
C
D