Hybrid Cloud DNS Resolution for Artifact Registry

Networking & Hybrid Connectivity
Answer Correct answer: A — Create DNS records for restricted.googleapis.com or private.googleapis.com pointing to Google's published IP ranges.

Your organization operates a hybrid cloud environment and has recently deployed a private Artifact Registry repository in Google Cloud. On-premises developers cannot resolve the Artifact Registry hostname and therefore cannot push or pull artifacts. You've verified the following: • Connectivity to Google Cloud is established by Cloud VPN or Cloud Interconnect. • No custom DNS configurations exist on-premises. • There is no route to the internet from the on-premises network. You need to identify the cause and enable the developers to push and pull artifacts. What is likely causing the issue and what should you do to fix the issue?

  1. On-premises DNS servers lack the necessary records to resolve private Google API domains. Create DNS records for restricted.googleapis.com or private.googleapis.com pointing to Google's published IP ranges. Correct Answer
  2. Developers must be granted the artifactregistry.writer IAM role. Grant the relevant developer group this role.
  3. Private Google Access is not enabled for the subnet hosting the Artifact Registry. Enable Private Google Access for the appropriate subnet.
  4. Artifact Registry requires external HTTP/HTTPS access. Create a new firewall rule allowing ingress traffic on ports 80 and 443 from the developer's IP ranges.

Community Votes

A
100%

100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

Tests hybrid DNS configuration for private Google services, highlighting the trap of assuming VPC-level Private Google Access fixes on-prem resolution issues.

Resolves on-premises hostname lookup failures for Google Cloud Artifact Registry by configuring proper DNS routing over private interconnects. Establishes that missing DNS records for private Google domains block artifact operations.

Selecting Private Google Access (C) because it enables private API access, but overlooking that PGA applies to VPC subnets and does not resolve on-premises DNS queries without internet routing.

Community Discussion (4 comments)

1e22522 👍 4 Selected: A
It's A i have done this before on customers organizations
Ponchi14 👍 1 Selected: A
A is the right answer
d0fa7d5 👍 2 Selected: A
It mentions that the hostname cannot be resolved, so I think A is the correct answer.
yokoyan 👍 1 Selected: A
I think it's A.

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

The core failure is hostname resolution for a private Artifact Registry endpoint from an on-premises network with no internet egress. Since connectivity exists via VPN or Interconnect, traffic must be routed privately. Creating DNS records that map the registry’s hostname to private.googleapis.com or restricted.googleapis.com directs on-prem clients to resolve the address through the secure tunnel rather than the public internet, enabling successful push and pull operations.

Why the Other Options Are Wrong

Granting IAM roles (B) manages permissions but does not solve network-level DNS failures. Enabling Private Google Access (C) only modifies VPC subnet metadata to allow internal VMs to reach Google APIs privately; it does not propagate DNS information to on-premises servers. Configuring external firewall rules (D) contradicts the stated constraint of having no internet route and still leaves DNS unresolved.

Community Comment Notes

Learners consistently selected A, noting that unresolvable hostnames in hybrid setups directly point to missing DNS mappings for private Google endpoints. Several practitioners confirmed this pattern based on real-world customer deployments where on-prem DNS had to be manually updated to route traffic through the interconnect, as one user noted: "It mentions that the hostname cannot be resolved, so I think A is the correct answer." The consensus reinforces that DNS configuration takes precedence when connectivity is already verified.

Exam Strategy

Always distinguish between VPC-level private access mechanisms and on-premises DNS requirements in hybrid scenarios. When internet egress is blocked, prioritize DNS routing and Private Service Connect configurations before checking IAM or firewall rules.

Frequently Asked Questions

Why doesn't Private Google Access fix on-prem DNS?

PGA only configures VPC subnets to route Google API traffic privately; it does not modify on-premises DNS servers or resolve hostnames outside the VPC.

Can I use Cloud NAT instead of updating DNS?

Cloud NAT provides outbound internet access, but the scenario explicitly states no internet route exists. Private DNS routing through the interconnect is required.

Related Analysis

← Back to PCSE Study Guide