Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Machine Learning Engineer practice bank has an additional 974 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
Your team is building a tabular classification pipeline in BigQuery ML on a dataset containing 500 candidate features and 8,000 rows, where most variables are suspected to be irrelevant noise. You have the following technical objectives:
BOOSTED_TREE_CLASSIFIER and AUTOML_CLASSIFIER models using native SQL functionsWhich BigQuery ML configuration and evaluation workflow should you implement?
LOGISTIC_REG model with default EARLY_STOP = TRUE and L2_REG set larger than L1_REG to shrink irrelevant feature coefficients to exact zero, and query ML.WEIGHTS across the LOGISTIC_REG, BOOSTED_TREE_CLASSIFIER, and AUTOML_CLASSIFIER models to compare variable weights directly.This approach relies on L2-dominant regularization with default early stopping in a logistic regression model and attempts to use ML.WEIGHTS uniformly across linear, boosted tree, and AutoML models.
L2_REG penalizes large weights and shrinks coefficients toward zero to curb overfitting, it rarely sets weights to exact zero. L1 regularization (L1_REG) is required to enforce sparsity and eliminate irrelevant noise variables.EARLY_STOP = TRUE halts training as soon as relative loss improvement on the holdout split falls below min_rel_progress, preventing you from clearly evaluating how different regularization magnitudes affect convergence and weight sparsity.ML.WEIGHTS calls: BigQuery ML only supports ML.WEIGHTS for linear/logistic regression and matrix factorization models. It does not support ML.WEIGHTS for BOOSTED_TREE_CLASSIFIER or AUTOML_CLASSIFIER.ML.FEATURE_IMPORTANCE or ML.GLOBAL_EXPLAIN, this workflow cannot measure global feature influence on non-linear benchmark models in SQL.The goal were solely to build a dense linear or logistic regression model where most features are expected to be relevant and you wanted to prevent collinearity from inflating weights rather than performing sparse feature selection or inspecting tree/AutoML models.
LOGISTIC_REG model with EARLY_STOP = FALSE and L1_REG set larger than L2_REG across orders of magnitude, inspect retained weights using ML.WEIGHTS and ML.ADVANCED_WEIGHTS, and evaluate global feature influence using ML.FEATURE_IMPORTANCE or ML.GLOBAL_EXPLAIN on BOOSTED_TREE_CLASSIFIER and ML.GLOBAL_EXPLAIN on AUTOML_CLASSIFIER.This workflow combines sparse L1 regularization in a BigQuery ML logistic regression (LOGISTIC_REG) model with model-appropriate Explainable AI (XAI) and weight inspection functions to perform automated feature selection and cross-model feature evaluation directly in SQL.
L1_REG larger than L2_REG applies a stronger L1 penalty, which performs better when many candidate features are irrelevant and drives non-informative coefficients to exact zero, retaining only impactful original variables in a compact model.EARLY_STOP = FALSE disables BigQuery ML's default early stopping mechanism so training does not halt prematurely based on holdout loss plateaus, allowing the true impact of different regularization magnitudes (such as 0.01, 0.1, 1, 10, and 100) to be observed.ML.WEIGHTS reveals which feature coefficients remain non-zero, while ML.ADVANCED_WEIGHTS provides standard errors and p-values for statistical significance testing.BOOSTED_TREE_CLASSIFIER, ML.FEATURE_IMPORTANCE returns Gini Index-based global scores and ML.GLOBAL_EXPLAIN returns aggregated Tree SHAP attributions. For AUTOML_CLASSIFIER, ML.GLOBAL_EXPLAIN is the supported SQL function, computing Sampled Shapley global attributions.Unlike L2-dominant regularization, PCA transformations, or unsupported SQL explainability calls on AutoML Tables, this approach preserves original feature interpretability while strictly adhering to BigQuery ML's supported functions per model type.
LOGISTIC_REG model with EARLY_STOP = FALSE, L1_REG = 0, and a high L2_REG value to eliminate irrelevant features, then run ML.ADVANCED_WEIGHTS on BOOSTED_TREE_CLASSIFIER for p-value significance testing and ML.EXPLAIN_PREDICT on AUTOML_CLASSIFIER to compute global Sampled Shapley scores.This approach disables early stopping and L1 regularization in LOGISTIC_REG in favor of pure L2 regularization, while attempting to use ML.ADVANCED_WEIGHTS on a boosted tree model and ML.EXPLAIN_PREDICT for global explanations on an AutoML model.
L1_REG = 0 turns off L1 regularization completely. Without L1 regularization, L2_REG cannot reliably drive irrelevant feature coefficients to exact zero when many candidate variables are noise.ML.ADVANCED_WEIGHTS is restricted to linear models: ML.ADVANCED_WEIGHTS returns standard errors and p-values for significance testing strictly for linear and logistic regression models. Boosted tree models do not have parametric linear weights and do not support ML.ADVANCED_WEIGHTS.AUTOML_CLASSIFIER computes Sampled Shapley global attributions exclusively through ML.GLOBAL_EXPLAIN, whereas ML.EXPLAIN_PREDICT provides local per-row explanations and is unavailable for AutoML Tables in BigQuery ML.L1_REG and L2_REG default to 0 in BigQuery ML; when many features are irrelevant, theoretical and empirical guidance favors setting L1_REG higher than L2_REG.ML.FEATURE_IMPORTANCE (Gini Index) and ML.GLOBAL_EXPLAIN or ML.EXPLAIN_PREDICT (Tree SHAP or Approximate Feature Contribution), never ML.ADVANCED_WEIGHTS.You were testing statistical p-values via ML.ADVANCED_WEIGHTS on an unregularized or L2-regularized LOGISTIC_REG model rather than on BOOSTED_TREE_CLASSIFIER, and using ML.GLOBAL_EXPLAIN instead of ML.EXPLAIN_PREDICT for AUTOML_CLASSIFIER.
PCA model in BigQuery ML to retain the most impactful original features in a compact feature set, and evaluate global feature rankings on both BOOSTED_TREE_CLASSIFIER and AUTOML_CLASSIFIER by querying ML.FEATURE_IMPORTANCE and ML.EXPLAIN_PREDICT.This approach applies Principal Component Analysis (PCA) for dimensionality reduction and attempts to use ML.FEATURE_IMPORTANCE and ML.EXPLAIN_PREDICT for global feature evaluation on boosted trees and AutoML Tables models.
PCA projects high-dimensional data into a lower-dimensional space of orthogonal principal components (linear combinations of all original variables). It does not zero out coefficients to isolate and retain a sparse subset of the original variables.ML.FEATURE_IMPORTANCE does not support AutoML: ML.FEATURE_IMPORTANCE computes Gini Index-based feature importance exclusively for boosted tree and random forest models; it is not supported for AUTOML_CLASSIFIER.ML.EXPLAIN_PREDICT is local, not global, and unsupported for AutoML: ML.EXPLAIN_PREDICT returns row-level (local) feature attributions relative to a baseline prediction rather than dataset-wide global importance, and BigQuery ML does not support ML.EXPLAIN_PREDICT for AutoML Tables models.ML.PRINCIPAL_COMPONENTS and ML.PRINCIPAL_COMPONENT_INFO combine all 500 inputs into eigenvectors, making individual variable elimination impossible.ML.GLOBAL_EXPLAIN (using Sampled Shapley), not local ML.EXPLAIN_PREDICT or ML.FEATURE_IMPORTANCE.ML.GLOBAL_EXPLAIN, which aggregates absolute feature attributions across all evaluated rows.You wanted to compress 500 correlated features into dense, low-dimensional embeddings for similarity search, clustering, or anomaly detection without needing to retain interpretable original variables or run global SQL explainability on AutoML Tables.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated