A network administrator configures two ingress firewall rules for a Google Cloud Virtual Private Cloud (VPC) network targeting the same Compute Engine instance. The first rule, named allow-web, allows TCP traffic on port 80 with a priority of 1000. The second rule, named deny-web, denies TCP traffic on port 80 with a priority of 500. When TCP traffic on port 80 arrives at the instance, which firewall rule determines how the traffic is handled?
- The deny-web rule, because lower numerical values specify higher evaluation priority in Google Cloud firewall rules.Cevap
- BThe allow-web rule, because higher numerical values specify higher evaluation priority in Google Cloud firewall rules.
- CThe allow-web rule, because allow rules automatically override deny rules regardless of their assigned priorities.
- DNeither rule, because rules with conflicting actions matching the same port cancel each other out.
Cevap
The deny-web rule determines how traffic is handled because lower numerical values specify higher evaluation priority in Google Cloud VPC firewall rules.
The correct response explains that the deny-web rule takes effect because in Google Cloud VPC firewall rules, lower priority numbers have higher precedence (priority 0 to 65535, where 0 is highest). Priority 500 is evaluated before priority 1000.
Adım Adım Çözüm
Anahtar Kavram
Google Cloud VPC Firewall Rule Priority Ordering