Google Cloud Professional Machine Learning Engineer · 13% practice allocation

Google Cloud Professional Machine Learning Engineer: Architecting low-code ML solutions Practice Questions

5 free sample questions from the Architecting low-code ML solutions domain, with answers and explanations. The full Professional Machine Learning Engineer bank has 251 questions across 6 domains. Questions are scenario-based and written from the official Google Cloud exam guide.

1.

An e-commerce company wants to recommend the next product category for each user. Their data includes user purchase history (500K users, 10M transactions), product metadata (price, category, brand), and user profile features (age, location). They are deciding between three approaches: (1) BigQuery ML matrix factorization, (2) Vertex AI AutoML Tabular predicting the next category, (3) a pretrained recommendation API. Which two approaches are most appropriate for this scenario? (Select TWO)

  • A. Vertex AI Vision API—analyzes product images to find visually similar items for recommendation
  • B. BigQuery ML matrix factorization—handles sparse user-item interaction data without explicit negative samples✓ Correct
  • C. BigQuery ML K-means clustering—groups users by purchase patterns, then recommends top products per cluster
  • D. Custom TensorFlow neural collaborative filtering—the only approach that combines implicit feedback with content features
  • E. Vertex AI Recommendations API (pretrained)—optimized for product recommendations with built-in A/B testing
  • F. Vertex AI AutoML Tabular—can use rich user and product features to predict the next category label✓ Correct
Explanation

Options 1 and 2 are correct. BigQuery ML matrix factorization (option 1) is ideal for collaborative filtering on implicit feedback (purchase history) at scale. Vertex AI AutoML Tabular (option 2) excels when you have rich tabular features (user profile, product metadata) and a discrete target (next category), making it suitable for this multi-feature prediction task. Option 3 (Recommendations API) is a pretrained solution, but it is less flexible for this specific use case where custom features dominate the prediction signal. Option 4 (K-means) is unsupervised clustering and does not directly predict the next category. Option 5 (Vision API) is for image classification, not recommendations. Option 6 (custom TensorFlow) is high-code and not the 'most appropriate' given low-code options exist.

2.

A healthcare provider trained a Vertex AI AutoML Vision model to detect lung nodules in CT scans. The model achieves 92% accuracy on a balanced test set, but in production on a real hospital's data, it detects many more false positives and misses subtle nodules. The team is investigating root causes. Which two factors are most likely responsible for this performance degradation? (Select TWO)

  • A. The test set was balanced (equal nodule/non-nodule examples), but production sees an imbalanced distribution skewed toward non-nodules✓ Correct
  • B. Distribution shift—the hospital's CT scans differ in resolution, bit depth, manufacturer, or imaging protocol from the training data✓ Correct
  • C. AutoML Vision was not retrained after deployment; production models require automated retraining every 30 days
  • D. The training dataset was too small; AutoML Vision requires at least 100,000 images for production-grade performance
  • E. The model was trained with default hyperparameters; the 92% accuracy indicates AutoML did not fully optimize for production sensitivity/specificity thresholds
Explanation

Options 2 and 3 are correct. Option 2 identifies distribution shift, a leading cause of model degradation in medical imaging—CT scanners vary by manufacturer, protocol, and hospital, and training on one site's images does not guarantee generalization to another. Option 3 addresses class imbalance in production; if training was 50-50 nodule/non-nodule but production is 95% non-nodules, the decision threshold may be miscalibrated, causing false positives on rare cases. Option 1 is incorrect; 92% accuracy suggests sufficient training data (AutoML Vision works with fewer than 100K images). Option 4 is incorrect; scheduled retraining every 30 days is not standard practice and would introduce latency. Option 5 is partially true but misleading; 92% accuracy does not prove hyperparameter optimization failed—adjusting the classification threshold is a post-training step, not a hyperparameter tuning issue.

3.

