Skip to main content

Professional Cloud Architect practice question · Managing implementation of cloud architecture

A team's Cloud Build pipelines must download dependencies from a self-hosted artifact repository.

A team's Cloud Build pipelines must download dependencies from a self-hosted artifact repository. The repository runs on Compute Engine VMs that have only internal IP addresses in the company's VPC network. Which approach lets the builds reach the repository without exposing it to the internet?

  • ARun the builds in a Cloud Build private pool whose service producer network is peered with the company's VPC network
  • BKeep the builds in the default pool and add a firewall rule allowing the default pool's worker IP range to reach the VMs
  • CTurn on Private Google Access for the repository subnet so that Cloud Build workers can reach the repository VMs
  • DSet up Cloud NAT for the repository subnet so that default pool build workers can reach the VMs through the NAT gateway
Show the answer and explanation

Correct answer: A) Run the builds in a Cloud Build private pool whose service producer network is peered with the company's VPC network

For Cloud Build to reach resources that have only internal IP addresses, use a private pool and peer its service producer network with your VPC. Default pool workers have no private path into your network.

Why each option is right or wrong

  • A) Correct. Private pools are hosted in a Google-owned service producer network. Peering that network with your VPC gives builds access to private resources such as artifact repositories over internal IP addresses.
  • B) Incorrect. Default pool workers run outside your VPC and have no private connectivity to it. A firewall rule cannot give them a route to internal-only IP addresses.
  • C) Incorrect. Private Google Access lets VMs without external IPs reach Google APIs and services. It works in the opposite direction and does not let Cloud Build workers reach your VMs.
  • D) Incorrect. Cloud NAT only handles outbound connections from private instances. It does not accept inbound connections, so external build workers still cannot reach the repository.
Exam domain
Managing implementation of cloud architecture · ~12.5% of Professional Cloud Architect
Question type
Multiple choice (one answer)

Practise the full Professional Cloud Architect exam

This question is one of a small free sample from the CertRidge Professional Cloud Architect bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.