
Answer-first summary for fast verification
Answer: gcloud dataproc clusters update with the --num-secondary-workers parameter
To adjust the number of preemptible (secondary) worker nodes in a Cloud Dataproc cluster after its creation, use the `gcloud dataproc clusters update` command with the `--num-secondary-workers` parameter. The `--num-workers` parameter is reserved for modifying the count of primary (non-preemptible) workers. Notably, there's no `--preemptible-vms` parameter in the gcloud dataproc command suite. This flexibility allows for dynamic scaling of secondary workers to accommodate varying workloads. For more details, refer to the official documentation: [https://cloud.google.com/sdk/gcloud/reference/dataproc/clusters/update](https://cloud.google.com/sdk/gcloud/reference/dataproc/clusters/update).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your Cloud Dataproc cluster is under a heavier workload than usual, and you're considering adding several preemptible VMs as worker nodes to manage the load. Which command should you use to accomplish this?
A
gcloud dataproc clusters update with the --num-secondary-workers parameter
B
The number of preemptible nodes in a Cloud Dataproc cluster cannot be changed once the cluster is created.
C
gcloud dataproc clusters update with the --preemptible-vms parameter
D
gcloud dataproc clusters update with the --num-workers parameter