Courseiva

Google ACE Deploying and Implementing a Cloud Solution Practice Question

A company wants to deploy a microservice on GKE. The deployment requires 3 replicas, and the service must be accessible via a fixed public IP address. Which Kubernetes resource should be used to expose the deployment?

⚠ Common exam trap

ACE often tests the confusion between Ingress (L7, HTTP routing, shared IP) and LoadBalancer Service (L4, dedicated external IP), causing candidates to pick Ingress when a fixed public IP for a raw service is required.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Service of type LoadBalancer

A Kubernetes Service of type LoadBalancer provisions a cloud provider load balancer with an external IP that routes to the pods backing the deployment. On GKE, this creates a Google Cloud external passthrough Network Load Balancer with a stable public IP, which matches the fixed public IP requirement.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    Service of type LoadBalancer

    Why this is correct

    A Service of type LoadBalancer in GKE creates an external passthrough Network Load Balancer in Google Cloud, provisioning an external forwarding rule with a stable public IP address from a regional pool. This IP remains fixed for the lifetime of the Service unless the Service is deleted or a reserved static IP is explicitly configured, making it the correct choice for a microservice that needs a durable public endpoint without additional configuration.

  • ✗

    Ingress resource

    Why it's wrong here

    An Ingress resource is not a native Service type; it is an API object that configures an L7 HTTP(S) load balancer through the GKE Ingress controller. While it can expose a public IP, that IP is not directly tied to a Service and is only static if you pre-reserve and attach a static IP address via annotations — otherwise, GCP may assign a new ephemeral IP. Ingress also requires a backend (typically a NodePort Service or a NEG) and extra routing rules, adding complexity beyond a simple fixed-IP requirement.

  • ✗

    Service of type ClusterIP

    Why it's wrong here

    A Service of type ClusterIP is the default in GKE and exposes the microservice only on a virtual cluster-internal IP address. This IP is reachable solely from within the cluster via DNS or direct connection, with no external public IP or load balancer provisioned, so it cannot serve traffic from the public internet. This option fails the requirement because it provides no external connectivity path at all.

  • ✗

    Service of type NodePort

    Why it's wrong here

    A Service of type NodePort exposes the microservice on a static high-number port (30000-32767) on each node's IP address, but those node IPs are typically ephemeral public addresses assigned to the underlying Compute Engine instances. The IP is tied to the node, not to the Service, and can change if the node is recreated or replaced, so it does not provide a reliable fixed public IP. Additionally, it requires you to manage firewall rules and access via node addresses, which is not a production-grade public endpoint.

About these practice questions

One of 775 original ACE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Google Cloud exam blueprint

This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.