professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An enterprise data engineering team runs a batch PySpark data processing workload once every night. The workload exhibits highly variable processing duration (between 45 and 90 minutes) and is fault-tolerant, allowing individual task retries without pipeline failure.
The team wants to minimize overall cloud spending by eliminating idle infrastructure costs during off-peak hours while keeping compute resource expenses as low as possible during job execution.
Which Dataproc cluster lifecycle and compute architecture should the team implement?
Ephemeral (job-scoped) Dataproc clusters are created on demand specifically to execute a designated batch workload or workflow template and are automatically deleted immediately upon job completion. Combining ephemeral lifecycles with secondary workers (preemptible VMs or Spot VMs) enables data pipelines to dynamically provision low-cost compute resources for data processing without incurring long-term maintenance overhead.
For nightly batch jobs that do not require sub-second startup responsiveness, the 90-second cluster provisioning overhead is negligible compared to the substantial cost savings achieved by eliminating 22+ hours of idle cluster uptime and running processing tasks on discounted Spot/preemptible instances.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.