Skip to content
Google Cloud Certified Professional Machine Learning Engineer (PMLE) Exam Prep

Lesson 10 of 10 · 11 min

x
10/10

Domain 6: Monitoring AI Solutions

This lesson covers 3 exam topics: Securing AI Solutions, Responsible AI and Explainability, Model Monitoring: Skew and Drift. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.

1. Securing AI Solutions

Video lesson: PMLE 36/38: Securing AI Solutions

Central question: How do you protect AI systems from leaks and malicious prompts?

Facts

  • Risks: data exfiltration, malicious prompting (prompt injection, jailbreaks), sharing sensitive data with LLMs, model theft.
  • Tools by layer: regex and deterministic filters for known patterns, model safety filters (harm categories and thresholds), Model Armor to screen prompts and responses for prompt injection and sensitive data, Sensitive Data Protection for PII, VPC Service Controls against exfiltration (exam guide 6.1; Model Armor overview).
  • Use least-privilege service accounts for training and serving, CMEK for artifacts, and private endpoints.

Exam traps

  • System prompt alone to stop injection. Add Model Armor.
  • Safety filters to catch credit card numbers. Use regex or Sensitive Data Protection.

2. Responsible AI and Explainability

Video lesson: PMLE 37/38: Responsible AI and Explainability

Central question: How do you monitor for bias and explain models?

Facts

  • Agent Platform model evaluation includes fairness metrics: data bias metrics (before training) and model bias metrics (on predictions) across slices (fairness evaluation).
  • Feature attributions (Explainable AI) show how much each feature contributed to a prediction; aggregate attributions across a dataset to understand overall behavior (feature attributions docs).
  • Methods: Sampled Shapley, Integrated Gradients, XRAI.

Exam traps

  • One attribution as proof of overall behavior. Aggregate across the dataset.
  • Checking bias only on the training data. Also check predictions per slice.

3. Model Monitoring: Skew and Drift

Video lesson: PMLE 38/38: Model Monitoring: Skew and Drift

Central question: How do you detect skew, drift and degrading gen AI quality in production?

Facts

IssueMeaning
Training-serving skewProduction feature distribution differs from training data (needs training data as baseline)
Data (inference) driftProduction feature distribution changes over time
Concept driftThe relationship between features and label changes
Feature attribution driftA feature's contribution to predictions changes
  • Model Monitoring tracks tabular model quality with on-demand or scheduled jobs and alerts when metrics pass thresholds (Model Monitoring).
  • v1 (GA) is configured on endpoints and detects skew (if training data is available) and drift; v2 (preview) ties monitoring to model versions with objectives for input drift, output drift and feature attribution (SHAP); drift metrics include L-infinity (categorical) and Jensen-Shannon divergence.
  • Gen AI monitoring: evaluate continuously with the Gen AI evaluation service, log requests and responses, and track safety and quality metrics.

Exam traps

  • Skew detection without training data. Use drift detection.
  • Waiting for labels to notice problems. Input drift alerts come first.

References

  1. PMLE exam guide — checked Oct 26, 2026
  2. Model Armor overview — checked Oct 26, 2026
  3. Safety and content filters — checked Oct 26, 2026
  4. Fairness evaluation — checked Oct 26, 2026
  5. Feature attributions — checked Oct 26, 2026
  6. Model Monitoring — checked Oct 26, 2026

Check your understanding

  • Screen prompts for injection?Show answer

    Answer

    Model Armor.
  • Bias before training?Show answer

    Answer

    Data bias metrics.
  • Production differs from training data?Show answer

    Answer

    Training-serving skew.
  • Block exfiltration of training data?Show answer

    Answer

    VPC Service Controls.
  • Why did this prediction happen?Show answer

    Answer

    Feature attributions.
Previous

Progress is saved in this browser.

Finish Course