Google Associate Cloud Engineer Question 119
Select 2Google Cloud PlatformYou are tasked with deploying a Google Kubernetes Engine (GKE) cluster for a new application that requires high availability across multiple zones and a specific machine type for the nodes. How can you configure the GKE cluster to meet these requirements?
- A
A. Use the gcloud command-line tool with the '--enable-autoscaling' flag to create the cluster.
- B
B. Specify the '--num-nodes' option to set the number of nodes per zone.
- C
C. Use the '--node-locations' flag to specify multiple zones for the nodes.
- D
D. Set the '--machine-type' flag to choose the specific machine type for the nodes.
- E
E. Enable 'private clusters' to ensure high availability.
Show answer and explanation
Correct answers: C, D
Explanation
To deploy a GKE cluster with high availability across multiple zones, the '--node-locations' flag should be used to specify the zones. Additionally, the '--machine-type' flag allows you to define the specific machine type for the cluster nodes. These configurations collectively ensure that the cluster is deployed according to the specified requirements.
- A. Incorrect.
A. The '--enable-autoscaling' flag is used to automatically adjust the number of nodes in a node pool, but it does not configure high availability across multiple zones or specify machine types.
- B. Incorrect.
B. The '--num-nodes' option sets the number of nodes per zone but does not ensure high availability across multiple zones.
- C. Correct.
C. The '--node-locations' flag allows you to specify multiple zones, which is necessary for high availability.
- D. Correct.
D. The '--machine-type' flag is used to specify the machine type for the nodes, which meets the requirement of choosing a specific machine type.
- E. Incorrect.
E. Enabling 'private clusters' restricts access to nodes but does not directly ensure high availability across multiple zones.