Courseiva
Automation, Orchestration, and ScriptingmediumMultiple SelectObjective-mapped

XK0-006 Automation, Orchestration, and Scripting Practice Question

A Kubernetes administrator needs to expose a deployment externally using a Service. Which THREE of the following Service types can be used? (Select THREE).

⚠ Common exam trap

The Linux+ exam often tests the distinction between Service types that provide external exposure. Candidates may mistakenly select ExternalName, which only provides a DNS alias and does not actually route traffic to the deployment, or choose Ingress, which is not a Service type but a separate API object.

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

ClusterIP

ClusterIP, LoadBalancer, and NodePort are the three Kubernetes Service types that can be used to expose a deployment externally. ClusterIP alone is internal, but when combined with an Ingress controller, it provides external access by routing traffic from outside the cluster to the Service. LoadBalancer provisions an external load balancer with a public IP. NodePort opens a static port on every node's IP, allowing external traffic. ExternalName (option C) does not expose the deployment; it only maps a Service to an external DNS name, so it is not a valid choice for exposing a deployment externally.

Answer analysis

Option-by-option breakdown

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

  • ClusterIP

    Why this is correct

    ClusterIP is correct because when used with an Ingress resource, it can expose the deployment externally. Ingress routes external traffic to the ClusterIP Service.

  • LoadBalancer

    Why this is correct

    LoadBalancer provisions an external load balancer (e.g., from a cloud provider) that distributes traffic to the pods, directly exposing the deployment externally.

  • ExternalName

    Why it's wrong here

    ExternalName is incorrect. It maps a Service to an external DNS name but does not expose the deployment itself; it is used for referencing external services.

  • NodePort

    Why this is correct

    NodePort opens a specific port on all nodes, allowing external traffic to reach the Service by using any node's IP address and that port.

  • Ingress

    Why it's wrong here

    Ingress is not a Service type; it's a separate resource.

About these practice questions

This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA 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 XK0-006 exam.