Google Cloud Professional Cloud Network Engineer — Question 99

You are migrating a three-tier application architecture from on-premises to Google Cloud. As a first step in the migration, you want to create a new Virtual Private Cloud (VPC) with an external HTTP(S) load balancer. This load balancer will forward traffic back to the on-premises compute resources that run the presentation tier. You need to stop malicious traffic from entering your VPC and consuming resources at the edge, so you must configure this policy to filter IP addresses and stop cross-site scripting (XSS) attacks. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because Google Cloud Armor is specifically designed to protect backend services, and using an internet network endpoint group (NEG) backend allows for better integration with external resources. Option A is incorrect as unmanaged instance groups are less optimal for this purpose. Option B does not directly address the filtering of malicious traffic at the load balancer level, and option D focuses on firewall rules that do not provide the same level of application-specific protection as Google Cloud Armor.