Skip to content

Choosing between a persistent cluster and a job-based one

For Dataproc, choose between persistent (long-running) clusters and ephemeral, job-scoped clusters based on workload patterns, cost sensitivity, and isolation needs. Ephemeral clusters are the Google-recommended default for most batch workloads because you pay only for the job's runtime and avoid idle capacity. Persistent clusters remain appropriate for interactive, low-latency, or continuously running workloads (e.g., Spark shells, notebooks, streaming) where cluster startup time is unacceptable.

1 · Learn the must-know

  • Ephemeral clusters are created per job (often via Workflow Templates or an orchestrator like Cloud Composer) and deleted immediately after completion, minimizing cost since billing is per-second while nodes run.
  • Persistent clusters incur continuous cost even when idle, so they must be actively monitored, autoscaled, or scheduled for start/stop to control spend.
  • Storing data and metadata outside the cluster lifecycle (e.g., in Cloud Storage rather than HDFS, and using an external Hive metastore like Dataproc Metastore) is essential for ephemeral clusters so state isn't lost when the cluster is deleted.
  • Job-based clusters provide strong workload isolation, each job gets a fresh environment, avoiding resource contention, dependency conflicts, and noisy-neighbor issues common on shared persistent clusters.
  • Cluster startup time (typically 1-2+ minutes) is a real tradeoff for ephemeral clusters, making persistent clusters preferable for latency-sensitive interactive or streaming use cases.
  • Dataproc Workflow Templates are the standard mechanism to define, parameterize, and automate the create-cluster → run-jobs → delete-cluster pattern for ephemeral clusters.

2 · Check your understanding

Check this objectiveFree · always available

A retail company runs a single Spark job every night that processes the day's sales data in about 30 minutes. Outside of this nightly run, no other workloads use the cluster. Which cluster strategy minimizes cost while keeping operations simple?

Your objective map0 tried · 0 answered correctly · 67 untouched

What you have tried across GCP PDE's objectives, not a readiness score.

Designing data processing systems~22% of the exam0 of 17 tried
Ingesting and processing the data~25% of the exam0 of 11 tried
Storing the data~20% of the exam0 of 13 tried
Preparing and using data for analysis~15% of the exam0 of 11 tried
Maintaining and automating data workloads~18% of the exam0 of 15 tried

3 · Keep going