exam questions

Exam Professional Cloud Network Engineer All Questions

View all questions & answers for the Professional Cloud Network Engineer exam

Exam Professional Cloud Network Engineer topic 1 question 57 discussion

Actual exam question from Google's Professional Cloud Network Engineer
Question #: 57
Topic #: 1
[All Professional Cloud Network Engineer Questions]

You have configured a Compute Engine virtual machine instance as a NAT gateway. You execute the following command: gcloud compute routes create no-ip-internet-route \
--network custom-network1 \
--destination-range 0.0.0.0/0 \
--next-hop instance nat-gateway \
--next-hop instance-zone us-central1-a \
--tags no-ip --priority 800
You want existing instances to use the new NAT gateway.
Which command should you execute?

  • A. sudo sysctl -w net.ipv4.ip_forward=1
  • B. gcloud compute instances add-tags [existing-instance] --tags no-ip
  • C. gcloud builds submit --config=cloudbuild.waml --substitutions=TAG_NAME=no-ip
  • D. gcloud compute instances create example-instance --network custom-network1 \ --subnet subnet-us-central \ --no-address \ --zone us-central1-a \ --image-family debian-9 \ --image-project debian-cloud \ --tags no-ip
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
sindra
Highly Voted 3 years, 3 months ago
confirm B https://cloud.google.com/vpc/docs/add-remove-network-tags
upvoted 10 times
...
Komal697
Highly Voted 1 year, 1 month ago
Selected Answer: B
This command adds the "no-ip" tag to the existing instances, allowing them to use the newly created NAT gateway. The routing rule you created with the gcloud compute routes create command specifies the next hop instance as the NAT gateway instance, and the tag "no-ip" is required to match the route. Option A enables IP forwarding on the NAT gateway instance, which is already required to function as a NAT gateway, but it does not help to configure the routing of the existing instances. Option C submits a Cloud Build job to build and deploy an application or infrastructure defined in a YAML file. This option is not related to configuring the routing of existing instances to use a NAT gateway. Option D creates a new instance and applies the "no-ip" tag to it, but it does not help to configure the routing of existing instances.
upvoted 5 times
...
bus_karan19
Most Recent 6 months, 2 weeks ago
Selected Answer: B
https://cloud.google.com/vpc/docs/add-remove-network-tags
upvoted 1 times
...
rr4444
9 months, 2 weeks ago
VERY out of date Q command has changed a lot https://cloud.google.com/nat/docs/gce-example#create-nat gcloud compute routers create nat-router \ --network custom-network1 \ --region us-east4 gcloud compute routers nats create nat-config \ --router-region us-east4 \ --router nat-router \ --nat-all-subnet-ip-ranges \ --auto-allocate-nat-external-ips
upvoted 1 times
rr4444
9 months, 2 weeks ago
actually, sorry, the Q is not Cloud NAT
upvoted 1 times
...
...
pk349
1 year, 3 months ago
• B. gcloud compute instances *** add-tags [existing-instance] --tags no-ip gcloud compute routes create NAME --destination-range=DESTINATION_RANGE (--next-hop-address=NEXT_HOP_ADDRESS | --next-hop-gateway=NEXT_HOP_GATEWAY | --next-hop-ilb=NEXT_HOP_ILB | --next-hop-instance=NEXT_HOP_INSTANCE | --next-hop-vpn-tunnel=NEXT_HOP_VPN_TUNNEL) [--description=DESCRIPTION] [--network=NETWORK; default="default"] [--next-hop-ilb-region=NEXT_HOP_ILB_REGION] [--next-hop-instance-zone=NEXT_HOP_INSTANCE_ZONE] [--next-hop-vpn-tunnel-region=NEXT_HOP_VPN_TUNNEL_REGION] [--priority=PRIORITY; default=1000] [--tags=TAG,[TAG,…]] [GCLOUD_WIDE_FLAG …]
upvoted 1 times
...
Mr_MIXER007
1 year, 6 months ago
Selected Answer: B
BBBBBBBBBB
upvoted 1 times
...
kumarp6
2 years, 3 months ago
Answer is : B
upvoted 2 times
...
Arad
2 years, 5 months ago
B is correct.
upvoted 1 times
...
PeppaPig
2 years, 7 months ago
B Easy :))
upvoted 1 times
...
Vidyasagar
3 years, 1 month ago
B is the one
upvoted 4 times
...
[Removed]
3 years, 5 months ago
Ans - B https://cloud.google.com/sdk/gcloud/reference/compute/routes/create
upvoted 2 times
...
lukedj87
3 years, 5 months ago
Correct answer is B
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago