Skip to main content

Associate Cloud Engineer practice question · Configuring access and security

Applications in three VPC networks, each owned by a different team in a different project, must connect to one Cloud SQL…

Applications in three VPC networks, each owned by a different team in a different project, must connect to one Cloud SQL instance. The security team says the instance must not have a public IP address and wants to avoid VPC Network Peering between the instance's network and the team networks. Which approach meets these requirements?

  • AEnable Private Service Connect on the instance and create a Private Service Connect endpoint in each team's VPC
  • BConfigure private services access in each team's VPC so that every network peers with the Cloud SQL producer network
  • CAssign a public IP address and restrict access with authorized networks that list each team's Cloud NAT addresses
  • DAssign a public IP address and require every application to connect through the Cloud SQL Auth Proxy
Show the answer and explanation

Correct answer: A) Enable Private Service Connect on the instance and create a Private Service Connect endpoint in each team's VPC

Private Service Connect lets several consumer VPCs reach a Cloud SQL instance privately, each through its own endpoint, with no public IP and no VPC peering. Private services access relies on peering, and the public-IP options break the no-public-IP requirement.

Why each option is right or wrong

  • A) Correct. With Private Service Connect, each consumer VPC reaches the instance through its own endpoint, which uses an internal IP address from that VPC. The instance needs no public IP, and no VPC peering is involved, so peering quotas and transitive-peering limits don't apply.
  • B) Incorrect. Private services access is built on VPC Network Peering with the service producer network, which the security team wants to avoid. Reaching a single instance from several VPCs this way is also awkward, because peering isn't transitive.
  • C) Incorrect. Authorized networks narrow which sources can connect, but the instance still has a public IP address, which breaks the security requirement.
  • D) Incorrect. The Cloud SQL Auth Proxy adds IAM-based authorization and encryption, but this design still exposes the instance on a public IP address, which the requirement forbids.
Exam domain
Configuring access and security · ~20% 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.