Your existing application running in Google Kubernetes Engine (GKE) consists of multiple pods running on four GKE n1`"standard`"2 nodes. You need to deploy additional pods requiring n2`"highmem`"16 nodes without any downtime. What should you do?
A.
Use gcloud container clusters upgrade. Deploy the new services.
B.
Create a new Node Pool and specify machine type n2ג€"highmemג€"16. Deploy the new pods.
C.
Create a new cluster with n2ג€"highmemג€"16 nodes. Redeploy the pods and delete the old cluster.
D.
Create a new cluster with both n1ג€"standardג€"2 and n2ג€"highmemג€"16 nodes. Redeploy the pods and delete the old cluster.
B is correct answer, read below form google docs;
This tutorial demonstrates how to migrate workloads running on a Google Kubernetes Engine (GKE) cluster to a new set of nodes within the same cluster without incurring downtime for your application. Such a migration can be useful if you want to migrate your workloads to nodes with a different machine type.
Background
A node pool is a subset of machines that all have the same configuration, including machine type (CPU and memory) authorization scopes. Node pools represent a subset of nodes within a cluster; a container cluster can contain one or more node pools.
When you need to change the machine profile of your Compute Engine cluster, you can create a new node pool and then migrate your workloads over to the new node pool.
To migrate your workloads without incurring downtime, you need to:
Mark the existing node pool as unschedulable.
Drain the workloads running on the existing node pool.
Delete the existing node pool.
https://cloud.google.com/kubernetes-engine/docs/tutorials/migrating-node-pool#creating_a_node_pool_with_large_machine_type
B. Create a new Node Pool and specify machine type n2"highmem"16. Deploy the new pods.
Creating a new Node Pool with the required machine type is the correct approach to deploy additional pods without any downtime. This approach allows you to scale the cluster horizontally by adding more nodes to the existing cluster. By creating a new Node Pool, you can add n2"highmem"16 nodes to the existing cluster, and deploy new pods on these nodes without affecting the existing services running on the n1"standard"2 nodes. This way, you can ensure high availability and zero downtime during the deployment. Option A (gcloud container clusters upgrade) upgrades the entire cluster, and Option C and D (creating a new cluster) involve deleting the existing cluster, which may cause downtime.
The keyword is "additional". Answer B is good if you want to replace with the new VMs. In this case you want the existing ones as well as the new ones. Therefore D.
Answer is B - When you need to change the machine profile of your Compute Engine cluster, you can create a new node pool and then migrate your workloads over to the new node pool.
upvoted 3 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
GCP_Student1
Highly Voted 2 years, 11 months agoCaptain1212
Most Recent 6 months agoashtonez
11 months, 3 weeks agoChiunara
12 months agoBobbybash
1 year agoBlueJay20
1 year agoswa99
1 year agoAzureDP900
1 year, 8 months agoTirthankar17
1 year, 8 months agoarsh1916
2 years, 9 months agoJacky_YO
2 years, 11 months agopondai
2 years, 11 months agodunhill
2 years, 11 months agoGCP_Student1
2 years, 11 months agoGCP_Student1
2 years, 11 months agoJamaal_a
2 years, 11 months ago