Which service type creates a DNS CNAME-like alias of another domain?

Study for the Kubernetes Cloud Native Associate (KCNA) Certification 1 Test. Master the core concepts of Kubernetes with multiple-choice questions and detailed explanations. Prepare and boost your confidence for the KCNA certification exam!

Multiple Choice

Which service type creates a DNS CNAME-like alias of another domain?

Explanation:
ExternalName is the service type that creates a DNS alias to an external domain. When you configure a service with an externalName, Kubernetes does not allocate a cluster IP or endpoints. Instead, the service’s DNS name resolves to the provided external domain, behaving like a CNAME. This lets pods access the external service using the Kubernetes service name, while traffic is directed to the outside domain. Other service types—ClusterIP assigns an internal cluster IP, NodePort exposes a port on each node, and LoadBalancer provisions an external load balancer—do not create this DNS alias behavior.

ExternalName is the service type that creates a DNS alias to an external domain. When you configure a service with an externalName, Kubernetes does not allocate a cluster IP or endpoints. Instead, the service’s DNS name resolves to the provided external domain, behaving like a CNAME. This lets pods access the external service using the Kubernetes service name, while traffic is directed to the outside domain. Other service types—ClusterIP assigns an internal cluster IP, NodePort exposes a port on each node, and LoadBalancer provisions an external load balancer—do not create this DNS alias behavior.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy