Pass the Microsoft Microsoft Azure DP-100 Questions and answers with CertsForce

Viewing page 4 out of 6 pages
Viewing questions 31-40 out of questions
Questions # 31:

You use the following Python code in a notebook to deploy a model as a web service:

Question # 31

The deployment fails.

You need to use the Python SDK in the notebook to determine the events that occurred during service deployment an initialization.

Which code segment should you use?

Options:

A.

service.state


B.

service.environment


C.

service.get_logs()


D.

Service.serialize


Expert Solution
Questions # 32:

You are a data scientist working for a hotel booking website company. You use the Azure Machine Learning service to train a model that identifies fraudulent transactions.

You must deploy the model as an Azure Machine Learning real-time web service using the Model.deploy method in the Azure Machine Learning SDK. The deployed web service must return real-time predictions of fraud based on transaction data input.

You need to create the script that is specified as the entry_script parameter for the InferenceConfig class used to deploy the model.

What should the entry script do?

Options:

A.

Start a node on the inference cluster where the web service is deployed.


B.

Register the model with appropriate tags and properties.


C.

Create a Conda environment for the web service compute and install the necessary Python packages.


D.

Load the model and use it to predict labels from input data.


E.

Specify the number of cores and the amount of memory required for the inference compute.


Expert Solution
Questions # 33:

You create an Azure Machine Learning workspace.

You need to use the shared file system of the workspace to store a clone of a private Git repository.

Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Question # 33


Expert Solution
Questions # 34:

You use Azure Machine Learning Designer to load the following datasets into an experiment:

Dataset1

Question # 34

Dataset2

Question # 34

You use Azure Machine Learning Designer to load the following datasets into an experiment:

You need to create a dataset that has the same columns and header row as the input datasets and contains all rows from both input datasets.

Solution: Use the Join Data component.

Does the solution meet the goal?

Options:

A.

Yes


B.

No


Expert Solution
Questions # 35:

You create an Azure Machine Learning pipeline named pipeline 1 with two steps that contain Python scnpts. Data processed by the first step is passed to the second step.

You must update the content of the downstream data source of pipeline 1 and run the pipeline again.

You need to ensure the new run of pipeline 1 fully processes the updated content.

Solution: Change the value of the compute.target parameter of the PythonScriptStep object in the two steps.

Does the solution meet the goal'

Options:

A.

Yes


B.

No


Expert Solution
Questions # 36:

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 use Azure Machine Learning designer to load the following datasets into an experiment:

Question # 36

You need to create a dataset that has the same columns and header row as the input datasets and contains all rows from both input datasets.

Solution: Use the Execute Python Script module.

Does the solution meet the goal?

Options:

A.

Yes


B.

No


Expert Solution
Questions # 37:

You manage an Azure Machine Learning workspace named workspace1 by using the Python SDK v2.

You must register datastores in workspace1 for Azure Blob and Azure Data Lake Gen2 storage to meet the following requirements:

• Data scientists accessing the datastore must have the same level of access.

• Access must be restricted to specified containers or folders.

You need to configure a security access method used to register the Azure Blob and Azure Data lake Gen? storage in workspace1. Which security access method should you configure? To answer, select the appropriate options in the answers area.

NOTE: Each correct selection is worth one point.

Question # 37


Expert Solution
Questions # 38:

You have an Azure Machine Learning workspace. You build a deep learning model.

You need to publish a GPU-enabled model as a web service.

Which two compute targets can you use? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Options:

A.

Azure Kubernetes Service (AKS)


B.

Azure Container Instances (ACI)


C.

Local web service


D.

Azure Machine Learning compute clusters


Expert Solution
Questions # 39:

You have an Azure Machine Learning workspace.

You have the following code:

Question # 39

You plan to rely on serverless compute to train a model by using Azure Machine Learning Python SDK v2. The serverless compute must use a designated number of nodes of a specific virtual machine type.

You need to modify the code to run the training job according to the plan.

How should you modify the command object? To answer, select the appropriate oations in the answer area.

NOTE: Each correct selection is worth one point.

Question # 39


Expert Solution
Questions # 40:

You have a Jupyter Notebook that contains Python code that is used to train a model.

You must create a Python script for the production deployment. The solution must minimize code maintenance.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Options:

A.

Refactor the Jupyter Notebook code into functions


B.

Save each function to a separate Python file


C.

Define a main() function in the Python script


D.

Remove all comments and functions from the Python script


Expert Solution
Viewing page 4 out of 6 pages
Viewing questions 31-40 out of questions