Google Cloud Professional Machine Learning Engineer · 13% practice allocation

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

5 free sample questions from the Architecting low-code AI solutions domain, with answers and explanations. The full Professional Machine Learning Engineer bank has 301 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) Gemini Enterprise Agent Platform AutoML (formerly 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. Agent Platform 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. Agent Platform Recommendations API (pretrained)—optimized for product recommendations with built-in A/B testing
  • F. Agent Platform AutoML Tabular—can use rich user and product features to predict the next category label✓ Correct
Explanation

BigQuery ML matrix factorization and Agent Platform AutoML Tabular are correct. BigQuery ML matrix factorization is ideal for collaborative filtering on implicit feedback (purchase history) at scale. Agent Platform AutoML Tabular 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. The Recommendations API is a pretrained solution, but it is less flexible for this specific use case where custom features dominate the prediction signal. K-means is unsupervised clustering and does not directly predict the next category. The Vision API is for image classification, not recommendations. Custom TensorFlow is high-code and not the 'most appropriate' given low-code options exist.

2.

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 Gemini Enterprise Agent Platform (formerly 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

Translating to English and then running Natural Language API entity analysis is the best listed choice. Entity analysis supports 11 languages, fewer than the 12 in the scenario, so normalising to English first gives consistent coverage. The pretrained API returns organization, person, date and price entities, although some light logic is still needed to decide which date is the effective date and which price is the contract amount. Running multilingual entity recognition first fails for any unsupported language and applies translation too late. Training a Document AI custom extractor per language adds labelling and maintenance effort, is not a pretrained API, and training per language makes little sense once the text has been translated to English. The Speech-to-Text pipeline addresses audio, but the scenario describes written contracts.

3.

A supply chain team has trained a BigQuery ML ARIMA_PLUS model to forecast weekly demand for 500 SKUs. They now want to generate demand forecasts for all SKUs for the next 8 weeks and store the results in a downstream BigQuery table for use by the inventory system. Which SQL approach should they use?

  • A. Call ML.EVALUATE on the trained model with a STRUCT specifying horizon=8, then INSERT the resulting metrics rows into the target table
  • B. Use ML.FORECAST with the horizon parameter set to 8 inside a CREATE TABLE AS SELECT statement targeting the destination table✓ Correct
  • C. Export the model to Cloud Storage, run a Dataflow batch job to call the model endpoint for each SKU, and write predictions back to BigQuery
  • D. Call ML.PREDICT with a future-dated input table manually constructed with one row per SKU per week for the next 8 periods
Explanation

ML.FORECAST is the correct BigQuery ML function for time-series forecasting models like ARIMA_PLUS; it accepts a horizon parameter specifying how many future periods to predict and can be wrapped in a CREATE TABLE AS SELECT to persist results directly in BigQuery with no code outside SQL. ML.EVALUATE returns model quality metrics (MAE, RMSE, etc.), not forecast values, so it cannot populate an inventory forecast table. Exporting to Cloud Storage and running Dataflow introduces unnecessary complexity and latency when BigQuery ML natively supports in-database forecasting via ML.FORECAST. ML.PREDICT is used for supervised models (classifiers, regressors) that require a matching feature row as input; ARIMA_PLUS uses ML.FORECAST because the future feature values are inherently unknown and the model extrapolates from learned temporal patterns.

4.

A health-tech startup is building a clinical triage assistant using a Gemini model deployed on the Gemini Enterprise Agent Platform (formerly Vertex AI). The assistant will respond to patient symptom queries. During evaluation, the team observes that responses are medically accurate but excessively long, increasing user wait times and API costs. They want to reduce verbosity without retraining the model. Which TWO actions should they take?

  • A. Reduce the max_output_tokens parameter in the API request configuration to cap the number of tokens generated per response✓ Correct
  • B. Enable streaming responses in the API so that partial outputs are shown earlier, reducing perceived latency without changing actual output length
  • C. Fine-tune the Gemini model using supervised fine-tuning with curated short-form clinical response examples to adjust its generation style
  • D. Add an explicit instruction in the system prompt specifying a maximum response length and a concise, structured output format such as bullet points✓ Correct
  • E. Switch to a smaller Gemini model variant (e.g., Gemini Flash) that is optimized for lower latency and shorter outputs
Explanation

Adding an explicit system prompt instruction for concise output directly conditions the model's generation behavior, enforcing brevity and structured formatting without any retraining or infrastructure changes. Reducing max_output_tokens in the API request places a hard cap on generated length, cutting costs and latency immediately. Fine-tuning would be effective long-term but contradicts the requirement to avoid retraining; it also introduces cost and delay. Switching to a smaller Gemini model variant (e.g., Gemini Flash) may reduce latency but does not guarantee shorter responses—the verbosity stems from generation behavior, not model size—and changing model variants carries accuracy risk for a clinical application. Enabling streaming improves perceived latency for the user but does not reduce actual output length, token count, or API cost, so it does not address the verbosity or cost problem.

5.

A healthcare provider trained a Gemini Enterprise Agent Platform AutoML (formerly 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

The distribution shift and class imbalance factors are correct. The first 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. The second 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. The too-small dataset explanation is incorrect; 92% accuracy suggests sufficient training data (AutoML Vision works with fewer than 100K images). The missing 30-day retraining explanation is incorrect; scheduled retraining every 30 days is not standard practice and would introduce latency. The default-hyperparameters explanation 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.

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 301-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

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

Other Professional Machine Learning Engineer domains

← All Google Cloud Professional Machine Learning Engineer study resources