professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
Your enterprise stores highly sensitive customer transactional data in a centralized BigQuery dataset (raw_transactions). An external partner organization needs to query aggregated daily transaction metrics without gaining direct access to the underlying sensitive tables containing personally identifiable information (PII).
You must design a secure data sharing architecture that satisfies the following requirements:
raw_transactions dataset.Which solution should you implement?
Assign the partner the roles/bigquery.admin role on the project and configure a Cloud Storage transfer service to dump aggregated tables into a public bucket.
Configure an NFS file share using autofs on Compute Engine instances to mount raw table exports and share access with the partner via Cloud Load Balancing.
Grant the partner roles/bigquery.dataEditor on the raw_transactions dataset and create a standard view inside raw_transactions that aggregates the metrics.
Create a new dataset containing a SQL view that aggregates data from raw_transactions. Authorize the view to access raw_transactions, grant the partner roles/bigquery.dataViewer on the new dataset, and enable BigQuery Data Access audit logs.
Assign the partner the roles/bigquery.admin role on the project and configure a Cloud Storage transfer service to dump aggregated tables into a public bucket.
Configure an NFS file share using autofs on Compute Engine instances to mount raw table exports and share access with the partner via Cloud Load Balancing.
Grant the partner roles/bigquery.dataEditor on the raw_transactions dataset and create a standard view inside raw_transactions that aggregates the metrics.
Create a new dataset containing a SQL view that aggregates data from raw_transactions. Authorize the view to access raw_transactions, grant the partner roles/bigquery.dataViewer on the new dataset, and enable BigQuery Data Access audit logs.
An authorized view in BigQuery is a logical SQL view that allows specific users or groups to query aggregated or filtered data from a source dataset without granting those users direct access to the underlying source tables. By authorizing the view itself to access the source dataset, BigQuery executes queries against the view using the view's elevated dataset authorization rather than the end-user's permissions.
raw_transactions, users only need the roles/bigquery.dataViewer role on the dataset containing the view.DATA_READ logs) in Cloud Audit Logs ensures every query run against the authorized view is captured with detailed metadata, timestamps, and caller identities.roles/bigquery.dataViewer and Cloud Logging.This pattern separates consumer presentation from protected underlying storage while maintaining complete regulatory auditing and strict data isolation.