nerdexam
Microsoft

DP-100 · Question #160

You create a pipeline in designer to train a model that predicts automobile prices. Because of non-linear relationships in the data, the pipeline calculates the natural log (Ln) of the prices in the t

The correct answer is A. Connect the output of the Apply SQL Transformation to the Web Service Output module. C. Add a Select Columns module before the Score Model module to select all columns other than E. Remove the Apply Math Operation module that replaces price with its natural log from the data. Modifying an Azure ML Designer real-time inference pipeline requires removing training-only transformations, excluding the target column from client input, and routing the exp() output to the web service.

Train and deploy models

Question

You create a pipeline in designer to train a model that predicts automobile prices. Because of non-linear relationships in the data, the pipeline calculates the natural log (Ln) of the prices in the training data, trains a model to predict this natural log of price value, and then calculates the exponential of the scored label to get the predicted price. The training pipeline is shown in the exhibit. (Click the Training pipeline tab.) Training pipeline You create a real-time inference pipeline from the training pipeline, as shown in the exhibit. (Click the Real-time pipeline tab.) Real-time pipeline You need to modify the inference pipeline to ensure that the web service returns the exponential of the scored label as the predicted automobile price and that client applications are not required to include a price value in the input values. Which three modifications must you make to the inference pipeline? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

Exhibits

DP-100 question #160 exhibit 1
DP-100 question #160 exhibit 2

Options

  • AConnect the output of the Apply SQL Transformation to the Web Service Output module.
  • BReplace the Web Service Input module with a data input that does not include the price column.
  • CAdd a Select Columns module before the Score Model module to select all columns other than
  • DReplace the training dataset module with a data input that does not include the price column.
  • ERemove the Apply Math Operation module that replaces price with its natural log from the data
  • FRemove the Apply SQL Transformation module from the data flow.

How the community answered

(55 responses)
  • A
    76% (42)
  • B
    4% (2)
  • D
    15% (8)
  • F
    5% (3)

Why each option

Modifying an Azure ML Designer real-time inference pipeline requires removing training-only transformations, excluding the target column from client input, and routing the exp() output to the web service.

AConnect the output of the Apply SQL Transformation to the Web Service Output module.Correct

Connecting the Apply SQL Transformation output - which computes exp(scored label) - directly to the Web Service Output module ensures the endpoint returns the predicted price in the original dollar scale rather than the log-transformed value.

BReplace the Web Service Input module with a data input that does not include the price column.

Replacing the Web Service Input with a static data input would break the real-time nature of the endpoint and prevent clients from dynamically submitting their own automobile feature data for scoring.

CAdd a Select Columns module before the Score Model module to select all columns other thanCorrect

Adding a Select Columns module before Score Model to exclude the price column ensures client applications submitting inference requests are not required to provide the actual price, which is the target variable being predicted.

DReplace the training dataset module with a data input that does not include the price column.

Replacing the training dataset module affects the training data source only and has no impact on what inputs client applications must provide when calling the deployed inference endpoint.

ERemove the Apply Math Operation module that replaces price with its natural log from the dataCorrect

The Apply Math Operation computing ln(price) was necessary only during training to transform the target variable; removing it from the inference pipeline eliminates any dependency on a real price input from clients at scoring time.

FRemove the Apply SQL Transformation module from the data flow.

Removing the Apply SQL Transformation module eliminates the exp() calculation entirely, causing the web service to return the raw log-transformed score instead of the actual predicted automobile price.

Concept tested: Azure ML Designer real-time inference pipeline modification for log-transformed targets

Source: https://learn.microsoft.com/en-us/azure/machine-learning/concept-designer

Topics

#Azure ML Designer Pipelines#Real-time Inference#Data Transformation#Web Service Configuration

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice