☎  076 959 6407✉  support@quizcrazepro.co.za
Learn. Practice. Build your future.
BlogHelpContact
G

Google Professional Data Engineer Actual Exam Questions

307 Questions120 Minutes70% Passing Score▣ Updated: Sep 2026

Question 66 of 307

Single answer
The data science team has created and logged a production model using MLflow. The model accepts a list of column names and returns a new column of type DOUBLE. The following code correctly imports the production model, loads the customers table containing the customer_id key column into a DataFrame, and defines the feature columns needed for the model.

Which code block will output a DataFrame with the schema "customer_id LONG, predictions DOUBLE"?
Adf.map(lambda x:model(x[columns])).select("customer_id, predictions")
Bdf.select("customer_id", model(*columns).alias("predictions"))
Cmodel.predict(df, columns)
Ddf.select("customer_id", pandas_udf(model, columns).alias("predictions"))
Edf.apply(model, columns).select("customer_id, predictions")
Correct Answer: B

df.select("customer_id", model(*columns).alias("predictions"))

Explanation

The correct answer is highlighted above. Review the wording carefully, then use the next question to continue building your understanding of Google certification topics.

About this practice exam

Review 307 Google questions with answers and explanations. Use the navigation to move through the exam at your own pace.