Question 320
A Kubernetes administrator recommends: Verify and correct the namespace label or the NetworkPolicy namespaceSelector to use the actual intended value. Which situation most directly calls for that operation?
Explanation
Correct Answer
This is the original issue addressed by Namespace label mismatch: The namespace-aware peer rule matches the allowed source namespace as designed.
Incorrect Answers
That separate problem requires another operation: Confirm the installed CNI implements Kubernetes NetworkPolicy enforcement before trusting the YAML object. The team identifies missing policy enforcement capability instead of assuming admission equals traffic filtering.
That separate problem requires another operation: Change HTTPRoute backendRefs port to the Service's exposed port 80 rather than its Pod targetPort. The Gateway routes through the Service port declared in the API instead of a mismatched backend reference.
That separate problem requires another operation: Use the fully qualified api.production.svc.cluster.local name or the appropriate cross-namespace DNS name. The client targets the intended namespace Service instead of relying on local DNS search suffixes.