Google Cloud Professional Machine Learning Engineer · 13% practice allocation

Google Cloud Professional Machine Learning Engineer: Monitoring AI solutions Practice Questions

5 free sample questions from the Monitoring 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 ML engineer notices that a regression model deployed on the Gemini Enterprise Agent Platform (formerly Vertex AI) has gradually increasing prediction error over several months without any change to the model artifact or serving infrastructure. Input feature distributions look stable. Which phenomenon most likely explains this degradation, and what is the correct term for it?

  • A. Feature attribution drift, caused by the model assigning different importance weights to features over time as the serving infrastructure scales horizontally.
  • B. Data drift, caused by a statistically significant shift in the distribution of one or more input features between training time and the current serving period.
  • C. Training-serving skew, caused by a discrepancy between the preprocessing logic applied during training and the logic applied at serving time.
  • D. Concept drift, caused by a change in the underlying relationship between input features and the target variable even though input distributions remain stable.✓ Correct
Explanation

Concept drift describes the scenario where the statistical relationship between inputs and the target changes over time — the world has changed, making the model's learned mapping stale — even when input feature distributions appear unchanged. This matches the scenario precisely. Training-serving skew arises from inconsistent preprocessing between training and serving pipelines, which would typically cause an immediate or constant error gap rather than a gradual increase months after deployment. Data drift refers to shifts in input feature distributions, which the engineer has already ruled out by observation. Feature attribution drift is a monitoring signal that measures changes in SHAP-based importance scores; it is a symptom that can accompany concept drift but is not itself the root cause, and attributions do not change simply because serving infrastructure scales.

2.

A retail company serves a real-time product recommendation model on the Gemini Enterprise Agent Platform (formerly Vertex AI). The model processes user session data that includes free-text search queries. A security audit flags a risk that sensitive personal data present in search queries (e.g., medical product searches) could be inadvertently stored in prediction logs and later exposed. The team must prevent sensitive data from persisting in logs while still retaining enough request data for drift monitoring. Which TWO actions together address this requirement?

  • A. Move the endpoint to a private VPC with no external IP to prevent log data from leaving the network boundary.
  • B. Enable Cloud DLP inspection on the prediction log sink in BigQuery to automatically redact or tokenize PII patterns before the data is written to the monitoring table.
  • C. Increase the prediction log sampling rate to 100% so that the full dataset is available for drift analysis, reducing the need for sensitive fields.
  • D. Disable prediction logging entirely on the endpoint and rely on synthetic data to simulate drift conditions for the monitoring job.
  • E. Apply a regex-based input filter in a pre-processing Cloud Run sidecar to strip recognized PII patterns from the query before the request reaches the Agent Platform endpoint.✓ Correct
  • F. Configure Agent Platform Model Monitoring to monitor only numeric engineered features derived from the query (e.g., query length, category embedding) rather than the raw query text, so raw text is never sampled into the monitoring dataset.✓ Correct
Explanation

Configuring drift monitoring on numeric derived features rather than raw text ensures that the monitoring dataset, which is a sample of logged data, never contains the sensitive free-text queries while still providing signals for distributional drift — directly addressing the data minimization requirement. Applying a regex PII filter in a pre-processing step strips sensitive content before it ever reaches the endpoint, preventing it from appearing in prediction logs at the source. Enabling Cloud DLP on the BigQuery sink would redact PII after it has already been written, meaning sensitive data transiently persists before redaction and may be visible during the write window; it also adds latency and cost without preventing the initial exposure. Raising the sampling rate to 100% increases the volume of sensitive data stored, worsening the exposure risk rather than mitigating it. Disabling prediction logging entirely would eliminate both the privacy risk and the ability to perform drift monitoring, failing the monitoring requirement. Moving to a private VPC controls network access but does not prevent sensitive query text from being written into internal logs within the same project.

3.

You have deployed multiple versions of a recommendation model on Gemini Enterprise Agent Platform (formerly Vertex AI) using traffic splitting (Version A: 60%, Version B: 40%). Version A is the stable production model, Version B is a new variant. After one week, you observe that Version B generates 15% higher serving costs (due to higher latency and more inference steps) but achieves 2% higher click-through rate on test users. You want to decide whether to promote Version B or rollback. Which additional metrics should you examine to make an informed decision? (Select THREE)

  • A. Precision, recall, and F1 score on the validation set for both model versions.
  • B. Revenue impact: calculate the expected revenue gain from 2% CTR improvement versus the cost increase, accounting for user volume and monetization rates.✓ Correct
  • C. Model inference latency and cost per prediction for both versions to assess the trade-off between quality and efficiency.✓ Correct
  • D. User engagement over time (retention, session duration, repeat visit rate) to ensure the 2% CTR improvement doesn't cannibalize other metrics or indicate short-term gaming.✓ Correct
  • E. Explainable AI feature attributions for both versions to understand what each model learns.
  • F. Retraining time for each model version to ensure future iterations are feasible.
