Choosing the cheapest Workbench notebook for BigQuery EDA

PMLE By islever Editorial Last updated

Short answer

B Use a managed Vertex AI Workbench notebook with built-in BigQuery and Cloud Storage browsing from JupyterLab to cut cost and development effort.

Question

You are developing a recommendation engine for an online clothing store. The historical customer transaction data is stored in BigQuery and Cloud Storage. You need to perform exploratory data analysis (EDA), preprocessing and model training. You plan to rerun these EDA, preprocessing, and training steps as you experiment with different types of algorithms. You want to minimize the cost and development effort of running these steps as you experiment. How should you configure the environment?
  1. Create a Vertex AI Workbench user-managed notebook using the default VM instance, and use the %%bigquerv magic commands in Jupyter to query the tables.
  2. Create a Vertex AI Workbench managed notebook to browse and query the tables directly from the JupyterLab interface. Correct Answer
  3. Create a Vertex AI Workbench user-managed notebook on a Dataproc Hub, and use the %%bigquery magic commands in Jupyter to query the tables.
  4. Create a Vertex AI Workbench managed notebook on a Dataproc cluster, and use the spark-bigquery-connector to access the tables.

Key Takeaways

The test is whether you pair the two constraints — minimize cost AND development effort — with the managed notebook's built-in BigQuery/Cloud Storage integration, while recognizing that Dataproc-backed options add unnecessary cluster cost and setup.

This PMLE question tests which Vertex AI Workbench notebook type minimizes cost and development effort for repeated EDA, preprocessing and training on BigQuery data. The answer is B: a managed notebook with native BigQuery and Cloud Storage access inside JupyterLab.

Common mistake: Choosing A because `%%bigquery` magic looks simple, ignoring that a user-managed notebook shifts VM management and idle-VM cost onto you — the exact effort and spend the question asks to minimize.

Expert Analysis

The two qualifiers that decide this question

The stem asks you to "minimize the cost and development effort" while rerunning EDA, preprocessing and training steps repeatedly as you experiment with different algorithms. Nothing in the stem requires Spark, a cluster, or custom VM administration — the data simply lives in BigQuery and Cloud Storage, and the workflow is notebook-driven exploration and training. Those two qualifiers, cost and development effort, are what eliminate options one by one.

Option C and Option D are eliminated by cost and complexity

Both C and D attach the notebook to Dataproc — C as a Dataproc Hub, D as a notebook on a Dataproc cluster with the spark-bigquery-connector. Standing up a Dataproc cluster bills you for cluster nodes whether or not you are querying, and it adds cluster lifecycle, connector and Spark-configuration work that the stem explicitly wants you to avoid. A Dataproc Hub is documented as the choice for users with specific, already-managed Spark requirements, not for cheap BigQuery EDA. The spark-bigquery-connector in D is also unnecessary overhead when the tables are in BigQuery and the target framework is not Spark. So both are out.

Option A is eliminated by "development effort"

A uses a user-managed notebook on a default VM instance. User-managed instances put VM patching, dependency and lifecycle management on you, and the %%bigquery magic is an extra piece of code you must write and maintain — while the option's typo %%bigquerv is a giveaway that it is not the clean path. A VM you forget to stop is also the classic way to blow the cost budget.

Option B satisfies both qualifiers

B — a managed notebook — ships BigQuery and Cloud Storage integration inside JupyterLab, so you browse and query the tables directly from the sidebar with no connection code, and Google manages the underlying VM. That is the lowest development effort and the lowest steady-state cost for repeated experimental reruns. Correct answer: B.

Official Reference

Exam Strategy

In Workbench questions, treat 'minimize cost' as a signal to reject anything provisioning a Dataproc cluster or an unmanaged VM you must patch and stop. Then treat 'minimize development effort' as a signal to prefer built-in integrations over writing magic commands or connectors yourself. Read the option text literally — a stray typo in a magic command is often the tell that the option is not the intended path.

Frequently Asked Questions

Why not use user-managed notebooks with %%bigquery magic for BigQuery EDA?

