Enforce organization-wide SSH access rules: always allow SSH from a corporate IP and deny SSH from all other IPs across multiple projects/VPCs, preventing bypass by other VPC firewall rules.
Choose an answer
Tap an option to check your answer.
Correct answer: At the organization node, create a hierarchical firewall policy allow TCP 22 from corporate IP with priority 0, then a hierarchical policy deny TCP 22 for all IPs with priority 1..
Why this is the answer
The correct approach uses hierarchical firewall policies at the organization node to enforce rules across all projects and VPCs, preventing bypass. A lower priority number indicates higher precedence. Therefore, an "allow" rule with priority 0 will always take precedence over a "deny" rule with priority 1. This ensures SSH from the corporate IP is always allowed, and all other SSH is denied, regardless of other VPC firewall rules. VPC firewall rules (options B and C) are project-specific and can be overridden or bypassed by other VPC rules within different projects, failing to meet the "organization-wide" requirement. Option D incorrectly assigns priorities, as a deny rule with priority 0 would block all SSH before the allow rule with priority 1 could take effect.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed