Google Cloud Professional Cloud Developer — Question 7

You are developing an HTTP API hosted on a Compute Engine virtual machine instance that needs to be invoked 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: C

Explanation

The correct answer is C because it allows clients to use the internal DNS feature of Google Cloud, which is designed for communication within the same VPC. Options A and B involve external IP addresses and load balancing, which are unnecessary for internal communication, while D does not provide the correct format for accessing the instance name using internal DNS.