A system administrator configures two custom ingress firewall rules on a VPC network named `production-vpc` to manage access to a group of internal web servers tagged `web-server`:
1. Rule `allow-internal-web`: Priority 1000, Action: Allow, Target tags: `web-server`, Source tags: `internal-client`, Protocols/ports: `tcp:8080`
2. Rule `deny-web-all`: Priority 800, Action: Deny, Target tags: `web-server`, Source IP ranges: `0.0.0.0/0`, Protocols/ports: `tcp:8080`
During testing, instances tagged `internal-client` are unable to reach instances tagged `web-server` on port 8080. Which configuration change will allow traffic from `internal-client` to `web-server` on TCP port 8080 while continuing to block all other ingress traffic?
- Change the priority of the rule `allow-internal-web` to a value lower than 800, such as 700.Cevap
- BChange the priority of the rule `allow-internal-web` to a value higher than 800, such as 1200.
- CAssign the primitive `Owner` IAM role to the service account used by the web server Virtual Machines.
- DDelete the `deny-web-all` firewall rule and rely on GCP Organization Policy inheritance to restrict incoming public traffic.
Cevap
Change the priority of the rule allow-internal-web to a numerical value lower than 800 (for example, priority 700).
Google Cloud VPC firewall rules are processed strictly by priority order, where lower numbers have higher precedence. Currently, the deny rule (priority 800) takes precedence over the allow rule (priority 1000), blocking all traffic on TCP port 8080 including traffic from `internal-client`. Changing the priority of `allow-internal-web` to a value lower than 800 (such as 700) ensures that packets from `internal-client` match the allow rule first and are permitted, while non-matching traffic falls through to priority 800 and is denied.
Adım Adım Çözüm
Anahtar Kavram
VPC Firewall Rule Priority and Evaluation Precedence
Tahmini Süre:1m 30s