QuestionQ61

VerifiedImplementing a VPC network

You are building an HTTP API hosted on a Compute Engine virtual machine instance that must be called only by multiple clients in the same Virtual Private Cloud (VPC). You want the clients to be able to obtain the service's IP address. What should you do?

Explanation

Compute Engine internal DNS creates a name that resolves to a VM’s internal IP address, and VMs in the same VPC can use that name for private instance-to-instance communication. A zonal internal DNS name has the form [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal, so clients can connect using that hostname without using a public IP address.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!