DP-100 Exam Question 156

You load data from a notebook in an Azure Machine Learning workspace into a pandas dataframe named df.
The data contains 10.000 patient records. Each record includes the Age property for the corresponding patient.
You must identify the mean age value from the differentially private data generated by SmartNoise SDK.
You need to complete the Python code that will generate the mean age value from the differentially private data.
Which code segments should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

DP-100 Exam Question 157

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You are using Azure Machine Learning to run an experiment that trains a classification model.
You want to use Hyperdrive to find parameters that optimize the AUC metric for the model. You configure a HyperDriveConfig for the experiment by running the following code:

You plan to use this configuration to run a script that trains a random forest model and then tests it with validation dat a. The label values for the validation data are stored in a variable named y_test variable, and the predicted probabilities from the model are stored in a variable named y_predicted.
You need to add logging to the script to allow Hyperdrive to optimize hyperparameters for the AUC metric.
Solution: Run the following code:

Does the solution meet the goal?
  • DP-100 Exam Question 158

    Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
    After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
    You create a model to forecast weather conditions based on historical data.
    You need to create a pipeline that runs a processing script to load data from a datastore and pass the processed data to a machine learning model training script.
    Solution: Run the following code:

    Does the solution meet the goal?
  • DP-100 Exam Question 159

    Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
    After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
    You create an Azure Machine Learning service datastore in a workspace. The datastore contains the following files:
    * /data/2018/Q1 .csv
    * /data/2018/Q2.csv
    * /data/2018/Q3.csv
    * /data/2018/Q4.csv
    * /data/2019/Q1.csv
    All files store data in the following format:
    id,f1,f2,l
    1,1,2,0
    2,1,1,1
    3.2.1.0
    You run the following code:

    You need to create a dataset named training_data and load the data from all files into a single data frame by using the following code:

    Solution: Run the following code:

    Does the solution meet the goal?
  • DP-100 Exam Question 160

    You use an Azure Machine Learning workspace.
    You have a trained model that must be deployed as a web service. Users must authenticate by using Azure Active Directory.
    What should you do?