A weekly Dataproc Spark job runs ~30 minutes on a 15-node cluster and writes results to BigQuery. How should you optimize cluster cost given this profile?
Choose an answer
Tap an option to check your answer.
Correct answer: Use preemptible virtual machines for the Dataproc cluster..
Why this is the answer
Using preemptible virtual machines (PVMs) for the Dataproc cluster is the most cost-effective optimization. PVMs offer significant cost savings (up to 80% less than standard VMs) and are suitable for fault-tolerant workloads like Spark jobs. Since this job runs weekly for only 30 minutes, the risk of preemption is low, and even if a node is preempted, Spark can recover and continue processing. Migrating to Cloud Dataflow might be an option for long-term architectural changes but is not a direct cost optimization for the existing Dataproc job. Using higher-memory nodes or attaching SSDs would likely increase costs rather than decrease them, as they are premium resources. These options might improve performance, but the question specifically asks for cost optimization given the job's profile.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed