Google Cloud Professional Data Engineer — Question 306
You are managing a Cloud Dataproc cluster. You need to make a job run faster while minimizing costs, without losing work in progress on your clusters. What should you do?
Answer options
- A. Increase the cluster size with more non-preemptible workers.
- B. Increase the cluster size with preemptible worker nodes, and configure them to forcefully decommission.
- C. Increase the cluster size with preemptible worker nodes, and use Cloud Stackdriver to trigger a script to preserve work.
- D. Increase the cluster size with preemptible worker nodes, and configure them to use graceful decommissioning.
Correct answer: D
Explanation
The correct answer is D because using graceful decommissioning allows the preemptible worker nodes to finish their current tasks before shutting down, thus preserving work in progress. Options A and B do not effectively address the need to minimize costs while protecting ongoing work, and option C, while it includes a method to preserve work, does not allow for the natural completion of tasks like option D does.