Set BigQuery access so each department only accesses its data; department leads can create and update tables and share them; analysts can query but not modify. How should you set access?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a dataset for each department. Assign the department leads the role of WRITER, and assign the data analysts the role of READER on their dataset..
Why this is the answer
The correct approach is to create a dataset for each department and assign roles at the dataset level. The BigQuery Data Editor (or roles/bigquery.dataEditor) role, often referred to as WRITER in simpler terms, allows department leads to create, update, and delete tables within their specific dataset, fulfilling the requirement for them to create and update tables. The BigQuery Data Viewer (or roles/bigquery.dataViewer) role, referred to as READER, allows analysts to query data but not modify it. This granular control at the dataset level ensures each department only accesses its data. Assigning OWNER to department leads would grant excessive permissions, including managing dataset-level access, which isn't explicitly required. Assigning roles at the project level or creating tables for each department would not provide the necessary fine-grained control over data access per department.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed