Google Associate Cloud Engineer Question 120
Select 2Google Cloud PlatformYou are tasked with deploying a Google Kubernetes Engine (GKE) cluster that requires high availability and automatic scaling of nodes. Which combination of configurations should you use to achieve this setup?
- A
A regional cluster with multiple zones enabled.
- B
A single-zone cluster with node auto-repair enabled.
- C
Enable auto-scaling for node pools.
- D
Use preemptible VMs for cost efficiency.
- E
A private cluster with authorized networks enabled.
Show answer and explanation
Correct answers: A, C
Explanation
To achieve high availability and automatic scaling in GKE, a regional cluster should be used to distribute nodes across multiple zones, minimizing the impact of zonal failures. Enabling auto-scaling ensures that the cluster can automatically adjust to workload demands, maintaining performance and availability.
- A. Correct.
A regional cluster with multiple zones ensures high availability by distributing nodes across different zones, protecting against zonal failures.
- B. Incorrect.
A single-zone cluster does not provide high availability since all nodes are in one zone, which could lead to downtime if that zone experiences issues.
- C. Correct.
Enabling auto-scaling for node pools allows the cluster to automatically adjust the number of nodes based on the workload, ensuring efficient resource utilization and high availability.
- D. Incorrect.
Using preemptible VMs can reduce costs but does not directly contribute to high availability, as these VMs can be terminated at any time, potentially affecting availability.
- E. Incorrect.
While a private cluster with authorized networks enhances security, it does not inherently provide high availability or automatic scaling capabilities.