Google Cloud Associate Cloud Engineer — Question 263
You have a VM instance running in a VPC with single-stack subnets. You need to ensure that the VM instance has a fixed IP address so that other services hosted in the same VPC can communicate with the VM. You want to follow Google-recommended practices while minimizing cost. What should you do?
Answer options
- A. Promote the existing IP address of the VM to become a static external IP address.
- B. Promote the existing IP address of the VM to become a static internal IP address.
- C. Reserve a new static external IPv6 address and assign the new IP address to the VM.
- D. Reserve a new static external IP address and assign the new IP address to the VM.
Correct answer: B
Explanation
The correct answer is B because promoting the existing IP address to a static internal IP address ensures that it remains consistent for communications within the VPC. Options A, C, and D involve external IP addresses, which are unnecessary for internal communication and may incur additional costs.