Question 310
A Kubernetes administrator performs the following operation: Create an ingress NetworkPolicy with namespaceSelector plus podSelector and the required TCP 8080 port. Which outcome most directly follows?
Explanation
Correct Answer
This is the intended effect of Allow only frontend to API: Only matching frontend Pods from the specified namespace satisfy the API Pod ingress allow rule.
Incorrect Answers
This effect belongs to Egress DNS under default deny, produced by a different operation: Add an egress rule permitting UDP and TCP port 53 to the approved DNS Pods or namespace. It is not the direct consequence of the stated action.
This effect belongs to GatewayClass controller mismatch, produced by a different operation: Install or select a supported Gateway API controller and use the GatewayClass associated with its controllerName. It is not the direct consequence of the stated action.
This effect belongs to CoreDNS service not reachable, produced by a different operation: Check CoreDNS Deployment health, DNS Service selectors and ready EndpointSlices before replacing Pod network settings. It is not the direct consequence of the stated action.