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
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
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
Central question: How do you detect skew, drift and degrading gen AI quality in production?
Facts
| Issue | Meaning |
|---|---|
| Training-serving skew | Production feature distribution differs from training data (needs training data as baseline) |
| Data (inference) drift | Production feature distribution changes over time |
| Concept drift | The relationship between features and label changes |
| Feature attribution drift | A 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
- PMLE exam guide — checked Oct 26, 2026
- Model Armor overview — checked Oct 26, 2026
- Safety and content filters — checked Oct 26, 2026
- Fairness evaluation — checked Oct 26, 2026
- Feature attributions — checked Oct 26, 2026
- Model Monitoring — checked Oct 26, 2026
Check your understanding
Screen prompts for injection?Show answerHide answer
Answer
Model Armor.Bias before training?Show answerHide answer
Answer
Data bias metrics.Production differs from training data?Show answerHide answer
Answer
Training-serving skew.Block exfiltration of training data?Show answerHide answer
Answer
VPC Service Controls.Why did this prediction happen?Show answerHide answer
Answer
Feature attributions.