Choosing the model and the product
Professional Machine Learning Engineer · Lesson 8 of 19 · 1:01:44
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Google Cloud Professional Machine Learning Engineer exam, on the official exam guide. In this lesson: choosing the model type (time series models, boosted trees, deep neural networks, large language models), the product (BigQuery ML, AutoML, custom training, Pipelines), the deployment (online, batch, edge), and interpretability (Sampled Shapley, integrated gradients, XRAI, example-based explanations, ML.EXPLAIN_PREDICT and ML.GLOBAL_EXPLAIN). Includes three original practice questions, with Cymbal Insurance, a fictional car and home insurer, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Four requests, four answers
Cymbal Insurance's machine learning team gets four requests in one week. A storm claims forecast per region, a fraud score on every new claim, damage severity from photos, and plain language letters to customers. Each one calls for a different model type, product, and deployment.
Choosing the model type
Start with the shape of the problem. A time series with trend and seasons, like claims per day, suits ARIMA, with ARIMA_PLUS in BigQuery ML, or the TimesFM foundation model. Tables of claims and policies suit boosted trees, or linear models when simple and easy to explain. Images, audio, and complex patterns suit deep neural networks. And writing or understanding language suits a large language model like Gemini, often with prompting alone, before any training.
Choosing the product
Then choose the product by skills, control, and time. BigQuery ML trains models with SQL where the data already lives, and fast. Agent Platform AutoML needs no code, but it targets predefined objectives, within a training budget. Custom training, as serverless training or reserved training clusters, runs your own code and containers, with any algorithm and full control. And Agent Platform Pipelines chains the steps, from data to model, so the whole process repeats the same way.
Choosing the deployment
Next, the deployment. Online inference runs behind an endpoint, and answers each request in real time, like a fraud score when a claim is submitted. Batch inference scores large sets on a schedule, needs no endpoint, and costs less, like renewal scores once a month. And an edge deployment embeds the model on a device, when the network is unreliable or each answer must be instant, like an adjuster's app in a disaster zone.
Interpretability
Pricing and claim decisions often must be explained. One way is an inherently interpretable model, like a linear model or a small tree, whose weights show each factor's effect. Another way is to explain a complex model with feature attributions: Sampled Shapley for AutoML tabular models, integrated gradients for neural networks, and XRAI for the regions of an image. Example based explanations add the most similar training examples, and in BigQuery ML, ML.EXPLAIN_PREDICT explains each prediction, while ML.GLOBAL_EXPLAIN explains the whole model. Sometimes a slightly less accurate model that people can explain is the right choice.
Recap
Let's recap. ARIMA or TimesFM for time series, boosted trees or linear models for tables, deep neural networks for images and audio, and large language models for language. BigQuery ML for SQL teams, AutoML for no code, custom training for full control, and Pipelines to repeat the process. Online inference for real time answers, batch inference for large scheduled jobs, and edge deployment for devices. Interpretable models, or feature attributions like Sampled Shapley, integrated gradients, and XRAI. And in BigQuery ML, ML.EXPLAIN_PREDICT and ML.GLOBAL_EXPLAIN.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Analysts who know SQL, but not Python, need a renewal classifier within a week, and all the policy data already sits in BigQuery. Which product fits best?
- Custom training with a custom container
- A reserved training cluster
- BigQuery ML
- Agent Platform Pipelines on its own
Show the answer
BigQuery ML
BigQuery ML trains the classifier with SQL, right where the data sits. “Custom training with a custom container” would need Python code and containers that the analysts cannot write. “A reserved training cluster” is built for very large training jobs, far beyond this need. And “Agent Platform Pipelines on its own” would chain steps, but still needs a model, and code, behind it.
Risk scores for 4 million policies are needed once a month, to prepare the renewal letters. Nobody waits for any single score. Which deployment fits?
- Batch inference
- Online inference on a dedicated endpoint
- An edge model on each adjuster's phone
- Manual scoring by underwriters
Show the answer
Batch inference
Batch inference scores all four million policies in one job, with no endpoint to keep running. “Online inference on a dedicated endpoint” would keep an endpoint running all month, for one job a month. “An edge model on each adjuster's phone” would put the model on devices, which nobody needs here. And “Manual scoring by underwriters” would make people do the work that the model already does.
A regulator requires that each premium increase be explained by the factors behind it, customer by customer. The model is a boosted tree in BigQuery ML. What should the team use?
- ML.GLOBAL_EXPLAIN on the model
- ML.EVALUATE on the test data
- A deep neural network instead
- ML.EXPLAIN_PREDICT for each prediction
Show the answer
ML.EXPLAIN_PREDICT for each prediction
ML.EXPLAIN_PREDICT returns the top feature attributions for each prediction, so each customer's increase has its own explanation. “ML.GLOBAL_EXPLAIN on the model” would explain the model as a whole, not each customer. “ML.EVALUATE on the test data” only measures the model's quality. And “A deep neural network instead” would make the model harder to explain, not easier.