What is the difference between the jobUser and dataViewer roles in BigQuery, and why is that distinction important?

Quick Overview

Asks how the BigQuery jobUser and dataViewer IAM roles differ and why the platform keeps them separate. Tests understanding of compute versus data permissions, which project pays for a query, least privilege, and cross-project query setups.

What is the difference between the jobUser and dataViewer roles in BigQuery, and why is that distinction important?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

What is the difference between the `jobUser` and `dataViewer` roles in BigQuery, and why is that distinction important? ```hint Two things a query needs A query has to run somewhere (and someone pays for it), and it has to read tables. Ask which of those each role covers and which resource each role is attached to. ``` ### What a Strong Answer Covers - What each role grants and the resource level where it is usually granted - That running a query needs permission to create a job in some project and read access to the tables it touches - Which project is billed, or supplies the slots, for a query - Why separating the two supports least privilege and cross-project setups - What a principal holding only one of the two roles can and cannot do ### Follow-up Questions - An analyst works in project A and needs to query a dataset owned by project B. Which roles do you grant, and on which resources? - How would you let a team query a filtered subset of a table without granting them `dataViewer` on the underlying table? - What additional permission does a query need when it writes its results to a named destination table? - How does `roles/bigquery.user` differ from `roles/bigquery.jobUser`?

Overview: Asks how the BigQuery jobUser and dataViewer IAM roles differ and why the platform keeps them separate. Tests understanding of compute versus data permissions, which project pays for a query, least privilege, and cross-project query setups.

General logo
General
Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

What is the difference between the jobUser and dataViewer roles in BigQuery, and why is that distinction important?

What a Strong Answer Covers Guidance

  • What each role grants and the resource level where it is usually granted
  • That running a query needs permission to create a job in some project and read access to the tables it touches
  • Which project is billed, or supplies the slots, for a query
  • Why separating the two supports least privilege and cross-project setups
  • What a principal holding only one of the two roles can and cannot do

Follow-up Questions Guidance

  • An analyst works in project A and needs to query a dataset owned by project B. Which roles do you grant, and on which resources?
  • How would you let a team query a filtered subset of a table without granting them dataViewer on the underlying table?
  • What additional permission does a query need when it writes its results to a named destination table?
  • How does roles/bigquery.user differ from roles/bigquery.jobUser ?