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.
A data engineering team operates a large Apache Spark batch workload on a Google Cloud Dataproc cluster, with input and output datasets stored directly in Cloud Storage buckets. The workload experiences unpredictable processing spikes throughout the day, interspersed with low-utilization periods.
During review of recent cluster operations and billing metrics, the team identifies several performance and cost issues:
Which Dataproc autoscaling policy configuration resolves these issues while minimizing infrastructure costs?
Dataproc autoscaling policies allow organizations to automate horizontal scaling of cluster resources based on Hadoop YARN memory and CPU metrics, dynamically adjusting worker nodes to align compute capacity with incoming workload demands while enforcing architectural boundaries.
minInstances equal to maxInstances within workerConfig keeps the primary worker group at a static, fixed size. Because primary workers run HDFS DataNodes and essential node services, keeping them static prevents expensive HDFS block replication and eliminates the decommission delays associated with data redistribution.secondaryWorkerConfig ensures that burst compute capacity is fulfilled exclusively by secondary (preemptible or Spot) workers, drastically lowering compute unit costs for dynamic Spark workloads.gracefulDecommissionTimeout in yarnConfig instructs YARN to allow active Spark executors and map/reduce tasks on decommissioned nodes to complete their in-flight processing before terminating the virtual machine, avoiding failed task retries.scaleUpMinWorkerFraction and scaleDownMinWorkerFraction to non-zero fractional values establishes a minimum delta threshold required before an autoscaling event is triggered, preventing cluster adjustments from being initiated by negligible fluctuations in resource queues.This architecture decouples the persistent cluster infrastructure from stateless, bursty worker execution, fulfilling performance SLAs while maintaining rigid cost governance.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.