LeetQuiz Logo
Privacy Policy•contact@leetquiz.com
© 2025 LeetQuiz All rights reserved.
Google Associate Cloud Engineer

Google Associate Cloud Engineer

Get started today

Ultimate access to all questions.


You have an application deployed in Google Kubernetes Engine (GKE) with cluster autoscaling turned on. This application exposes a TCP endpoint and is running multiple replicas. Additionally, you have a Compute Engine instance located in the same geographical region but in a different Virtual Private Cloud (VPC) named gce-network, which does not have overlapping IP ranges with the VPC hosting the GKE cluster. The Compute Engine instance needs to establish a connection to the application running on GKE. You aim to achieve this with minimal effort. What steps should you take?

Exam-Like



Explanation:

Option A is the correct answer because it requires the least effort, which aligns with the goal to minimize effort. In this option, you create a Service of type LoadBalancer in GKE and set the externalTrafficPolicy to Cluster, which is a straightforward setup. You then configure the Compute Engine instance to use the address of the load balancer. This approach does not require any additional networking configurations such as VPC peering, and it provides direct connectivity between the Compute Engine instance and the application running in GKE. Although Option C is also a valid solution, it involves additional steps like VPC peering, which add complexity and management overhead. Therefore, A is the most efficient and simplest solution.

Powered ByGPT-5