GCP Associate Cloud Engineer Practice Question 80: Hierarchical Firewall Policy

Google Cloud Associate Cloud Engineer · Test 8 · question 10 of 10

VPC Networkingmedium

A company has dozens of projects spread across several folders in its organization. The security team wants to enforce a rule that blocks inbound traffic from the public internet to a sensitive port across every project in the organization, in a way that project owners cannot override with their own VPC firewall rules. What should they configure?

Select one answer
Show answer and explanation

Answer:

  • C. A hierarchical firewall policy attached to the organization node, with a rule that denies the traffic.

A hierarchical firewall policy can be attached to the organization or a folder and its rules are enforced across every project beneath it. Rules from a higher level in the hierarchy take precedence and cannot be overridden by lower level VPC firewall rules, which is exactly the centralized, non overridable control the security team wants.

Option A requires manually creating and maintaining an identical rule in every project's VPC, which does not scale, is error prone, and can still be changed or removed by a project owner with the right permissions since it is an ordinary VPC firewall rule. Option B, an organization policy constraint, can restrict some aspects of resource configuration but is not the mechanism used to enforce network traffic rules; firewall behavior is controlled through firewall rules and policies, not organization policy constraints. Option D, Cloud Armor, protects HTTP or HTTPS traffic through a global external load balancer and would need to be configured per load balancer; it does not provide organization wide enforcement over all inbound traffic to a port across every VPC network.

Reference: Hierarchical firewall policies

Practice Test 8 ›

Study guides for Google Cloud Associate Cloud Engineer