
Answer-first summary for fast verification
Answer: Use a single GKE cluster with Kubernetes namespaces for each feature branch, and utilize Skaffold for deploying and managing resources.
**Correct Answer: C** Using a single GKE cluster with Kubernetes namespaces for each feature branch, and utilizing Skaffold for deploying and managing resources, is the most efficient strategy. It provides isolation for different environments and integrates well with CI/CD pipelines to dynamically create environments for each feature branch. **Why not the others?** - **A**: Using individual GKE clusters for each feature branch leads to inefficient resource utilization and complicates the CI/CD pipeline, especially for projects with numerous feature branches. - **B**: While multiple node pools can segregate workloads, they are not the most efficient method for managing feature branches as they focus more on hardware configuration rather than environment isolation. - **D**: Although multiple Kubernetes namespaces can segregate development environments, creating separate GKE clusters for each namespace is resource-inefficient and adds unnecessary complexity to the CI/CD pipeline.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
In a GKE-based environment, you need to manage various development environments and dynamically create environments for each feature branch. Which strategy best meets this requirement while ensuring efficient resource use and optimal CI/CD pipeline integration?
A
Use individual GKE clusters for each feature branch and configure CI/CD pipelines to deploy to the appropriate cluster.
B
Use a single GKE cluster with multiple node pools for each feature branch, and label nodes accordingly.
C
Use a single GKE cluster with Kubernetes namespaces for each feature branch, and utilize Skaffold for deploying and managing resources.
D
Use multiple Kubernetes namespaces for each feature branch, with individual GKE clusters per namespace.