You have placed several Compute Engine instances in a private subnet. You want to allow these instances to access Google Cloud services, like Cloud Storage, without traversing the internet. What should you do?
A.
Enable Private Google Access for the private subnet.
B.
Configure Private Service Connect for the private subnet's Virtual Private Cloud (VPC) and allocate an IP range for the Compute Engine instances.
C.
Reserve and assign static external IP addresses for the Compute Engine instances.
D.
Create a Cloud NAT gateway for the region where the private subnet is configured.
The correct answer is:
A. Enable Private Google Access for the private subnet.
Reasoning:
Private Google Access: This feature allows instances in a private subnet to reach Google APIs and services without using their public IP addresses. This is the most direct and recommended way to achieve your goal.
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.
Mr_MIXER007
2 months, 2 weeks agobrunolopes07
2 months, 3 weeks ago