Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Cloud Network Engineer Exam - Topic 5 Question 106 Discussion

Posted by Johnna on May 03, 2025 at 09:28 AM

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?

Suggested Answer: B

https://cloud.google.com/sdk/gcloud/reference/compute/routes/create

In order to apply a route to an existing instance we should use a tag to bind the route to it.


Get Premium Professional Cloud Network Engineer Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
35 comments · newest first
DA
Daniela 10 months ago
I thought you had to do more than just add tags.
MA
Maile 10 months ago
Definitely B, that’s the right move!
FE
Felix 11 months ago
B seems correct, but I’d double-check the instance names.
SH
Sherell 11 months ago
Wait, is it really that simple?
JA
Jacinta 11 months ago
You need to add tags to existing instances.
JE
Jeniffer 11 months ago
I feel like option B makes the most sense since we want existing instances to recognize the new NAT gateway.
AY
Ayesha 11 months ago
I'm a bit confused about the commands. Does option A actually relate to the NAT gateway setup?
LO
Loreen 12 months ago
I remember practicing a similar question where we had to configure NAT, and I think adding tags was the right approach.
LA
Lai 12 months ago
I think we need to add the tags to the existing instances, but I'm not entirely sure if it's option B or something else.
FR
Franklyn 1 year ago
Ah, I see now. Option B is the correct answer - we use the "gcloud compute instances add-tags" command to apply the "no-ip" tag to the existing instances. Simple but effective!
EL
Elroy 1 year ago
I'm a bit confused here. Do I need to enable IP forwarding on the NAT gateway instance first? Or is that not necessary?
KE
Kerry 1 year ago
Okay, I think I've got this. The key is to add the "no-ip" tag to the existing instances so they use the new NAT gateway. Let me double-check the options.
LU
Luke 1 year ago
Hmm, this looks like a tricky one. I'll need to think through the steps carefully to make sure I get the right command.
EL
Elli 1 year ago
Wow, this is a tricky one. I'm going to have to go with option B, though. Seems like the most logical choice to me.
TE
Teddy 1 year ago
↳ replying to Elli
Definitely, option B is the most logical step to ensure existing instances use the new NAT gateway.
ER
Erinn 1 year ago
↳ replying to Elli
That's what I was thinking too, option B seems like the way to go.
GE
Gerald 1 year ago
↳ replying to Elli
I agree, adding the 'no-ip' tag to existing instances makes sense.
RO
Rodolfo 1 year ago
↳ replying to Elli
I think option B is the correct choice.
LI
Lindsey 1 year ago
I agree with Mabelle, creating a new instance with the correct tags seems like the right approach.
SE
Sena 1 year ago
But adding tags to existing instances won't make them use the new NAT gateway.
MA
Mabelle 1 year ago
I disagree, I believe the answer is D.
JE
Jerilyn 1 year ago
Okay, let's see here. I'm going to go with option B. Tagging the existing instances with 'no-ip' seems like the way to go.
MA
Magdalene 1 year ago
Haha, this question is a piece of cake! Of course, the answer is B. Who would've thought configuring a NAT gateway could be so easy?
CA
Carma 1 year ago
↳ replying to Magdalene
Yeah, it's pretty straightforward. Just add the 'no-ip' tag to the existing instances and they'll use the new NAT gateway.
ME
Melissia 1 year ago
↳ replying to Magdalene
B) gcloud compute instances add-tags [existing-instance] --tags no-ip
SE
Sena 1 year ago
I think the answer is B.
TE
Telma 1 year ago
Hmm, I'm not sure about this one. Let me think it through again. Ah, I got it! The answer is B, adding the 'no-ip' tag to the existing instances.
JA
Jacinta 1 year ago
↳ replying to Telma
I'm pretty sure the answer is B) gcloud compute instances add-tags [existing-instance] --tags no-ip
TA
Tandra 1 year ago
↳ replying to Telma
Actually, I think it might be C) gcloud builds submit --config=cloudbuild.waml --substitutions=TAG_NAME=no-ip
ME
Mee 1 year ago
↳ replying to Telma
No, I believe the correct answer is B) gcloud compute instances add-tags [existing-instance] --tags no-ip
MO
Mona 1 year ago
↳ replying to Telma
I think the answer is A) sudo sysctl -w net.ipv4.ip_forward=1
AM
Ammie 1 year ago
The question seems straightforward. I think the answer is B, since we need to add the 'no-ip' tag to the existing instances to make them use the new NAT gateway.
WY
Wynell 1 year ago
↳ replying to Ammie
Exactly, that way the existing instances will use the new NAT gateway.
RA
Rana 1 year ago
↳ replying to Ammie
That makes sense, we just need to add the 'no-ip' tag to the existing instances.
AM
Amber 1 year ago
↳ replying to Ammie
B) gcloud compute instances add-tags [existing-instance] --tags no-ip
0/2000 characters

Save Cancel