300-745 · Question #31
A company hosted multiple applications in the Kubernetes environment, using the naming app01, app02, and so on. An app01 user could access app02 data because no security measures are implemented…
The correct answer is C. NetworkPolicy. In Kubernetes, a NetworkPolicy controls communication between pods and namespaces. By applying policies that deny cross-namespace traffic, the administrator can ensure each application (e.g., app01, app02) is isolated and cannot access data from other namespaces.
Question
A company hosted multiple applications in the Kubernetes environment, using the naming app01, app02, and so on. An app01 user could access app02 data because no security measures are implemented. The administrator decided to place each application within a separate namespace and ensure that the namespaces are completely isolated and cannot communicate with each other. Which solution must be used to accomplish the task?
Options
- AHTTPRoute
- BRoleBinding
- CNetworkPolicy
- DGateway
How the community answered
(22 responses)- A14% (3)
- B9% (2)
- C73% (16)
- D5% (1)
Explanation
In Kubernetes, a NetworkPolicy controls communication between pods and namespaces. By applying policies that deny cross-namespace traffic, the administrator can ensure each application (e.g., app01, app02) is isolated and cannot access data from other namespaces.
Topics
Community Discussion
No community discussion yet for this question.