Security policy forbids external IP addresses on Dataflow worker VMs, but workers must reach Google Cloud APIs such as BigQuery. What should be configured?
- Exam domain
- Ingesting and processing the data~25% of the exam
- Difficulty
- Hard
- In this mock
- 14 questions on this domainPractise this domain
Why the exam asks this
Ingesting and processing the data: Planning the data pipelines.
Objective in the exam guide: Networking fundamentals.
Locked-down networks break pipelines. The exam checks the fix.
Why C is the answer
Private Google Access on the workers' subnet
With Private Google Access, VMs that have only internal IP addresses can reach Google APIs and services.
How it works
Dataflow workers are VMs on a VPC subnet.
Without external IPs, they need Private Google Access to reach Google APIs.
Firewall rules must allow worker-to-worker traffic.
Clues in the question
The words that point to the answer, and what each one tells you.
- No external IPs
- Internal-only VMs.
- Reach Google APIs
- Private Google Access.
In detail
- Firewall rules must also allow traffic between workers.
- Internet access for other sites needs Cloud NAT or similar.
Side by side with look-alikes
| Option | Meets policy and reaches APIs? |
|---|---|
| Private Google Access | Yes |
| Public IPs | No, breaks policy |
| Larger machine | No |
| Dead-letter topic | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A larger worker machine typeWrong
Machine size does not change routing.
B. A Pub/Sub dead-letter topicWrong
A dead-letter topic handles failed messages.
C. Private Google Access on the workers' subnetRight
With Private Google Access, VMs that have only internal IP addresses can reach Google APIs and services.
D. Public IPs on every workerWrongMost tempting
Public IPs break the policy.
Why it tempts: It would restore access. But it breaks the security policy.
In practice
- Launch Dataflow with the option to disable public IPs and point it at the prepared subnet.