Correct Answer: NetworkPolicy
NetworkPolicies define rules for how groups of pods are allowed to communicate with each other and other network endpoints, acting as a firewall for pods....
Correct Answer
NetworkPolicy
Why This Answer Is Correct
NetworkPolicies define rules for how groups of pods are allowed to communicate with each other and other network endpoints, acting as a firewall for pods.
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?
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?
You have a frontend service that communicates with a backend service. To minimize network latency and inter-zone bandwidth costs, you want the frontend pod to only route traffic to backend pods running on the exact same node, returning a connection error if no local backend pod is available. Which Service spec field should you configure?