Complete the code to create a VPC network in Google Cloud.
gcloud compute networks create [1] --subnet-mode=autoThe command creates a new VPC network named my-vpc-network with automatic subnet creation.
Complete the code to list all firewall rules in your Google Cloud project.
gcloud compute firewall-rules [1]The list command shows all firewall rules in the project.
Fix the error in the command to test network connectivity to a VM instance.
gcloud compute [1] ssh my-instance --zone=us-central1-aThe correct command group is instances to manage VM instances, including SSH connections.
Fill both blanks to create a firewall rule allowing HTTP traffic on port 80.
gcloud compute firewall-rules create allow-http --allow [1]:[2]
The firewall rule must allow tcp traffic on port 80 for HTTP.
Fill all three blanks to create a route that directs traffic to a specific instance.
gcloud compute routes create [1] --network [2] --next-hop-instance [3] --next-hop-instance-zone us-central1-a
The route named custom-route is created on the my-vpc-network network and directs traffic to the instance my-instance.