🔥 3-day streak
Certified Kubernetes Administrator (CKA)85 / 125
Question 85 of 125

A namespace called 'payments' currently has no NetworkPolicies. A team applies a first policy 'deny-all' with an empty podSelector (selecting all pods) and an empty ingress rule set (no rules). Later they apply a second policy 'allow-frontend' that selects pods with label 'app=api' and allows ingress from pods labeled 'app=frontend' on port 8080. After both policies exist, which statement correctly describes the resulting ingress behavior for a pod labeled 'app=api'?

Reviewed for accuracy · Report an issueNext question