Medium1 markMultiple Choice

GCP ACE · Question 23 · Domain 3.2: Deploying and implementing GKE resources

You are deploying a containerized application to GKE. You want to ensure that the application is exposed to the internet and receives an external IP address. Which Kubernetes resource type should you create?

Answer options:

A.

Service of type ClusterIP

B.

Service of type NodePort

C.

Service of type LoadBalancer

D.

Deployment

How to approach this question

Identify the Kubernetes Service type that integrates with cloud providers to create external load balancers.

Full Answer

C.Service of type LoadBalancer✓ Correct
In Kubernetes, a Service exposes an application running on a set of Pods. Setting the Service type to `LoadBalancer` instructs the cloud provider (GCP) to provision an external Network Load Balancer, assigning it a public IP address that routes traffic to your pods.

Common mistakes

Confusing ClusterIP (internal only) or NodePort (exposes on node IPs, but no managed load balancer) with LoadBalancer.

Practice the full GCP Associate Cloud Engineer Practice Exam 1

50 questions · hints · full answers · grading

More questions from this exam