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?
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
Q01What is the highest level of the Google Cloud resource hierarchy?EasyQ02You need to enable the Compute Engine API in a new project using the command line. Which command ...EasyQ03You are setting up a new GCP environment. You need to grant a group of developers access to view ...MediumQ04You want to receive an email notification when your GCP spending exceeds $1000 this month. What s...EasyQ05You need to analyze your GCP billing data using complex SQL queries to understand cost trends acr...Medium
Expert