Correct Answer: NodePort
NodePort exposes the Service on each Node's IP at a static port (the NodePort). You'll be able to contact the NodePort Service, from outside the cluster, by requesting <NodeIP>:<No...
Correct Answer
NodePort
Why This Answer Is Correct
NodePort exposes the Service on each Node's IP at a static port (the NodePort). You'll be able to contact the NodePort Service, from outside the cluster, by requesting <NodeIP>:<NodePort>.
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.
Your organization wants to expose a web application running on Kubernetes to external traffic. You need a solution that assigns a static public IP address and routes traffic across all healthy nodes. Which Kubernetes Service type is most appropriate?
You are deploying a StatefulSet for a distributed database (Cassandra) that requires each pod to have a stable, resolvable network identity. Which Kubernetes Service configuration is required?
A frontend deployment needs to communicate with a backend API deployment named 'payment-api' within the same namespace. How should the frontend securely and dynamically resolve the backend's address?
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?