Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Data Engineer All Questions

View all questions & answers for the Professional Data Engineer exam

Exam Professional Data Engineer topic 1 question 216 discussion

Actual exam question from Google's Professional Data Engineer
Question #: 216
Topic #: 1
[All Professional Data Engineer Questions]

You are developing an Apache Beam pipeline to extract data from a Cloud SQL instance by using JdbcIO. You have two projects running in Google Cloud. The pipeline will be deployed and executed on Dataflow in Project A. The Cloud SQL. instance is running in Project B and does not have a public IP address. After deploying the pipeline, you noticed that the pipeline failed to extract data from the Cloud SQL instance due to connection failure. You verified that VPC Service Controls and shared VPC are not in use in these projects. You want to resolve this error while ensuring that the data does not go through the public internet. What should you do?

  • A. Set up VPC Network Peering between Project A and Project B. Add a firewall rule to allow the peered subnet range to access all instances on the network.
  • B. Turn off the external IP addresses on the Dataflow worker. Enable Cloud NAT in Project A.
  • C. Add the external IP addresses of the Dataflow worker as authorized networks in the Cloud SQL instance.
  • D. Set up VPC Network Peering between Project A and Project B. Create a Compute Engine instance without external IP address in Project B on the peered subnet to serve as a proxy server to the Cloud SQL database.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
fadlkhafdofpew
2 months, 1 week ago
Selected Answer: A
The answer is A. While D might work, it adds unnecessary complexity. Setting up a proxy is an extra layer of infrastructure that isn’t required
upvoted 1 times
...
aoifneofi_ef
3 months, 1 week ago
Selected Answer: D
It is a tie between A and D. Option A will definitely provide necessary connectivity but is less secure as access is enabled to "all instances". Which i feel is unnecessary considering industry best practices. Option D provides the necessary connectivity but brings in the unnecessary overhead of managing an extra VM and introduces a bit of extra complexity. Since the question emphasises on data not going through public internet(which is satisfied in both options), i would prioritise security over simplicity and choose option D in this case.
upvoted 3 times
...
Saaaurabh
3 months, 1 week ago
Selected Answer: A
If properly implemented with the right routing and firewall rules, Option A can be the correct and most straightforward solution, as it leverages VPC Peering to maintain internal traffic without going through the public internet.
upvoted 1 times
...
meh_33
3 months, 2 weeks ago
A is correct
upvoted 1 times
...
kk1211
4 months, 2 weeks ago
still confused between A and D
upvoted 1 times
...
Lenifia
4 months, 3 weeks ago
Selected Answer: A
A is correct
upvoted 2 times
...
kajitsu
4 months, 3 weeks ago
Selected Answer: A
no proxy needed
upvoted 1 times
...
Lestrang
5 months, 2 weeks ago
Selected Answer: A
People referencing "VPC Network Peering does not provide transitive routing. For example, if VPC networks net-a and net-b are connected using VPC Network Peering, and VPC networks net-a and net-c are also connected using VPC Network Peering, VPC Network Peering does not provide connectivity between net-b and net-c." the question states that cloud sql is running in project B. Which means the instance is already part of the VPC in project B, so with Network Peering workers from A can definitely access data in B. No proxy is needed.
upvoted 1 times
...
fabiogoma
6 months ago
Selected Answer: A
Why so many people are voting for D? There's no need for a proxy, the peering is enough to allow network traffic between subnets.
upvoted 2 times
fabiogoma
6 months ago
Now I see why, I put this on ChatGPT and it thinks the right answer is D. I'm pretty sure that's a hallucination.
upvoted 2 times
...
...
ccpmad
6 months, 1 week ago
Proxy? no, it is not necessary.. A
upvoted 2 times
...
josech
6 months, 1 week ago
Selected Answer: D
https://cloud.google.com/sql/docs/mysql/connect-multiple-vpcs
upvoted 2 times
...
chrissamharris
9 months ago
Selected Answer: A
A - The requirement for a proxy is un-necessary: https://cloud.google.com/sql/docs/mysql/private-ip#multiple_vpc_connectivity
upvoted 4 times
...
ML6
9 months, 1 week ago
Option D. Source: https://cloud.google.com/sql/docs/mysql/private-ip#multiple_vpc_connectivity
upvoted 2 times
...
JyoGCP
9 months, 1 week ago
Selected Answer: D
Option D
upvoted 1 times
...
lipa31
10 months ago
Selected Answer: D
the reason : Cloud SQL supports private IP addresses through private service access. When you create a Cloud SQL instance, Cloud SQL creates the instance within its own virtual private cloud (VPC), called the Cloud SQL VPC. Enabling private IP requires setting up a peering connection between the Cloud SQL VPC and your VPC network.
upvoted 2 times
...
saschak94
10 months, 2 weeks ago
Selected Answer: D
Using VPC Network Peering, Cloud SQL implements private service access internally, which allows internal IP addresses to connect across two VPC networks regardless of whether they belong to the same project or organization. However, since VPC Network Peering isn't transitive, it only broadcasts routes between the two VPCs that are directly peered. If you have an additional VPC, it won't be able to access your Cloud SQL resources using the connection set up with your original VPC.
upvoted 1 times
...
datapassionate
10 months, 2 weeks ago
Selected Answer: D
D. Set up VPC Network Peering between Project A and Project B. Create a Compute Engine instance without external IP address in Project B on the peered subnet to serve as a proxy server to the Cloud SQL database.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...