A BigQuery ML model needs features scaled and bucketized. The team wants the same preprocessing applied automatically when the model is evaluated and used for predictions. What should they use?
- Exam domain
- Architecting low-code AI solutions~13% of the exam
- Difficulty
- Medium
- In this mock
- 9 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Building features or input data for ML models by using BigQuery ML.
Feature engineering in SQL must match at prediction time. The exam checks TRANSFORM.
Why A is the answer
The TRANSFORM clause in CREATE MODEL
Preprocessing in the TRANSFORM clause is saved with the model and applied automatically by ML.EVALUATE and ML.PREDICT.
How it works
The TRANSFORM clause lists preprocessing functions inside CREATE MODEL.
BigQuery ML stores that preprocessing with the model.
ML.EVALUATE and ML.PREDICT apply it automatically, which avoids training-serving skew.
Clues in the question
The words that point to the answer, and what each one tells you.
- Applied automatically when the model is evaluated and used
- Preprocessing saved with the model.
In detail
- Functions such as ML.STANDARD_SCALER and ML.QUANTILE_BUCKETIZE run inside TRANSFORM.
- Callers pass raw columns; the model applies the transforms.
Side by side with look-alikes
| Option | Applied automatically at prediction? |
|---|---|
| TRANSFORM clause | Yes |
| Separate view | Only if callers use it |
| Spreadsheet step | No |
| Larger reservation | Not preprocessing |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The TRANSFORM clause in CREATE MODELRight
Preprocessing in the TRANSFORM clause is saved with the model and applied automatically by ML.EVALUATE and ML.PREDICT.
B. A separate view that each caller must remember to queryWrongMost tempting
A view works only if every caller uses it, which invites skew.
Why it tempts: Views centralize SQL too. But a caller who skips the view sends raw data to a model trained on transformed data.
C. Manual preprocessing in a spreadsheet before each predictionWrong
Manual steps are error-prone and do not scale.
D. A larger BigQuery reservationWrong
Capacity does not change preprocessing.
In practice
- Keep label columns out of TRANSFORM outputs you do not want as features.