An organization is deploying an internal backend authentication microservice on Compute Engine instances distributed across multiple zones within a single Google Cloud VPC region. The microservice processes raw, non-HTTP TCP traffic on custom port 9090 from client application VMs located inside the same VPC network. The solution must provide internal load balancing with continuous health checks and allow client VMs to access the microservice using a custom internal domain name (auth.internal.example.com). Which TWO architectural actions should you take to meet these requirements?
- Deploy an Internal Passthrough Network Load Balancer with an internal IP frontend to distribute raw TCP port 9090 traffic across the Compute Engine backend instances.Answer
- BDeploy an External Application Load Balancer to terminate incoming raw TCP port 9090 traffic and proxy requests to the Compute Engine instances.
- Create a Cloud DNS Private Managed Zone bound to the VPC network that maps auth.internal.example.com to the internal IP of the load balancer.Answer
- DCreate a Cloud DNS Public Managed Zone and register auth.internal.example.com with public NS records targeting the load balancer.
Answer
The correct architecture requires deploying an Internal Passthrough Network Load Balancer to route raw TCP port 9090 traffic inside the VPC, and configuring a Cloud DNS Private Managed Zone bound to the VPC network to resolve the internal FQDN to the load balancer's private IP address.
Deploying an Internal Passthrough Network Load Balancer provides regional Layer 4 load balancing for raw non-HTTP TCP traffic on custom ports within a private VPC network. Pairing this with a Cloud DNS Private Managed Zone linked to the VPC enables client instances to securely resolve internal domain names to the load balancer's private frontend IP address.
Step-by-Step Solution
Key Concept
Selecting appropriate GCP load balancers for Layer 4 non-HTTP VPC traffic and configuring Cloud DNS Private Managed Zones for internal name resolution.
Estimated Time:1m 30s