In managing a GKE cluster for a multi-tier application with separate frontend, backend, and data layers, what is the best approach to ensure both logical separation and network policy enforcement?
Choose an answer
Tap an option to check your answer.
Correct answer: Deploy each layer in a different namespace and use NetworkPolicies..
Why this is the answer
*For effectively segregating a multi-tier application (frontend, backend, data layer) in a GKE cluster while also enforcing network policies, deploying each layer in a different namespace combined with the use of NetworkPolicies is the most appropriate approach. Namespaces in Kubernetes provide a logical separation of the different application layers, allowing for organized management and resource allocation. Coupled with NetworkPolicies, this setup enables fine-grained control over the network traffic between these layers, ensuring secure and isolated communication paths. This method offers a balance of logical separation, network isolation, and simplicity in management. In contrast, using different node pools, separate clusters, or service accounts focuses on either physical segregation or identity management and does not inherently address network isolation. Pod Security Policies are more aligned with security constraints at the pod level rather than network isolation between different application layers.*
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed