Skip to main content

Associate Cloud Engineer practice question · Planning and implementing a cloud solution

A third-party SaaS partner runs its service in its own Google Cloud project and has published it through a service…

A third-party SaaS partner runs its service in its own Google Cloud project and has published it through a service attachment. Your team wants VMs in your VPC to reach this one service privately at an internal IP address in your network. You don't want to connect the two VPC networks to each other. What should you create in your VPC?

  • AA Private Service Connect endpoint (forwarding rule) that references the partner's service attachment
  • BA VPC Network Peering connection between your VPC and the partner's VPC network
  • CA Cloud NAT gateway on your subnet so the VMs can reach the partner's service
  • DPrivate Google Access enabled on the subnet where the VMs run
Show the answer and explanation

Correct answer: A) A Private Service Connect endpoint (forwarding rule) that references the partner's service attachment

To consume a service a producer has published through a service attachment, create a Private Service Connect endpoint (a forwarding rule) in your own VPC. Clients then reach the service at an internal IP address, and the two networks are not connected to each other.

Why each option is right or wrong

  • A) Correct. A Private Service Connect endpoint is a forwarding rule in the consumer VPC that references the producer's service attachment. Clients in your VPC reach the published service at a regional internal IP address in your network, and the two networks are not connected to each other.
  • B) Incorrect. Peering connects the two VPC networks to each other at the network level, which the requirement rules out. It also needs non-overlapping IP ranges. Peering doesn't use the partner's service attachment, which is a Private Service Connect construct.
  • C) Incorrect. Cloud NAT lets VMs without external IPs make outbound connections to the internet. Traffic to the partner would still go to a public endpoint, and the service wouldn't get an internal IP address in your VPC.
  • D) Incorrect. Private Google Access lets VMs without external IPs reach Google APIs and services. It doesn't give private access to a third party's service published through a service attachment.
Exam domain
Planning and implementing a cloud solution · ~30% of Associate Cloud Engineer
Question type
Multiple choice (one answer)

Practise the full Associate Cloud Engineer exam

This question is one of a small free sample from the CertRidge Associate Cloud Engineer 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.