An administrator needs to allow incoming traffic on TCP port 8443 for an existing firewall rule named app-ingress in a Google Cloud Virtual Private Cloud (VPC). Which gcloud command should be executed to modify this existing firewall rule?
- gcloud compute firewall-rules update app-ingress --allow tcp:8443Answer
- Bgcloud compute networks update app-ingress --allow tcp:8443
- Cgcloud compute firewall-rules create app-ingress --allow tcp:8443
- Dgcloud compute firewall-rules add app-ingress --ports tcp:8443
Answer
The command 'gcloud compute firewall-rules update app-ingress --allow tcp:8443' correctly modifies the existing rule to allow traffic on port 8443.
To modify an existing Google Cloud firewall rule, the command group 'gcloud compute firewall-rules update' must be used along with the '--allow' parameter specifying the target protocol and port.
Step-by-Step Solution
Key Concept
Modifying existing VPC firewall rules using gcloud compute firewall-rules update