Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Google Cloud · Professional Machine Learning Engineer

Workbench and Colab Enterprise

Professional Machine Learning Engineer · Lesson 6 of 19 · 41:59

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.

In this lesson

Prepare for the Google Cloud Professional Machine Learning Engineer exam, on the official exam guide. In this lesson: Agent Platform Workbench instances (custom containers, GitHub, Spark, scheduled executions, idle shutdown), Colab Enterprise (runtime templates, sharing through IAM), dedicated service accounts, and prototyping with Gemini and Model Garden models. 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.

Notebooks out of control

Cymbal Insurance's data scientists work in notebooks on their laptops. Claims extracts sit on personal disks, and a cloud GPU machine stayed on all weekend for nothing. The team needs managed notebooks that are secure, shared, and cheap to leave behind.

Workbench or Colab Enterprise

Google Cloud offers two managed notebook services. Agent Platform Workbench gives each instance a JupyterLab virtual machine that you configure: machine type, GPUs, network, custom containers, sync with a GitHub repository, and even notebooks that run on a Managed Service for Apache Spark cluster. Colab Enterprise gives managed notebooks with no infrastructure to handle: you open a notebook, connect to a runtime, and share it like a document. Choose Workbench for full control of the environment, and Colab Enterprise for quick, shared notebooks, including the ones inside BigQuery Studio.

Frameworks and runtimes

Workbench instances come with TensorFlow and PyTorch preinstalled, and you can add your own conda environment, for example for JAX, or start from a custom container. In Colab Enterprise, a runtime template fixes the machine type, the accelerators, the network, and the idle time, and sharing a template gives every user the same setup. Both services can run a notebook once or on a schedule, and the Workbench executor keeps running scheduled notebooks even while the instance is stopped. That turns an exploration notebook into a repeatable job, with parameters such as a learning rate.

Security and collaboration

Control access with Identity and Access Management. Colab Enterprise notebooks are shared with a user, a Google group, or a whole domain, and each role should grant only what the person needs. Code on a Workbench instance runs with the instance's service account, so give it a dedicated service account with only the roles it needs, never a broad default. Idle shutdown is on by default in both services, so forgotten machines stop costing money. And for sensitive data, choose a private network without public IP addresses, customer managed encryption keys when compliance demands them, and Git for every change to the code.

Prototyping with Model Garden

Notebooks are also the fastest way to prototype with foundation models. From a notebook, you can call Gemini through the Agent Platform SDK, and deploy an open model from Model Garden, such as Gemma, with a few lines of code. Many open models in Model Garden come with ready notebooks for deployment and fine tuning. Test a few candidates on a small sample of your own data, compare the answers and the cost, and only then build a pipeline around the winner.

Recap

Let's recap. Workbench gives a configurable JupyterLab instance, with custom containers, GitHub sync, and Spark. Colab Enterprise gives managed, shareable notebooks, with runtimes built from runtime templates. Both run notebooks once or on a schedule, with TensorFlow, PyTorch, or your own environment for JAX. Share through IAM, give instances a dedicated service account, and keep idle shutdown on. And prototype in notebooks with Gemini and Model Garden models, before building any pipeline.

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.

  1. The pricing team needs JupyterLab built from their own container image, with an in-house library, and must run some notebooks on an existing Spark cluster. Which environment fits?

    • A Colab Enterprise default runtime
    • Jupyter on each analyst's laptop
    • An Agent Platform Workbench instance
    • An Agent Platform inference endpoint
    Show the answer

    An Agent Platform Workbench instance

    A Workbench instance can start from a custom container, and it can run notebooks on a Managed Service for Apache Spark cluster. “A Colab Enterprise default runtime” only gives a quick runtime, with none of that control. “Jupyter on each analyst's laptop” would put sensitive data back on laptops. And “An Agent Platform inference endpoint” is a serving service, not a place to develop.

  2. GPU notebook instances keep running for days after the data scientists stop working. The team wants to cut that waste without losing their work. What should they do?

    • Delete every instance on Friday evening
    • Set idle shutdown with a short idle time
    • Create a budget alert on the project
    • Switch every instance to CPU only
    Show the answer

    Set idle shutdown with a short idle time

    Idle shutdown stops an instance after a set idle time, and its disk and notebooks stay in place. “Delete every instance on Friday evening” would destroy the work on those instances each week. “Create a budget alert on the project” would only send a warning, while the machines keep running. And “Switch every instance to CPU only” would make GPU training impossible.

  3. Before choosing a model for claim summaries, the team wants to compare Gemini with an open model on 100 sample claims, this week. What is the quickest approach?

    • Build the full production pipeline first
    • Train a new language model from scratch
    • Buy Provisioned Throughput for both models
    • A notebook calling Gemini and a Model Garden model
    Show the answer

    A notebook calling Gemini and a Model Garden model

    A notebook can call Gemini, and deploy an open model from Model Garden, in a few lines, on the same sample claims. “Build the full production pipeline first” would build the full pipeline before knowing which model wins. “Train a new language model from scratch” would take months, and needs far more data. And “Buy Provisioned Throughput for both models” would commit to capacity before any test.