Google Cloud Professional Cloud Developer Practice Test

Question: 1 / 400

To allow clients within the same GKE cluster to get the IP address of a JPEG image-resizing service, what should you define?

GKE Service

GKE Endpoint

In Google Kubernetes Engine (GKE), to enable clients within the same cluster to access a service, you typically create a Service object. A Service provides a stable IP address and DNS name for a set of Pods, allowing them to communicate without needing to know the specifics of the network configuration.

Specifically, defining a GKE Endpoint aligns with the requirement since an Endpoint represents the network location of the Pods managed by a Service. When you define an Endpoint, it automates the process of resolving the underlying Pods' IP addresses within the cluster. This setup allows your clients within the same GKE cluster to retrieve the correct IP address of the JPEG image-resizing service seamlessly.

While a GKE Service is also crucial for providing stable access points, the question specifically points to the need for clients to obtain an IP address, which is what Endpoints facilitate in a more granular way.

A GKE Cluster IP generally refers to the internal IP address allocated for the Service itself, ensuring it is reachable by other resources within the VPC. Meanwhile, a Load balancer is typically used for external traffic, directing it to services that require accessibility from outside the cluster, which is not necessary for internal client-to-service communication.

Thus, defining a GKE Endpoint is

Get further explanation with Examzify DeepDiveBeta

GKE Cluster IP

Load balancer

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy