A platform team is establishing deployment infrastructure for a multi-tenant application on Google Kubernetes Engine (GKE). The application consists of a persistent transactional database requiring guaranteed node availability and an asynchronous queue-processing worker service designed to handle sudden termination gracefully. Additionally, administrators need to execute `kubectl` commands from a new CI/CD build agent that has the `gcloud` CLI authenticated. Which deployment configuration and administrative setup correctly satisfies these workload requirements while maintaining cost efficiency and proper cluster connectivity?
- Provision a GKE Standard cluster with a standard node pool for the persistent database and a Spot node pool for the queue-processing workers, then execute `gcloud container clusters get-credentials` on the build agent before running `kubectl` commands.Cevap
- BProvision a GKE Standard cluster configured with a single Spot node pool for both the database and worker workloads to minimize overall compute cost, then execute `gcloud container clusters get-credentials` on the build agent before running `kubectl` commands.
- CProvision a GKE Standard cluster with a standard node pool for the persistent database and a Spot node pool for the queue-processing workers, then execute `gcloud config set container/cluster` on the build agent to configure cluster access for `kubectl`.
- DProvision a GKE Autopilot cluster and configure custom Linux kernel sysctl parameters on node pools for both workloads, then execute `gcloud container clusters get-credentials` on the build agent before running `kubectl` commands.
Cevap
Provision a GKE Standard cluster with a standard node pool for the persistent database and a Spot node pool for the queue-processing workers, then execute `gcloud container clusters get-credentials` on the build agent before running `kubectl` commands.
The correct strategy uses GKE Standard to separate stateful and fault-tolerant workloads into dedicated node pools (standard for persistent data, Spot for batch processing) to optimize cost without risking database stability. Additionally, `gcloud container clusters get-credentials` must be executed to fetch cluster API endpoints and write valid credentials to the kubeconfig file used by `kubectl`.
Adım Adım Çözüm
Anahtar Kavram
GKE Node Pool Architecture and Cluster Credential Provisioning
Tahmini Süre:2m 0s