nerdexam
Google

PROFESSIONAL-DATA-ENGINEER · Question #325

You are preparing data that your machine learning team will use to train a model using BigQueryML. They want to predict the price per square foot of real estate. The training data has a column for the

The correct answer is A. SELECT * EXCEPT (feature1), IFNULL(feature1, 0) AS feature1_cleaned FROM training_data;. Option A is correct because it uses SELECT * EXCEPT (feature1) to include all columns except the original feature1, then uses IFNULL(feature1, 0) to replace null values with zeros and aliases it as feature1_cleaned - this preserves all data points including those with missing val

Submitted by noor.lb· Mar 30, 2026Preparing and processing data for machine learning using Google Cloud BigQuery and BigQueryML

Question

You are preparing data that your machine learning team will use to train a model using BigQueryML. They want to predict the price per square foot of real estate. The training data has a column for the price and a column for the number of square feet. Another feature column called 'feature1' contains null values due to missing data. You want to replace the nulls with zeros to keep more data points. Which query should you use? A. B. C. D.

Exhibits

PROFESSIONAL-DATA-ENGINEER question #325 exhibit 1
PROFESSIONAL-DATA-ENGINEER question #325 exhibit 2
PROFESSIONAL-DATA-ENGINEER question #325 exhibit 3
PROFESSIONAL-DATA-ENGINEER question #325 exhibit 4

Options

  • ASELECT * EXCEPT (feature1), IFNULL(feature1, 0) AS feature1_cleaned FROM training_data;
  • BSELECT * EXCEPT (price, square_feet), price/square_feet AS price_per_sqft FROM training_data WHERE feature1 IS NOT NULL;
  • CSELECT * EXCEPT(price, square_feet, feature1), price/square_feet AS price_per_sqft, IFNULL(feature1, 0) AS feature1_cleaned FROM training_data;
  • DSELECT * FROM training_data WHERE feature1 IS NOT NULL;

How the community answered

(34 responses)
  • A
    91% (31)
  • B
    3% (1)
  • C
    6% (2)

Explanation

Option A is correct because it uses SELECT * EXCEPT (feature1) to include all columns except the original feature1, then uses IFNULL(feature1, 0) to replace null values with zeros and aliases it as feature1_cleaned - this preserves all data points including those with missing values, which aligns with the stated goal. The query keeps all other columns intact (including price and square_feet, which are needed for training) without performing any unnecessary transformations.

Topics

#BigQuery SQL#Data Preprocessing#BigQueryML#Feature Engineering

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-DATA-ENGINEER Practice