Your team operates a long-running Dataproc cluster that executes a mission-critical Spark Streaming application. Traffic spikes are unpredictable, and recent surges have caused processing lag. You are asked to attach an autoscaling policy that (1) guarantees at least five primary worker nodes are always available and (2) can both grow quickly during spikes and shrink when load drops to control costs. Which policy configuration meets these requirements?
The minimum number of primary workers that Dataproc keeps alive is controlled by the minNumWorkers setting. Setting this value to 5 reserves five workers for the streaming job even when the cluster is otherwise idle. A scaleUpFactor of 0.5 means that up to 50 % of the unsatisfied YARN memory will be provisioned on each evaluation cycle, allowing the cluster to react quickly to demand. A scaleDownFactor of 0.5 permits Dataproc to remove up to half of the excess idle CPU cores each cycle, so the cluster can contract once the surge passes. Together, these parameters ensure resources never drop below the required floor while still enabling both rapid scale-out and scale-in. Options that leave minNumWorkers at 0 risk the cluster shrinking to zero workers, while configurations that set scaleDownFactor to 0 prevent any reduction in size and therefore do not meet the cost-control requirement.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the role of minNumWorkers in Dataproc autoscaling policies?
Open an interactive chat with Bash
How do scaleUpFactor and scaleDownFactor influence autoscaling in Dataproc?
Open an interactive chat with Bash
Why is setting scaleDownFactor to 0 not recommended?
Open an interactive chat with Bash
What is the minNumWorkers setting in Dataproc?
Open an interactive chat with Bash
What does scaleUpFactor control in Dataproc autoscaling?
Open an interactive chat with Bash
What is the role of scaleDownFactor in controlling costs?
Open an interactive chat with Bash
GCP Professional Data Engineer
Maintaining and automating data workloads
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .