Soru

Zorluk: OrtaDeploying Virtual Private Cloud (VPC) Networks, Subnets, and Firewall Rules

A network operations team is deploying firewall rules in a custom-mode Virtual Private Cloud (VPC) network. A target compute tier tagged `db-node` must receive PostgreSQL traffic on TCP port 5432 exclusively from an application tier tagged `app-node`. An existing firewall rule named `block-db-ingress` explicitly denies all ingress traffic on port 5432 with a priority of 500. Which TWO configuration settings must be applied to the new firewall rule to successfully allow this ingress traffic?

  1. Set the rule priority to a numerical value lower than 500 (such as 100).Cevap
  2. Configure the target tags as `db-node` and the source tags as `app-node`.Cevap
  3. C
    Set the rule priority to a numerical value higher than 500 (such as 1000).
  4. D
    Grant the primitive Editor role to the service account assigned to the destination instances to bypass VPC firewall rules.

Cevap

The correct options require setting the firewall rule priority to a numerical value lower than 500 and configuring target tags as `db-node` with source tags as `app-node`.
To grant access when a broader deny rule exists, the new allow rule must have a lower numerical priority (e.g., 100) than the existing deny rule (priority 500) because GCP processes rules in ascending numerical order. Additionally, for ingress rules, target tags identify the receiving destination workloads while source tags specify allowed origin workloads.

Adım Adım Çözüm

1
Determine firewall priority requirements to override existing deny rule
Identified that GCP firewall evaluation order prioritizes lower integer values. Setting priority below 500 (e.g., 100) ensures the allow rule evaluates before the deny rule.
GCP evaluates firewall rules strictly in ascending numerical order of priority, stopping at the first matching rule.
2
Configure network tag parameters for ingress traffic flow
Set `--target-tags=db-node` for receiving instances and `--source-tags=app-node` for initiating instances.
Ingress rules apply filtering where target tags specify the destination VMs receiving traffic and source tags define permitted sender VMs within the VPC.

Anahtar Kavram

VPC Firewall Priority and Network Tag Evaluation
Tahmini Süre:1m 30s
Bu soruyu puanla