Let’s Get Certified
Module 09 / 12 · Data management

Separate query execution, data access and governed sharing

An analyst may query one billing dataset from a separate project.

Separate query execution, data access and governed sharing

An analyst may query one billing dataset from a separate project. The job needs permission to run and permission to read the selected data. Check those two resources independently before extending access.

The speaker distinguishes dataset-level read access from the project-level ability to create a query job.

Work through the decision

A viewer has Data Viewer on the billing dataset but still gets a job-creation error in a different project. Should you grant dataset ownership?

Check your reasoning

Keep the data grant scoped. Check the execution project and grant the necessary job-creation permission there. Then test a query against the allowed dataset and an unauthorized dataset as the same user.

Associate Data Practitioner recording · 1:36:53

Decisions and tradeoffs

Dataset-scoped BigQuery Data Viewer
Grant appropriate read permissions on the specific dataset or selected resources rather than every dataset in the project.
BigQuery Job User on the execution project
The job runs under a billing or execution project that requires permission to create jobs, separate from reading input tables.
Uniform bucket-level access
Use IAM consistently at bucket scope and disable object ACL authorization when legacy per-object ACLs are unnecessary.
BigQuery sharing listing
A governed listing can make an approved data product discoverable and subscribable without maintaining a private extract for each consumer. The guide calls this Analytics Hub.

Write a two-query access test

Use a test identity that belongs to the intended reader group. Run a small query on the authorized dataset from the designated execution project. Then repeat with a comparable restricted dataset. For a useful test, neither query should read a previously cached result or use a more privileged service identity.

If the first fails, record the denied permission and resource. If the second succeeds, inspect inherited project or organization roles and group membership before changing dataset bindings.

Practice each guide skill

Work through these exercises in the order of the published guide. The checklist numbers are local references.

  1. Separate data reading, job execution and data administration. Give a test reader access to the approved resource and verify an unrelated dataset remains inaccessible.
  2. Compare broad basic roles, service-specific predefined roles and the permissions required by one operation at one resource.
  3. Check bucket IAM, uniform access and public access prevention against the policy. Inspect inherited grants as well as bucket-level grants.
  4. Publish an approved data product through BigQuery sharing, called Analytics Hub in the guide. Test access as a subscriber and define how consumers are removed.

Official objectives for this lesson

Related lesson · Grant access to the precise data boundary

Knowledge check

Separate query execution, data access and governed sharing quiz

Answer 3 questions. Check each answer for an explanation.