Professional Machine Learning Engineer Practice Questions

Google Cloud Professional Machine Learning Engineer exam preparation

Professional Machine Learning Engineer practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 120 minutes.

Professional Machine Learning Engineer free question 5 / 10 · Domain 3: Scaling prototypes into ML models

In hyperparameter tuning, each trial uses 3 GPUs at the same time. The region has a quota of 12 GPUs, and another long-running job already holds 3 of them. Without changing the total of 24 trials, what is the largest parallelTrialCount that stays within the quota?

  1. Set parallelTrialCount to 4
  2. Set parallelTrialCount to 2
  3. Set parallelTrialCount to 6
  4. Set parallelTrialCount to 3
Show the answer and explanation

Answer: D

Why this is correct
The tuning job can use 12 - 3 = 9 GPUs at the same time. Each parallel trial gets a training environment as specified by the job's worker pool configuration, so with 3 GPUs per trial the number of trials that can run at once is 9 / 3 = 3. The total of 24 trials can be kept as a separate setting.

Why the other options are wrong
"Set parallelTrialCount to 6" … Six trials need 18 GPUs, which exceeds the 9 available. Multiply the number of trials by the GPUs per trial and compare with the remaining quota. Each parallel trial gets a training environment as specified in the job's worker pool configuration.
"Set parallelTrialCount to 4" … Four trials would use 12 GPUs for tuning alone, and with the existing job's 3 GPUs the total would be 15. This calculation assumes the whole quota is free.
"Set parallelTrialCount to 2" … Two comes from a miscalculation such as (12 - 3) / 3 - 1, subtracting 1 for margin. Three trials at 3 GPUs each fit within 9 GPUs, so the largest value within the quota is 3.

Key point
Parallel trials shorten the elapsed time, but the total amount of processing usually does not change, and some trials cannot use the results of earlier trials, so tuning can become less effective. Choose the parallel count by both the quota limit and effectiveness.

Go to the Professional Machine Learning Engineer practice app (10 free questions; purchase unlocks all questions)

See the full practice set