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

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.