Google Cloud Professional Cloud Network Engineer — Question 74
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?
Answer options
- 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.
Correct answer: C
Explanation
The correct answer is C because changing the internal IP address to static ensures it remains assigned to the instance until you explicitly release it. Options A and B do not address the requirement of retaining the private IP address, while option D does not guarantee that the IP address will not be reassigned.