An administrator is configuring ingress firewall rules for a Virtual Private Cloud (VPC) network in Google Cloud. Rule-Alpha is configured with a priority of 200 and an action of DENY. Rule-Beta is configured with a priority of 800 and an action of ALLOW. Both rules target the exact same Compute Engine instances and match the exact same protocol and port. Which rule takes precedence when matching traffic arrives?
- Rule-Alpha takes precedence because in Google Cloud VPC networks, lower numerical priority values denote higher precedence.Cevap
- BRule-Beta takes precedence because higher numerical priority values override lower priority values in Google Cloud VPC networks.
- CRule-Beta takes precedence because ALLOW rules automatically override DENY rules regardless of priority integer values.
- DBoth rules are evaluated simultaneously, and traffic is allowed by default if any matching ALLOW rule exists.
Cevap
Rule-Alpha takes precedence because in Google Cloud VPC networks, lower numerical priority values denote higher precedence.
In Google Cloud VPC firewall rule evaluation, priority is specified as an integer from 0 to 65535. Lower numerical values represent higher relative priority. Because Rule-Alpha has a priority of 200 and Rule-Beta has a priority of 800, Rule-Alpha is evaluated first and its DENY action is enforced.
Adım Adım Çözüm
Anahtar Kavram
GCP VPC Firewall Rule Priority Precedence