User-managed notebooks leave VM lifecycle, patching and idle cost to you, and the magic command is extra code to write. Managed notebooks embed BigQuery browsing in JupyterLab, meeting both cost and effort goals.

When is a Dataproc Hub notebook appropriate instead?

Choose a Dataproc Hub only when you already run Spark workloads and need the cluster's managed environment. For plain BigQuery and Cloud Storage EDA it adds cluster cost and setup complexity.

Do managed notebooks still let me query BigQuery directly?

Yes. Managed Vertex AI Workbench instances include BigQuery and Cloud Storage integrations so you browse and query tables from the JupyterLab sidebar without writing connection code.

More PMLE FAQ →

Community Votes

B
75%
A
25%

75% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 9 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 9

  1. b1a8fae 👍 7 Answered B
    "Managed notebooks are usually a good choice if you want to use a notebook for data exploration, analysis, modeling, or as part of an end-to-end data science workflow. Managed notebooks instances let you perform workflow-oriented tasks without leaving the JupyterLab interface. They also have many integrations and features for implementing your data science workflow." vs. "User-managed notebooks can be a good choice for users who require extensive customization or who need a lot of control over their environment." Seems more like the former -> B
  2. AzureDP900 👍 3
    B is right because this option allows you to minimize cost and development effort by using a managed notebook in Vertex AI Workbench, which integrates well with BigQuery and Cloud Storage. You can browse and query your data directly within the JupyterLab interface without having to create a separate BigQuery client or use the bq command-line tool.
  3. taylz876 👍 1 Answered B
    Why B is right • Minimize development effort: a managed notebook comes with BigQuery and Cloud Storage built into the JupyterLab interface. You can browse the tables and query them from the sidebar, with no connection code to write. • Minimize cost: managed notebooks are designed to be low-maintenance and can shut down when idle, so you're not paying for a VM you forgot about while you experiment. • EDA, preprocessing and training in one place: it's a normal Jupyter environment, so you can rerun all three steps with different algorithms. Why the others are wrong • A: A user-managed notebook means you set up and look after the VM yourself, and %%bigquery is only a convenience. It's more setup than the managed notebook, which has the built-in table browsing. • C: A user-managed notebook on a Dataproc Hub adds Spark clusters for no reason. You don't need Spark to explore and model this data. • D: A managed notebook on a Dataproc cluster with the Spark-BigQuery connector is even heavier. A cluster costs more and takes more effort.
  4. guilhermebutzke 👍 1 Answered A
    My Answer: A A: Default VM instance is the best to minimize the cost, and the command %%bigquery magic is the most easy way to get data from BQ. B: Not necessary JupyerLab interface to run code. The %%bigquerv magic commands is sufficient to get data and run easily queries. C: Dataproc Hub seems overkill and it is more expensive than a default VM instance. C: spark-bigquery-connector unnecessary to get tables in the notebook. better use %%bigquery.
  5. pikachu007 👍 1 Answered B
    Option A: User-managed notebooks require VM instance management, adding cost and complexity. %%bigquery magic commands are still needed. Option C: Dataproc Hub adds unnecessary cost and complexity for simple BigQuery interactions. Option D: Spark-bigquery-connector adds complexity and overhead compared to the native BigQuery integration in managed notebooks.
Show 4 more comments
  1. shadz10 👍 1 Answered B
    https://cloud.google.com/vertex-ai/docs/workbench/notebook-solution#:~:text=For%20users%20who%20have%20specific,user%2Dmanaged%20notebooks%20instance's%20VM.
  2. gscharly 👍 1 Answered A
    agree with guilhermebutzke. Also, this option is easier to reuse in multiple experiments
  3. daidai75 👍 1 Answered B
    https://cloud.google.com/bigquery/docs/visualize-jupyter
  4. pinimichele01 👍 1 Answered B
    see b1a8fae

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All PMLE Questions

Access 65 questions with complete answers and detailed explanations.

View Full PMLE Practice Test →

← Back to PMLE Study Guide