nerdexam
Google

PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #274

You are developing a custom TensorFlow classification model based on tabular data. Your raw data is stored in BigQuery. contains hundreds of millions of rows, and includes both categorical and…

The correct answer is C. 1. Use TFX components with Dataflow to encode the text features and scale the numerical. For large-scale tabular data from BigQuery requiring MaxMin scaling and one-hot encoding for a custom TensorFlow model trained over multiple epochs, leverage TFX components with Dataflow to minimize effort and cost.

Submitted by kevin_r· Apr 18, 2026Data processing and feature engineering

Question

You are developing a custom TensorFlow classification model based on tabular data. Your raw data is stored in BigQuery. contains hundreds of millions of rows, and includes both categorical and numerical features. You need to use a MaxMin scaler on some numerical features, and apply a one-hot encoding to some categorical features such as SKU names. Your model will be trained over multiple epochs. You want to minimize the effort and cost of your solution. What should you do?

Options

  • A
    1. Write a SQL query to create a separate lookup table to scale the numerical features.
  • B
    1. Use BigQuery to scale the numerical features.
  • C
    1. Use TFX components with Dataflow to encode the text features and scale the numerical
  • D
    1. Write a SQL query to create a separate lookup table to scale the numerical features.

How the community answered

(52 responses)
  • A
    8% (4)
  • B
    15% (8)
  • C
    46% (24)
  • D
    31% (16)

Why each option

For large-scale tabular data from BigQuery requiring MaxMin scaling and one-hot encoding for a custom TensorFlow model trained over multiple epochs, leverage TFX components with Dataflow to minimize effort and cost.

A1. Write a SQL query to create a separate lookup table to scale the numerical features.

Using SQL queries in BigQuery to create lookup tables for scaling or performing encoding can be inefficient and complex to manage for a large number of features and rows, especially when ensuring consistency between training and serving, and for iterative model development.

B1. Use BigQuery to scale the numerical features.

While BigQuery can perform some data transformations, complex preprocessing like robust one-hot encoding for many categorical features or global MaxMin scaling values consistent across large datasets and multiple training epochs is more efficiently and robustly handled by a dedicated ML preprocessing framework like TFX/TensorFlow Transform, which integrates well with TensorFlow models.

C1. Use TFX components with Dataflow to encode the text features and scale the numericalCorrect

Using TFX components, particularly TensorFlow Transform with Dataflow, is ideal for large-scale, complex preprocessing tasks like MaxMin scaling and one-hot encoding for hundreds of millions of rows. This approach ensures consistent transformations between training and serving, is cost-effective for large datasets via Dataflow's distributed processing, and minimizes effort by providing pre-built, robust components for common ML preprocessing.

D1. Write a SQL query to create a separate lookup table to scale the numerical features.

Using SQL queries in BigQuery to create lookup tables for scaling or performing encoding can be inefficient and complex to manage for a large number of features and rows, especially when ensuring consistency between training and serving, and for iterative model development.

Concept tested: Large-scale data preprocessing with TFX/Dataflow

Source: https://cloud.google.com/vertex-ai/docs/pipelines/build-tfx-pipeline

Topics

#Feature Engineering#Data Preprocessing#TensorFlow Extended (TFX)#Google Cloud Dataflow

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-MACHINE-LEARNING-ENGINEER Practice