A network administrator needs to route all outbound internet traffic from a private subnet through a custom network virtual appliance (NVA) instance named 'nva-gateway' located in zone 'us-central1-a'. The route must be named 'route-outbound-nva', reside in the custom VPC network 'prod-vpc', target destination '0.0.0.0/0', and have a priority of 800. Which gcloud command should the administrator run to implement this custom route?
- gcloud compute routes create route-outbound-nva --network=prod-vpc --destination-range=0.0.0.0/0 --next-hop-instance=nva-gateway --next-hop-instance-zone=us-central1-a --priority=800Answer
- Bgcloud compute routes create route-outbound-nva --network=prod-vpc --destination=0.0.0.0/0 --next-hop-vm=nva-gateway --zone=us-central1-a --priority=800
- Cgcloud compute networks subnets update prod-vpc --add-route=0.0.0.0/0 --next-hop-instance=nva-gateway --priority=800
- Dgcloud compute firewall-rules create route-outbound-nva --network=prod-vpc --destination-ranges=0.0.0.0/0 --action=route --next-hop-instance=nva-gateway
Answer
The administrator should run 'gcloud compute routes create route-outbound-nva --network=prod-vpc --destination-range=0.0.0.0/0 --next-hop-instance=nva-gateway --next-hop-instance-zone=us-central1-a --priority=800'.
The correct answer specifies the proper gcloud command 'gcloud compute routes create' along with the required parameters '--network', '--destination-range', '--next-hop-instance', '--next-hop-instance-zone', and '--priority'.
Step-by-Step Solution
Key Concept
Creating and managing custom static routes in Google Cloud VPC networks using gcloud CLI
Estimated Time:1m 30s