Google Associate Cloud Engineer Question 117
Select 3Google Cloud PlatformYou are tasked with deploying a Kubernetes cluster on Google Kubernetes Engine (GKE) to host a web application that requires high availability and resilience. Which of the following configurations should you consider to meet these requirements?
- A
Deploy the cluster in a single zone.
- B
Enable autoscaling for the node pool.
- C
Deploy the cluster across multiple zones.
- D
Use a regional cluster instead of a zonal cluster.
- E
Disable node auto-upgrades to maintain stability.
Show answer and explanation
Correct answers: B, C, D
Explanation
To ensure high availability and resilience in a GKE cluster, it's important to deploy across multiple zones and consider regional clusters. Autoscaling supports resilience by adapting to workload demands. These configurations help maintain application uptime and reliability.
- A. Incorrect.
Deploying the cluster in a single zone can lead to potential downtime if that zone experiences an outage, which does not meet high availability requirements.
- B. Correct.
Enabling autoscaling for the node pool ensures that the cluster can handle varying loads by adjusting the number of nodes automatically, which is important for resilience and availability.
- C. Correct.
Deploying the cluster across multiple zones increases availability by ensuring that workloads can continue to run even if one zone becomes unavailable.
- D. Correct.
Using a regional cluster instead of a zonal cluster enhances availability and resilience by spreading resources across multiple zones within a region.
- E. Incorrect.
Disabling node auto-upgrades might seem like it maintains stability, but it can lead to outdated software and security vulnerabilities. It's generally better to manage upgrades carefully rather than disabling them.