When configuring ingress firewall rules in a Google Cloud Virtual Private Cloud (VPC) network, multiple rules may match incoming network traffic. How does Google Cloud determine which firewall rule takes precedence when two matching rules conflict?
- The rule with the lower numerical priority value takes precedence and is evaluated first.Answer
- BThe rule with the higher numerical priority value takes precedence and is evaluated first.
- CRules applied to specific subnets automatically override VPC-level rules regardless of priority numbers.
- DALLOW rules always take precedence over DENY rules regardless of their assigned priority numbers.
Answer
The rule with the lower numerical priority value takes precedence and is evaluated first.
In Google Cloud VPC, firewall rule priority is an integer from 0 to 65535. Rules with lower numerical priority values are evaluated first. Once a rule matches traffic, lower priority (higher numbered) rules are not evaluated.
Step-by-Step Solution
Key Concept
GCP VPC Firewall Rule Priority Precedence
Estimated Time:45s