A product team wants to classify customer support tickets into 8 predefined categories to route them automatically. They have 12,000 labeled tickets stored in BigQuery with text in a single column. A junior ML engineer suggests using AutoML Text because 'it always outperforms simple solutions.' What is the most important consideration before choosing AutoML Text?

  • A. Confirm that BigQuery ML cannot perform text classification (it can only do linear regression and clustering)
  • B. Ensure the labeled dataset is balanced across all 8 categories, with at least 100 examples per category✓ Correct
  • C. Check that the text column contains at least 500 characters per ticket to ensure sufficient feature signal
  • D. Verify that AutoML Text supports at least 8 output classes (it has a hard limit of 10)
Explanation

Option 1 is correct because class balance and minimum examples per class are critical for AutoML performance. Vertex AI AutoML Text typically needs at least 100 labeled examples per class; imbalanced data degrades both model quality and the ability to evaluate minority classes. Option 2 is incorrect; AutoML Text supports far more than 8 classes (limits are typically 100+ classes). Option 3 is incorrect; AutoML Text works with varying text lengths; 500 characters is not a hard requirement. Option 4 is incorrect because BigQuery ML does support text classification via embedding-based models and text feature engineering, though AutoML Text may be more user-friendly.

4.

A legal services firm processes contracts in 12 different languages. They need to extract key information (party names, effective dates, contract amounts) from all contracts regardless of language, then store structured data in BigQuery. Which combination of Vertex AI pretrained APIs best solves this with minimal custom code?

  • A. Translation API (translate to English) → Natural Language API (entity extraction and syntax analysis)✓ Correct
  • B. Natural Language API (multilingual entity recognition) → Translation API (if needed for stakeholder reports)
  • C. Speech-to-Text API → Document AI (for audio contracts) → Translation API (for multilingual support)
  • D. Translation API (translate to English) → Document AI (custom extractor trained per language)
Explanation

Option 2 is correct because it uses Translation API to normalize all contracts to a single language (English), then leverages Natural Language API's entity extraction and syntax analysis to identify structured information (names via PERSON entities, dates via DATE entities, amounts via analysis). This requires minimal custom logic. Option 1 is incorrect because Document AI custom extractors require substantial training and annotation effort per language—not minimal code. Option 3 is incorrect because Natural Language API does not reliably extract custom fields like 'contract amounts' without additional processing; translation to English first ensures consistency. Option 4 is incorrect because Speech-to-Text is for audio input, and the problem states contracts (implying documents).

5.

A financial services company trained a BigQuery ML LINEAR_REG model to predict loan approval amounts using 18 features. After deployment, stakeholders ask: 'Can we explain which features drive predictions for individual loan applications?' Which combination of approaches would enable this without retraining?

  • A. Query BigQuery ML's built-in ML.EXPLAIN_PREDICT function to get feature importance scores for each prediction✓ Correct
  • B. Use Vertex AI Explainable AI (feature attributions) on batch predictions from the deployed BigQuery ML model via Vertex AI Model Registry
  • C. Retrain the model as a Vertex AI custom training job with TensorFlow to access integrated gradient explanations
  • D. Export model weights using BQ_EXTRACT_MODEL and manually inspect coefficients in a Jupyter notebook
Explanation

Option 3 is correct because BigQuery ML provides the native ML.EXPLAIN_PREDICT function, which computes per-prediction feature attributions without retraining or exporting—this directly answers the stakeholder need. Option 1 is incorrect; while LINEAR_REG coefficients can be inspected, they provide global feature importance, not per-prediction explanations required by the question. Option 2 is incorrect because Vertex AI Explainable AI (Integrated Gradients, SHAP) is designed for models registered in Vertex AI Model Registry, and BigQuery ML models are not natively integrated with this (though workarounds exist, they are not the primary approach). Option 4 is incorrect because retraining was explicitly excluded in the question.

Test yourself across every Professional Machine Learning Engineer domain

The free Professional Machine Learning Engineer practice test mixes about 20 questions weighted like the exam. The full 251-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Architecting low-code ML solutions study guide (Professional Machine Learning Engineer) →

Other Professional Machine Learning Engineer domains

← All Google Cloud Professional Machine Learning Engineer study resources