Compare / Dataproc vs BigQuery

Dataproc vs BigQuery

BigQuery is the default for SQL analytics: nothing to run and no cluster to size. Dataproc is for when you already have Spark or Hadoop code, or need open-source tools that SQL cannot replace.

In 67 practice questions across 8 practice banks

Associate Data Practitioner Pipelines & Processing

You need to design a data pipeline to process large volumes of raw server log data stored in Cloud Storage. The data needs to be cleaned, transformed, and aggregated before being loaded into BigQuery for analysis. The transformation involves complex data manipulation using Spark scripts that your team developed. You need to implement a solution that leverages your team's existing skillset, processes data at scale, and minimizes cost. What should you do?

  1. Dataform expresses transforms in SQLX — the Spark scripts wouldn't be reused.

  2. a custom Dataflow template means porting Spark code to Beam.

  3. Dataproc executes the existing Spark scripts, minimizing rework and cost.

  4. Data Fusion is visual pipeline design — again a rebuild of the team's code.

Pick an answer to see why each option is right or wrong.

Try 20 questions free

At a glance

DataprocBigQuery
InterfaceSpark, Hadoop and Hive jobs, notebooksStandard SQL
InfrastructureManaged clusters or serverless batchesFully serverless
Best atExisting big data code, custom processing, ML librariesInteractive and batch analytics on structured data
Migration fitOn-premises Hadoop or Spark with few changesRewrite into SQL, accept managed warehouse model
Cost modelPay for cluster time (ephemeral clusters keep it low)Pay per query scanned or reserved slots

Choose Dataproc when

  • You are moving existing Spark or Hadoop jobs and want minimal rewriting.
  • The work needs libraries or processing that is awkward in SQL.
  • The team already has deep Spark skills.

Choose BigQuery when

  • The need is SQL analytics, reporting or a data warehouse.
  • You want zero cluster management.
  • Data is structured or semi-structured and queried repeatedly by analysts.

Exam tip

A requirement to "reuse existing Spark jobs" points to Dataproc. "Minimize operational overhead" for analytics points to BigQuery, which can also query data in Cloud Storage as external tables.