Correct Answer: LoadBalancer
A LoadBalancer service automatically provisions an external load balancer from the cloud provider, assigning a static public IP that routes traffic to the nodes....
Correct Answer
LoadBalancer
Why This Answer Is Correct
A LoadBalancer service automatically provisions an external load balancer from the cloud provider, assigning a static public IP that routes traffic to the nodes.
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.
When defining a Kubernetes Service, which type ensures the service is exposed on each nodeβs IP at a static port?
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?