New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-100 Exam - Topic 1 Question 34 Discussion

Actual exam question for Microsoft's DP-100 exam
Question #: 34
Topic #: 1
[All DP-100 Questions]

You plan to use the Hyperdrive feature of Azure Machine Learning to determine the optimal hyperparameter values when training a model.

You must use Hyperdrive to try combinations of the following hyperparameter values. You must not apply an early termination policy.

learning_rate: any value between 0.001 and 0.1

* batch_size: 16, 32, or 64

You need to configure the sampling method for the Hyperdrive experiment

Which two sampling methods can you use? Each correct answer is a complete solution.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer: C, D

C: Bayesian sampling is based on the Bayesian optimization algorithm and makes intelligent choices on the hyperparameter values to sample next. It picks the sample based on how the previous samples performed, such that the new sample improves the reported primary metric.

Bayesian sampling does not support any early termination policy

Example:

from azureml.train.hyperdrive import BayesianParameterSampling

from azureml.train.hyperdrive import uniform, choice

param_sampling = BayesianParameterSampling( {

'learning_rate': uniform(0.05, 0.1),

'batch_size': choice(16, 32, 64, 128)

}

)

D: In random sampling, hyperparameter values are randomly selected from the defined search space. Random sampling allows the search space to include both discrete and continuous hyperparameters.

Incorrect Answers:

B: Grid sampling can be used if your hyperparameter space can be defined as a choice among discrete values and if you have sufficient budget to exhaustively search over all values in the defined search space. Additionally, one can use automated early termination of poorly performing runs, which reduces wastage of resources.

Example, the following space has a total of six samples:

from azureml.train.hyperdrive import GridParameterSampling

from azureml.train.hyperdrive import choice

param_sampling = GridParameterSampling( {

'num_hidden_layers': choice(1, 2, 3),

'batch_size': choice(16, 32)

}

)


https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters

Contribute your Thoughts:

0/2000 characters
Heidy
4 months ago
I thought early termination was a must for Hyperdrive?
upvoted 0 times
...
Gaynell
4 months ago
Random sampling is also a valid method here!
upvoted 0 times
...
Kenny
4 months ago
Wait, can you really use no sampling? Seems odd.
upvoted 0 times
...
Moira
5 months ago
Totally agree, those are solid choices!
upvoted 0 times
...
Rossana
5 months ago
Grid sampling and Bayesian sampling are the best options.
upvoted 0 times
...
Francisca
5 months ago
I’m pretty confident that Grid sampling is correct, but I’m torn between Random and Bayesian for the second option.
upvoted 0 times
...
Margot
5 months ago
I practiced a question similar to this, and I feel like No sampling might not be the right choice here.
upvoted 0 times
...
Elliot
5 months ago
I think Bayesian sampling could work too, but I also recall something about Random sampling being a valid option.
upvoted 0 times
...
Gracia
5 months ago
I remember that Grid sampling is definitely one of the methods we can use, but I'm not sure about the second one.
upvoted 0 times
...
Antione
5 months ago
I'm a little confused on the best way to handle the variable rows. Is the Step element really the right choice there? Maybe an Edit Block would work better. And then definitely the Input Block and Formula. But I'm not 100% sure on the third element.
upvoted 0 times
...
Alease
5 months ago
I'm a bit confused about how to implement Brokered Authentication in this scenario, but it does sound like a good way to verify credentials.
upvoted 0 times
...
Dong
5 months ago
I'm feeling a little lost on this one. File replication is an important topic, but I'm having trouble remembering the specific details. I'll try to eliminate the options that don't sound right.
upvoted 0 times
...
Dong
5 months ago
Okay, let me think this through step-by-step. The Control Plan is about sustaining improvements, so it needs to involve a tool that can help support the Response Plan. Of the options given, the Shewhart Chart seems like the best fit for monitoring the process and detecting defects.
upvoted 0 times
...
Jacklyn
5 months ago
I think Wireshark uses a key log file for decrypting TLS traffic, but I'm not entirely sure about where to get that file from.
upvoted 0 times
...
Lawana
5 months ago
I'm a little confused by this question. Is it really just about balancing those four factors? I feel like there might be some other important considerations when devising information security controls.
upvoted 0 times
...

Save Cancel