Correct Answer: Set internalTrafficPolicy to Local in the Service spec
Setting internalTrafficPolicy: Local on a Kubernetes Service tells the kube-proxy to only route cluster-internal traffic to endpoints on the same node. If no endpoints exist on tha...
Correct Answer
Set internalTrafficPolicy to Local in the Service spec
Why This Answer Is Correct
Setting internalTrafficPolicy: Local on a Kubernetes Service tells the kube-proxy to only route cluster-internal traffic to endpoints on the same node. If no endpoints exist on that node, the traffic is dropped rather than routed to pods on other nodes.
This question evaluates your knowledge of Kubernetes Networking — a core concept tested in cloud certification exams. Understanding Kubernetes Networking 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.
If a developer wants an application to be accessible via standard HTTP/HTTPS hostnames and paths (e.g., myapp.com/api), what object should be deployed?
By default, pods in a Kubernetes cluster can communicate with any other pod in any namespace. You want to restrict traffic so that the 'backend' pods only accept connections from 'frontend' pods. Which resource should you configure?
You want to configure an Ingress controller to route HTTP traffic to two different backend services based on the URL path: traffic to '/api' should go to 'api-service', and all other traffic should go to 'web-service'. How should you define this routing logic in the Ingress resource spec?
Pods in your Kubernetes cluster are suddenly unable to resolve external domain names, but they can still communicate via direct IP addresses. Which of the following is the most appropriate first troubleshooting step?