You need to integrate a legacy database hosted outside of your Kubernetes cluster into your microservices. You want the microservices to address the database using a standard Kubernetes DNS name (e.g., 'legacy-db') to easily swap it later. Which Service type should you use?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: ExternalName

An ExternalName service maps a Kubernetes service name to an external DNS name (e.g., a CNAME record). This abstracts the external resource so internal pods can use standard servic...

Real Exam ScenarioKubernetes Services

You need to integrate a legacy database hosted outside of your Kubernetes cluster into your microservices. You want the microservices to address the database using a standard Kubernetes DNS name (e.g., 'legacy-db') to easily swap it later. Which Service type should you use?

βœ“ Correct Answer & ExplanationKubernetes Services

Correct Answer

ExternalName

Why This Answer Is Correct

An ExternalName service maps a Kubernetes service name to an external DNS name (e.g., a CNAME record). This abstracts the external resource so internal pods can use standard service discovery.

πŸ“š What This Question Tests

This question evaluates your knowledge of Kubernetes Services β€” a core concept tested in cloud certification exams. Understanding Kubernetes Services is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.