A Dataflow job in Project A fails to connect to a Cloud SQL instance in Project B that has no public IP. VPC Service Controls and Shared VPC are not in use. Ensure the pipeline can access Cloud SQL without traversing the public internet. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Set up VPC Network Peering between Project A and Project B so Dataflow workers in A can reach the Cloud SQL instance privately..
Why this is the answer
VPC Network Peering allows private IP connectivity between two VPC networks, even across different projects. By peering Project A (Dataflow) and Project B (Cloud SQL), Dataflow workers can access the Cloud SQL instance using its private IP address, ensuring traffic does not traverse the public internet. Deploying a Compute Engine VM as a private proxy is an unnecessary additional layer of complexity and management overhead when peering offers a direct solution. Adding external IP addresses of Dataflow workers to authorized networks would expose the Cloud SQL instance to the public internet, which violates the requirement of not traversing the public internet and is not possible for an instance with no public IP. Setting up peering and then provisioning a VM proxy is redundant; peering alone provides the necessary private connectivity.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed