Domain 3: Scaling Prototypes into ML Models (Part 1 of 2)
This lesson covers 5 exam topics: Choosing the Model Type and Product, Deployment Strategy and Interpretability, Organizing and Ingesting Training Data, Custom Training on Agent Platform, Troubleshooting Training Failures. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Choosing the Model Type and Product
Central question: Which model type and which Google Cloud product fit the task?
Facts
| Need | Model type | Product |
|---|---|---|
| Time series with trend and seasonality, in SQL | ARIMA_PLUS | BigQuery ML |
| Tabular prediction, minimal ML skill | Classification / regression | AutoML (tabular) |
| Complex patterns, unstructured inputs, custom loss | DNN | Custom training |
| Language and multimodal generation | LLM | Gemini / Model Garden, tuning |
| Repeatable multi-step workflow | Any | Agent Platform Pipelines |
- Training choices range from AutoML (minimal effort) and BigQuery ML (SQL) to custom training (full control) and Ray (distributed Python) (choose a training method).
- Trade-offs: simpler models are cheaper, faster and easier to explain; complex models may be more accurate but cost more to train and serve.
Exam traps
- DNN for 5,000 tabular rows. A simpler model or AutoML usually fits.
- Custom training when BigQuery ML meets the need in SQL.
2. Deployment Strategy and Interpretability
Central question: How do deployment and interpretability requirements shape the model?
Facts
- Deployment strategy follows latency and volume: online endpoints for real-time requests, batch inference for scheduled scoring, edge for offline or on-device use.
- Interpretability: if regulators or users need explanations, prefer interpretable models (linear, tree-based) or add feature attributions.
- Agent Platform Explainable AI methods: Sampled Shapley (tabular, non-differentiable models), Integrated Gradients (differentiable models), XRAI (image regions; best for natural images, use Integrated Gradients for lab or x-ray images) (ExplanationSpec reference).
Exam traps
- Deep model with no explanations for credit decisions. Choose interpretable models or attributions.
- XRAI for x-ray images. Use Integrated Gradients for non-natural images.
3. Organizing and Ingesting Training Data
Central question: How should training data be organized and ingested?
Facts (general practice, Google Cloud products verified)
- Structured data in BigQuery; unstructured (images, audio, video, text files) in Cloud Storage; training jobs read from both.
- Use efficient formats for large training sets (for example TFRecord, Parquet, sharded files) and keep data in the same region as training.
- Custom training can mount Cloud Storage as a file system (Cloud Storage FUSE) or an NFS share for large datasets.
Exam traps
- Cross-region data reads during training. Co-locate data and training.
- One giant CSV. Shard files for parallel reads.
4. Custom Training on Agent Platform
Central question: How do you run custom training on Google Cloud?
Facts
- Custom training gives complete control: any algorithm, loss or metric, from single-node to multi-node distributed jobs (choose a training method).
- Package code with a prebuilt training container (TensorFlow, PyTorch, scikit-learn, XGBoost) or a custom container with your own dependencies (containers overview).
- Serverless training provisions and releases resources per job; training clusters reserve dedicated capacity (for example A100 or H100 GPUs) for large, long-running jobs.
- Other options: Kubeflow on GKE (self-managed), Ray on Agent Platform, and Tabular Workflows (managed AutoML pipelines with more control).
Exam traps
- Custom container when a prebuilt container already has the framework. More to maintain.
- Serverless training for a months-long job that needs guaranteed GPUs. Use training clusters or reservations.
5. Troubleshooting Training Failures
Central question: How do you troubleshoot training failures?
Facts (general practice, Google Cloud tools verified)
| Symptom | Likely cause and fix |
|---|---|
| Out of memory (OOM) | Reduce batch size, use larger memory or more accelerators, gradient accumulation |
| Loss is NaN or explodes | Lower learning rate, gradient clipping, check input scaling and bad values |
| Training loss low, validation loss high | Overfitting: regularization, dropout, more data, early stopping |
| Both losses high | Underfitting: bigger model, better features, longer training |
| Job fails to start | Quota, permissions (service account), container or region issues |
| Slow training | Input pipeline bottleneck; profile with TensorBoard Profiler |
- Check job logs in Cloud Logging, use TensorBoard and the TensorBoard Profiler for performance, and an interactive shell to debug a running container.
Exam traps
- Adding GPUs when the input pipeline is the bottleneck. Profile first.
- More epochs to fix overfitting. That makes it worse.
References
- PMLE exam guide — checked Oct 26, 2026
- Choose a training method — checked Oct 26, 2026
- ExplanationSpec reference — checked Oct 26, 2026
- Feature attributions for classification and regression — checked Oct 26, 2026
- Data preparation overview — checked Oct 26, 2026
- Containers overview — checked Oct 26, 2026
- Tabular Workflows — checked Oct 26, 2026
- TensorBoard Profiler — checked Oct 26, 2026
Check your understanding
Forecast inside the warehouse?Show answerHide answer
Answer
ARIMA_PLUS in BigQuery ML.Explain a boosted-tree tabular model?Show answerHide answer
Answer
Sampled Shapley.Where do training images live?Show answerHide answer
Answer
Cloud Storage.PyTorch with a niche C++ library?Show answerHide answer
Answer
Custom container.Validation loss rising while training loss falls?Show answerHide answer
Answer
Overfitting.