Question 299 of 500
Deploying applicationshardMultiple ChoiceObjective-mapped

Quick Answer

The answer is the Ingress resource. An Ingress resource is the correct choice because it provides HTTP/HTTPS layer-7 routing, allowing you to expose multiple microservices under a single external IP address using path-based or host-based rules, which directly meets the requirement of path-based routing on GKE. On the Google Professional Cloud Developer exam, this concept tests your understanding of how to efficiently expose microservices without creating a separate external IP for each service—a common trap is selecting a Service of type LoadBalancer, which would generate a unique IP per service and increase cost and complexity. Remember that Ingress acts as a smart traffic director at the application layer, while a LoadBalancer service operates at layer 4. A useful memory tip: think of Ingress as the "front door" that reads the URL path to send visitors to the correct room, whereas a LoadBalancer just opens a separate door for each room.

PCD Deploying applications Practice Question

This PCD practice question tests your understanding of deploying applications. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company is deploying a microservices architecture on GKE. They need to expose a set of related microservices under a single external IP address with path-based routing. Which Kubernetes resource should they use?

Question 1hardmultiple choice
Read the full NAT/PAT explanation →

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

Ingress resource

An Ingress resource is the correct choice because it provides HTTP/HTTPS layer-7 routing to expose multiple services under a single external IP address, using path-based or host-based rules. This directly meets the requirement of exposing a set of related microservices with path-based routing on GKE, whereas a Service of type LoadBalancer would create a separate external IP per service.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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 NodePort

    Why it's wrong here

    Exposes on node IPs, not suitable for external access with path routing.

  • NetworkPolicy

    Why it's wrong here

    NetworkPolicy defines firewall rules, not routing.

  • Service of type LoadBalancer

    Why it's wrong here

    Creates a separate external IP for each Service.

  • Ingress resource

    Why this is correct

    Ingress provides path-based routing to multiple Services under one IP.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse a Service of type LoadBalancer with the ability to do path-based routing, but LoadBalancer only provides layer-4 TCP/UDP load balancing with a single external IP per service, not layer-7 path-based routing.

Detailed technical explanation

How to think about this question

Under the hood, an Ingress resource relies on an Ingress controller (e.g., GKE's built-in GCE Ingress controller) that configures a Google Cloud HTTP(S) Load Balancer with URL maps for path-based routing. This allows traffic to be directed to different backend Services based on request paths (e.g., /api/* to one service, /web/* to another), all behind a single anycast IP address. A real-world scenario is a microservices e-commerce platform where /products routes to the product service and /orders routes to the order service, reducing public IP management and simplifying TLS termination.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A healthcare organisation deploys an application with a public-facing web tier and a private database tier. The database subnet has no public IP and only accepts connections from the web tier's security group. Questions like this test whether you can design cloud network isolation using VNets/VPCs, subnets, and security group rules.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related PCD practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free PCD practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this PCD question test?

Deploying applications — This question tests Deploying applications — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Ingress resource — An Ingress resource is the correct choice because it provides HTTP/HTTPS layer-7 routing to expose multiple services under a single external IP address, using path-based or host-based rules. This directly meets the requirement of exposing a set of related microservices with path-based routing on GKE, whereas a Service of type LoadBalancer would create a separate external IP per service.

What should I do if I get this PCD question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More PCD practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This PCD 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 PCD exam.