Separate the right to run a query from the right to read data
A hospital analyst can submit a BigQuery job in the billing project but receives an access error on the approved reporting view. Where would you look?
Separate the right to run a query from the right to read data
Start with the identity that executes the job. A reader grant on a dataset and permission to create jobs can live in different projects. Split development from production, classify the fields and decide where keys and recovery copies are permitted before approving either grant.
In the recording
Grant the pipeline service account the permissions its job needs, with separate grants to read BigQuery tables and run jobs.
Work through the decision
A hospital analyst can submit a BigQuery job in the billing project but receives an access error on the approved reporting view. Where would you look?
Check your reasoning
Check permission on the view and how it is authorized to read underlying data. Keep identifiable source records in a restricted dataset. Use a separate service identity for ingestion and test the analyst’s effective access using their identity.
Decisions and tradeoffs
- Dataset access
- Grant read access on the approved dataset or view to the identity that needs the rows. Running jobs and reading data are separate permissions.
- Job submission permission
- The job user role allows an identity to create a query job in its execution project. Data access is evaluated separately.
- Customer-managed encryption key
- A managed key with controlled location, permissions and rotation gives the organization authority over the encryption key lifecycle.
- Regional placement policy
- Choose permitted regions for datasets, copies and processing before loading sensitive data. Audit location alongside access and retention.
Practice the guide skills
- Map readers and pipeline identities to minimum roles.
- Document key ownership and a rotation test.
- Mask or tokenize identifiers in the reporting path.
- Locate primary, staging and recovery copies on a region map.
- Record how retention and access reviews satisfy the contract.
- Separate restricted tables and reporting datasets.
- Test a development identity against the production boundary.
Official objectives for this lesson
Related lesson · Separate query execution, data access and governed sharing
Separate the right to run a query from the right to read data quiz
Answer 3 questions. Check each answer for an explanation.