Google Cloud Professional Machine Learning Engineer — Question 164

You are working with a dataset that contains customer transactions. You need to build an ML model to predict customer purchase behavior. You plan to develop the model in BigQuery ML, and export it to Cloud Storage for online prediction. You notice that the input data contains a few categorical features, including product category and payment method. You want to deploy the model as quickly as possible. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because using the CREATE MODEL statement allows you to directly specify both categorical and non-categorical features without needing transformations. Options A and B involve additional encoding steps that may slow down the deployment process, while option D suggests using the ML.MULTI_HOT_ENCODER, which is not necessary in this context and does not align with the goal of a quick deployment.