Google Cloud Professional Cloud Network Engineer — Question 34

You need to restrict access to your Google Cloud load-balanced application so that only specific IP addresses can connect.
What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because tagging the backend instances allows for the creation of a firewall rule that specifically targets those instances based on the defined tag, effectively controlling access based on the source IP range. Option A incorrectly references the Access Context Manager, which is not necessary for this scenario, while B suggests marking the load balancer itself, which does not directly address the backend instances. Option D uses 'label' instead of 'tag,' which is not applicable for setting up firewall rules in this context.