Soru

Zorluk: ZorManaging Networking Resources

A Cloud Operations team manages a custom Virtual Private Cloud (VPC) network named `finance-vpc`. A system administrator is tasked with updating an existing ingress firewall rule named `allow-db-ingress` so that it allows incoming TCP traffic on port 5432, targets Compute Engine instances with the network tag `db-node`, and evaluates at a priority level of 200. Additionally, the administrator must verify the updated configuration details using the Google Cloud CLI. Which TWO steps should the administrator take to complete these operations?

  1. Run `gcloud compute firewall-rules update allow-db-ingress --allow=tcp:5432 --target-tags=db-node --priority=200` to modify the existing rule attributes.Cevap
  2. Run `gcloud compute firewall-rules describe allow-db-ingress` to review the details and confirm the effective configuration of the updated rule.Cevap
  3. C
    Run `gcloud compute firewall-rules update allow-db-ingress --allow=tcp:5432 --source-tags=db-node --priority=200` to filter ingress target workloads in the VPC.
  4. D
    Adjust the priority parameter to 1000 so that this rule evaluates before existing rules set to priority 200.

Cevap

The administrator must update the rule using `gcloud compute firewall-rules update allow-db-ingress --allow=tcp:5432 --target-tags=db-node --priority=200` and verify the updated configuration using `gcloud compute firewall-rules describe allow-db-ingress`.
Updating an ingress firewall rule to target specific destination workloads requires using `--target-tags` along with the desired allowed ports and priority integer. To audit and confirm the changes, executing `gcloud compute firewall-rules describe` outputs the exact JSON/YAML spec of the deployed resource.

Adım Adım Çözüm

1
Identify the required CLI flags for updating firewall rule target tags, priority, and allowed protocols/ports.
Determined that `--allow=tcp:5432`, `--target-tags=db-node`, and `--priority=200` are the correct parameters for updating the ingress target.
In ingress firewall rules, `--target-tags` specifies instances that receive the traffic, while `--source-tags` specifies traffic origin.
2
Select the appropriate verification command to inspect existing firewall resource attributes.
Selected `gcloud compute firewall-rules describe allow-db-ingress`.
The `describe` command fetches full resource configuration details, satisfying the requirement to audit the updated rule.

Anahtar Kavram

VPC Firewall Rule Management and Evaluation Logic
Bu soruyu puanla