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 76 discussion

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

One instance in your VPC is configured to run with a private IP address only. You want to ensure that even if this instance is deleted, its current private IP address will not be automatically assigned to a different instance.
In the GCP Console, what should you do?

  • A. Assign a public IP address to the instance.
  • B. Assign a new reserved internal IP address to the instance.
  • C. Change the instance's current internal IP address to static.
  • D. Add custom metadata to the instance with key internal-address and value reserved.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
seddy
Highly Voted 2 years, 11 months ago
it's C! You cannot change the internal IP address of an existing VM. You can do that for an external IP tho! The only way to preserve a VM's existing internal IP is by upgrading it to a static IP! Peace :)
upvoted 14 times
...
Gurminderjit
Most Recent 4 months, 2 weeks ago
It’s C
upvoted 1 times
...
pinguim
6 months, 2 weeks ago
First of all, you have to rerve a new static internal , see the documentation : https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address#reservenewip gcloud compute addresses create ADDRESS_NAMES \ --region REGION --subnet SUBNETWORK \ --addresses IP_ADDRESS after that, create a vm instance with a reserved internal https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address#create_a_vm_instance_with_a_specific_internal_ip_address gcloud compute instances create VM_NAME --private-network-ip IP_ADDRESS it's B reserve new ip and assign
upvoted 2 times
...
Komal697
1 year, 1 month ago
Selected Answer: C
Option C is correct because changing the instance's current internal IP address to static ensures that the IP address will not be automatically assigned to a different instance if the original instance is deleted. This guarantees that the instance will keep the same IP address, providing better consistency and avoiding potential issues with applications or services that rely on that IP address. Option A is incorrect because assigning a public IP address to the instance does not prevent the private IP address from being automatically reassigned to a different instance. Option B is incorrect because assigning a new reserved internal IP address to the instance does not guarantee that the previous IP address will not be automatically reassigned to a different instance. Option D is incorrect because adding custom metadata to the instance does not prevent the IP address from being automatically reassigned to a different instance.
upvoted 2 times
...
pk349
1 year, 3 months ago
• C. Change the instance's current internal IP address to *** static. If you have ephemeral IP addresses that are currently in use, you can promote these addresses to static internal IP addresses so the addresses remain with your project until you actively remove them.
upvoted 2 times
...
AzureDP900
1 year, 5 months ago
C. Change the instance's current internal IP address to static. https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address
upvoted 1 times
...
ivanrias
1 year, 8 months ago
Selected Answer: C
yep C its for me
upvoted 1 times
...
[Removed]
2 years, 1 month ago
You cannot change the internal IP address of an existing resource. For example, you cannot assign a new static internal IP address to a running VM instance. You can, however, promote the ephemeral internal IP address of a resource to a static internal IP so that the address remains reserved even after the resource is deleted. https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address#restrictions So the Option "C" is right.
upvoted 2 times
...
kumarp6
2 years, 3 months ago
Answer is : C
upvoted 2 times
...
ExamTopicsFan
2 years, 7 months ago
C https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address#promote-in-use-internal-address If you have ephemeral IP addresses that are currently in use, you can promote these addresses to static internal IP addresses so the addresses remain with your project until you actively remove them.
upvoted 2 times
...
Vidyasagar
3 years, 1 month ago
C is correct
upvoted 2 times
...
ydanno
3 years, 3 months ago
"C" is correct. Because in this scenario, we have a RUNNING instance and ensure that the current private IP address is a static address. We cannot change the internal IP address of an existing instance. "B" is wrong. On the other hand, we can promote the ephemeral internal IP address of a resource to a static internal IP address. "C" is correct.
upvoted 4 times
...
nikiwi
3 years, 4 months ago
definitely C, this is tested working
upvoted 2 times
...
gless
3 years, 4 months ago
If we go with theory only... I would chose answer C --> https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address#reservenewip Since here https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address#reservenewip it is written that "automatically allocated or an unused address from an existing subnet".
upvoted 2 times
...
[Removed]
3 years, 5 months ago
Ans - C
upvoted 2 times
...
mikelabs
3 years, 5 months ago
Answer is C, because you need the current internal IP and not another IP.
upvoted 3 times
...
hjson821109
3 years, 5 months ago
Definately B
upvoted 1 times
lukedj87
3 years, 5 months ago
Here https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address#restrictions, this is mentioned: You cannot change the internal IP address of an existing resource. For example, you cannot assign a new static internal IP address to a running VM instance. You can, however, promote the ephemeral internal IP address of a resource to a static internal IP so that the address remains reserved even after the resource is deleted.
upvoted 1 times
lukedj87
3 years, 5 months ago
....anyway, after trying multiple times from the console, I don't find a way to achieve this, so I'm start thinking that B might be a better option
upvoted 1 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