Your team manages three GKE clusters and developers need to switch clusters regularly without losing local tooling. Which Google-recommended approach should you use?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a kubeconfig that defines clusters, users, and contexts; share it and have developers use kubectl config to add or switch contexts..
Why this is the answer
Creating a shared kubeconfig file that pre-defines all clusters, users, and contexts is the Google-recommended and most efficient approach for managing multiple GKE clusters. Developers can then use kubectl config use-context <context-name to easily switch between clusters without re-authenticating or re-fetching credentials. This centralizes configuration and reduces manual effort. Asking developers to use Cloud Shell is inconvenient for local tooling. Asking them to install gcloud CLI locally and run get-credentials for each switch is repetitive and less efficient than a pre-configured kubeconfig. Manually configuring each cluster in separate terminals is error-prone and not scalable.
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