Soru

Zorluk: OrtaDeploying Cloud Load Balancers and Configuring Cloud DNS

Your team is deploying an internal microservices application across two Google Cloud Virtual Private Cloud (VPC) networks, `backend-vpc` and `analytics-vpc`, within the same project. You have created a Cloud DNS private zone named `internal-dev-zone` managing the domain `dev.example.internal`. Virtual machines in both VPC networks must be able to resolve domain names defined inside this private zone. Which TWO of the following actions are required to successfully enable DNS resolution for both networks?

  1. Add both `backend-vpc` and `analytics-vpc` to the list of authorized VPC networks in the private zone settings.Cevap
  2. Ensure the Cloud DNS API is explicitly enabled in the Google Cloud project where the DNS private zone is created.Cevap
  3. C
    Rely on IAM policy inheritance from the Organization resource level to automatically authorize all VPC networks across child projects for private DNS resolution.
  4. D
    Deploy a Regional External Application Load Balancer between `backend-vpc` and `analytics-vpc` to route port 53 DNS queries between the networks.

Cevap

The correct actions are to add both VPC networks (`backend-vpc` and `analytics-vpc`) to the authorized networks list of the Cloud DNS private zone and to ensure the Cloud DNS API is enabled in the host project.
To allow VMs across multiple VPC networks to resolve records in a Cloud DNS private zone, each VPC network must be explicitly added to the private zone's authorized networks list. Additionally, the Cloud DNS API must be enabled in the project containing the DNS resources for the service to function.

Adım Adım Çözüm

1
Verify API Status
Confirm the Cloud DNS API (`dns.googleapis.com`) is enabled in the project hosting the infrastructure.
GCP services require explicit API enablement in the target project before resources can be configured.
2
Configure Authorized VPC Networks
In the Cloud DNS private zone creation/update settings, attach `backend-vpc` and `analytics-vpc` as authorized networks.
Private DNS zones are invisible to VPC networks unless explicitly authorized in the zone's network configuration list.

Anahtar Kavram

Cloud DNS Private Zone Authorization & VPC Network Scope
Bu soruyu puanla