A security engineer wants to apply a baseline set of firewall rules that apply to all new and existing VMs in an organization, and these rules must not be overridden by project-level rules. Which approach should be used?
Trap 1: Create a VPC firewall rule with priority 0.
This is incorrect. Even though priority 0 is the highest possible priority within VPC firewall rules, hierarchical firewall policies at the organization or folder level take precedence over any VPC firewall rule. Therefore, a VPC firewall rule with priority 0 can still be overridden by a hierarchical policy, failing the requirement that baseline rules must not be overridden by project-level rules.
Trap 2: Use Cloud IDS to monitor and block traffic.
Cloud IDS is for threat detection, not rule enforcement.
Trap 3: Create a firewall rule in each project and enforce via policy…
Project-level rules can be overridden or misconfigured.
- A
Create a VPC firewall rule with priority 0.
Why wrong: This is incorrect. Even though priority 0 is the highest possible priority within VPC firewall rules, hierarchical firewall policies at the organization or folder level take precedence over any VPC firewall rule. Therefore, a VPC firewall rule with priority 0 can still be overridden by a hierarchical policy, failing the requirement that baseline rules must not be overridden by project-level rules.
- B
Use Cloud IDS to monitor and block traffic.
Why wrong: Cloud IDS is for threat detection, not rule enforcement.
- C
Create a firewall rule in each project and enforce via policy library.
Why wrong: Project-level rules can be overridden or misconfigured.
- D
Use a hierarchical firewall policy at the organization level.
Hierarchical policies cannot be overridden, enforcing baseline rules.