Google Cloud Professional Cloud Network Engineer — Question 95

You are developing an HTTP API hosted on a Compute Engine virtual machine instance that must be invoked only by multiple clients within the same Virtual Private Cloud (VPC). You want clients to be able to get the IP address of the service. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because it allows clients to utilize the internal DNS of Compute Engine, which is designed for resources within the same VPC. Option A and C suggest using static external IPs, which are not necessary for internal communication. Option D is incorrect as it does not provide the correct internal DNS format needed for accessing the service.