VMware Aria Automation 8.x Professional (2023) — Question 34

Which Kubernetes object controls what traffic is allowed to and from selected pods and network endpoints?

Answer options

Correct answer: B

Explanation

The correct answer is B, NetworkPolicy, as it specifically defines the rules for controlling traffic to and from pods. Ingress (A) is used for managing external access to services, PodSecurityPolicy (C) governs security settings for pods, and Secret (D) is for managing sensitive information, none of which control traffic like NetworkPolicy does.