Explanation

Correct answers are B, C, and D. B (revenue impact) is critical because a 2% CTR improvement is only valuable if the revenue gain outweighs the 15% cost increase. C (latency and cost breakdown) provides the concrete efficiency metrics needed to evaluate the trade-off. D (retention and long-term engagement) ensures the improvement is genuine and not short-term gaming (e.g., lower-quality recommendations that trigger clicks but don't lead to long-term satisfaction). A is incorrect because validation set metrics don't reflect production behavior or real user engagement. F is incorrect because retraining time, while important operationally, is not relevant to deciding whether to promote this version. E is incorrect because feature attributions don't directly inform the quality vs. efficiency trade-off decision.

4.

Your team runs a Gemini Enterprise Agent Platform custom training (formerly Vertex AI custom training) job that trains a large recommendation model on 500GB of data using a single A100 GPU. The job runs for approximately 12 hours and costs $150 per training run. Recently, you've noticed that training loss converges after about 6 hours, and additional training time yields minimal performance improvement. You want to reduce both training time and cost while maintaining model quality. What is the recommended approach?

  • A. Switch to a smaller GPU (V100) to reduce per-hour costs, and accept the longer training time
  • B. Use Agent Platform Hyperparameter Tuning to automatically identify optimal learning rate and batch size, which will accelerate convergence
  • C. Reduce the batch size to force more gradient updates, allowing the model to converge faster
  • D. Implement early stopping with a validation set and adjust the patience parameter to stop training when validation loss plateaus✓ Correct
Explanation

The correct answer is option D. Early stopping is the standard approach to avoid wasting compute resources when a model has converged. By monitoring validation loss and stopping when improvement plateaus, you reduce both training time and cost without sacrificing quality. Option C is incorrect because reducing batch size increases training time (more updates needed) and doesn't address the fundamental issue that the model has already converged. Option A is incorrect because it reduces hardware cost but increases wall-clock time, which doesn't solve the actual problem of wasted compute after convergence. Option B is incorrect because while hyperparameter tuning could improve convergence, it's an orthogonal concern; the scenario already shows convergence is happening—we just need to stop early.

5.

Your organization maintains a Gemini Enterprise Agent Platform endpoint (formerly Vertex AI endpoint) serving a tabular regression model that predicts customer lifetime value. You've configured prediction logging to a BigQuery table and set up alerting based on prediction statistics. You notice that the 95th percentile of predictions has jumped from $8,500 to $45,000 overnight. The model architecture and weights have not changed. Which of the following are the most likely explanations? (Select TWO)

  • A. A batch of high-value enterprise customers were onboarded to production, shifting the input feature distribution toward higher-income segments✓ Correct
  • B. The feature store used for serving predictions is returning NULL values for missing categorical features, which the model interprets as the most recent observed value, causing systematic overestimation
  • C. The model's prediction logging configuration is sampling only 10% of requests, and by chance, this sample contains disproportionately high-value customers
  • D. A recent data pipeline update changed how currency conversion is applied to the input features, causing all monetary feature values to be multiplied by a scaling factor✓ Correct
  • E. The endpoint's online prediction latency has increased from 50ms to 500ms, forcing the model to make inferences on stale feature data
  • F. The training dataset used for model development contained outliers in the high-value range, and production traffic now resembles those outlier patterns more closely
Explanation

The correct answers are options A and D. Both represent legitimate data or feature distribution changes that would cause prediction values to shift without model weight changes. Option A reflects a natural shift in the input data distribution (covariate shift), which is expected to produce higher predictions if the model encounters customers with genuinely higher lifetime value indicators. Option D indicates a systematic feature transformation issue (feature drift) where the same underlying business data is being represented differently in serving than in training. Option B is incorrect—NULL handling wouldn't cause systematic overestimation; it would more likely cause systematic bias in a single direction and would show up as errors. Option C is incorrect because sampling bias wouldn't cause the 95th percentile to uniformly shift; it might increase variance but the true distribution shift would persist. Option E is incorrect because prediction latency doesn't directly affect prediction values, only the staleness of input features (though this could cause some drift, the sudden overnight jump suggests a more fundamental data change). Option F is plausible but is less likely than A and D because training outliers are typically identified and handled; production data suddenly 'resembling outliers more' would be a consequence of A.

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

Monitoring AI solutions study guide (Professional Machine Learning Engineer) →

Other Professional Machine Learning Engineer domains

← All Google Cloud Professional Machine Learning Engineer study resources