nerdexam
Amazon

MLS-C01 · Question #376

A company wants to use machine learning (ML) to improve its customer churn prediction model. The company stores data in an Amazon Redshift data warehouse. A data science team wants to use Amazon…

The correct answer is A. Define the feature variables and target variable for the churn prediction model. C. Write a CREATE MODEL SQL statement to create a model. F. Use the SQL prediction function to run predictions. To use Amazon Redshift ML for customer churn prediction directly within the data warehouse, users must define variables, create the model with a SQL statement, and run predictions using SQL functions.

Machine Learning Implementation and Operations

Question

A company wants to use machine learning (ML) to improve its customer churn prediction model. The company stores data in an Amazon Redshift data warehouse. A data science team wants to use Amazon Redshift machine learning (Amazon Redshift ML) to build a model and run predictions for new data directly within the data warehouse. Which combination of steps should the company take to use Amazon Redshift ML to meet these requirements? (Choose three.)

Options

  • ADefine the feature variables and target variable for the churn prediction model.
  • BUse the SQL EXPLAIN_MODEL function to run predictions.
  • CWrite a CREATE MODEL SQL statement to create a model.
  • DUse Amazon Redshift Spectrum to train the model.
  • EManually export the training data to Amazon S3.
  • FUse the SQL prediction function to run predictions.

How the community answered

(19 responses)
  • A
    74% (14)
  • B
    16% (3)
  • D
    5% (1)
  • E
    5% (1)

Why each option

To use Amazon Redshift ML for customer churn prediction directly within the data warehouse, users must define variables, create the model with a SQL statement, and run predictions using SQL functions.

ADefine the feature variables and target variable for the churn prediction model.Correct

Defining the feature variables and the target variable is a fundamental first step in preparing data for any machine learning model, including those built with Amazon Redshift ML.

BUse the SQL EXPLAIN_MODEL function to run predictions.

The SQL EXPLAIN_MODEL function is used to retrieve metadata and status about a trained model, such as training performance, not for running predictions.

CWrite a CREATE MODEL SQL statement to create a model.Correct

The CREATE MODEL SQL statement is the core command in Amazon Redshift ML used to initiate the training of a machine learning model, leveraging Amazon SageMaker in the background but managed entirely through SQL within Redshift.

DUse Amazon Redshift Spectrum to train the model.

Amazon Redshift Spectrum allows querying external data in Amazon S3 from Redshift, but it is not used as the engine to train the machine learning model itself; Redshift ML offloads training to Amazon SageMaker.

EManually export the training data to Amazon S3.

Amazon Redshift ML automatically handles the export of training data to Amazon S3 for SageMaker to use during model training, eliminating the need for manual data export.

FUse the SQL prediction function to run predictions.Correct

After a model is trained, Amazon Redshift ML provides specific SQL prediction functions (e.g., PREDICT_ML) that allow users to run inferences on new data directly within the Redshift data warehouse.

Concept tested: Amazon Redshift ML workflow

Source: https://docs.aws.amazon.com/redshift/latest/dg/redshift-ml.html

Topics

#Amazon Redshift ML#SQL Machine Learning#Model Training#Prediction

Community Discussion

No community discussion yet for this question.

Full MLS-C01 Practice