PROFESSIONAL-CLOUD-SECURITY-ENGINEER · Question #15
A customer is running an analytics workload on Google Cloud Platform (GCP) where Compute Engine instances are accessing data stored on Cloud Storage. Your team wants to make sure that this workload…
The correct answer is A. Configure Private Google Access on the Compute Engine subnet B. Avoid assigning public IP addresses to the Compute Engine cluster. To ensure Compute Engine instances accessing Cloud Storage cannot interact with the internet, configure Private Google Access on their subnet and avoid assigning them public IP addresses.
Question
Options
- AConfigure Private Google Access on the Compute Engine subnet
- BAvoid assigning public IP addresses to the Compute Engine cluster.
- CMake sure that the Compute Engine cluster is running on a separate subnet.
- DTurn off IP forwarding on the Compute Engine instances in the cluster.
- EConfigure a Cloud NAT gateway.
How the community answered
(29 responses)- A72% (21)
- C7% (2)
- D17% (5)
- E3% (1)
Why each option
To ensure Compute Engine instances accessing Cloud Storage cannot interact with the internet, configure Private Google Access on their subnet and avoid assigning them public IP addresses.
Configuring Private Google Access on the subnet allows Compute Engine instances without public IP addresses to securely access Google services, such as Cloud Storage, using internal IP addresses, thereby preventing internet egress for these interactions.
Avoiding public IP addresses on Compute Engine instances ensures they cannot be directly accessed from the internet and cannot initiate outbound connections to the internet without additional mechanisms like Cloud NAT, fulfilling the requirement of isolation from the internet.
Running on a separate subnet provides network segmentation within the VPC but does not inherently prevent internet access or access from the internet if public IPs are assigned or default routes allow it.
Turning off IP forwarding on Compute Engine instances prevents them from acting as routers for other instances but does not restrict their own internet access or ingress from the internet.
Configuring a Cloud NAT gateway enables instances without public IP addresses to initiate outbound connections to the internet, which directly contradicts the requirement to prevent any internet access.
Concept tested: Private Google Access and network isolation
Source: https://cloud.google.com/vpc/docs/private-google-access
Topics
Community Discussion
No community discussion yet for this question.