Minimize overhead in BigQuery ML preprocessing
You developed a BigQuery ML linear regressor model by using a training dataset stored in a BigQuery table. New data is added to the table every minute. You are using Cloud Scheduler and Vertex AI Pipelines to automate hourly model training, and use the model for direct inference. The feature preprocessing logic includes quantile bucketization and MinMax scaling on data received in the last hour. You want to minimize storage and computational overhead. What should you do?
Community Votes
56% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The question tests the ability to use the BigQuery ML TRANSFORM clause for native preprocessing, avoiding the trap of manual data staging or complex pipeline orchestration.
To minimize storage and computational overhead for BigQuery ML preprocessing, use the TRANSFORM clause in the CREATE MODEL statement. This native feature handles feature engineering like scaling and bucketization without manual data staging.
A common mistake is choosing Option A or D, assuming that preprocessed data or statistics must be manually stored, rather than leveraging BQML's automatic handling of transformations.
Community Discussion (7 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
TheTRANSFORM clause in BigQuery ML allows you to define preprocessing logic, such as quantile bucketization and MinMax scaling, directly within the CREATE MODEL statement. BigQuery calculates the necessary statistics from the training data and stores the transformation logic with the model, applying it automatically during inference. This native integration eliminates the need for intermediate storage or custom compute resources, effectively minimizing both storage and computational overhead.Why the Other Options Are Wrong
Option A involves preprocessing and staging data, which creates duplicate data storage and adds ETL steps. Option D requires storing statistics in separate tables, increasing storage and management overhead. Option C suggests building a custom Vertex AI Pipeline component to calculate statistics, which introduces unnecessary complexity and computational costs compared to the optimized, built-in SQL functionality of theTRANSFORM clause.Community Comment Notes
Community comments highlight that Option B is the most efficient because it avoids the storage penalties associated with Options A and D and the computational complexity of Option C. Comment [1] emphasizes that theTRANSFORM clause calculates statistics on-the-fly without extra storage. While Comment [2] raised concerns about full-pass transformations, the consensus confirms that BQML handles these operations effectively within the TRANSFORM clause. Official Reference
Exam Strategy
For BigQuery ML questions focused on efficiency and overhead, always prioritize native SQL features like the TRANSFORM clause over manual data staging or external pipeline orchestration.
Related Analysis
Practice All PMLE Questions
Access 65 questions with complete answers and detailed explanations.
View Full PMLE Practice Test →