Sharing BigQuery Datasets with Analytics Hub Egress Restrictions

ADP By islever Editorial Last updated

Configure access control and governance. Apply security measures and ensure compliance with data privacy regulations.

Short answer

B Create a private exchange using Analytics Hub with data egress restriction, and grant access to the team members.

Question

Another team in your organization is requesting access to a BigQuery dataset. You need to share the dataset with the team while minimizing the risk of unauthorized copying of data. You also want to create a reusable framework in case you need to share this data with other teams in the future. What should you do?
  1. Create authorized views in the team’s Google Cloud project that is only accessible by the team.
  2. Create a private exchange using Analytics Hub with data egress restriction, and grant access to the team members. Correct Answer
  3. Enable domain restricted sharing on the project. Grant the team members the BigQuery Data Viewer IAM role on the dataset.
  4. Export the dataset to a Cloud Storage bucket in the team’s Google Cloud project that is only accessible by the team.

Key Takeaways

Analytics Hub provides a reusable framework for sharing BigQuery datasets via private exchanges while enforcing data egress restrictions to prevent unauthorized copying. Creating a private exchange with egress restrictions satisfies the requirements for secure, scalable data sharing across teams. Standard IAM roles or authorized views fail to prevent data exfiltration and lack reusable sharing architectures.

Expert Analysis

A. Analytics Hub enables sharing BigQuery datasets across organizations with fine-grained access control in a managed marketplace. IAM (B) is within the same org. BigQuery DataShare (C) is a similar feature but Analytics Hub is the recommended cross-org sharing service. Pub/Sub (D) is for real-time streaming.

The explicit requirement to "minimizing the risk of unauthorized copying of data" and "create a reusable framework" makes authorized views untenable. Authorized views restrict row and column access but do not natively prevent subscribers from running queries and saving the results to new tables, nor do they constitute a reusable sharing framework. Option B, creating a private exchange using Analytics Hub with data egress restriction, directly satisfies both constraints by providing a managed marketplace for data sharing.

Analytics Hub allows publishers to create data exchanges—reusable frameworks where multiple datasets can be listed and shared with subscribers across different projects or organizations. By configuring data egress restrictions, publishers enforce query-level controls that prevent subscribers from exporting the data to other destinations, thereby minimizing unauthorized copying. This fulfills the scenario's need for a scalable sharing model that can be extended to other teams in the future without reconfiguring individual views or duplicating data.

Option A, creating authorized views in the team's Google Cloud project, fails the reusable framework requirement because each new team would require provisioning a new authorized view and managing complex cross-project permissions individually. Furthermore, standard authorized views do not inherently block users from materializing query results into permanent tables, leaving the door open for data duplication and unauthorized copying.

Option C, granting the BigQuery Data Viewer IAM role, provides direct read access to the underlying tables. This maximizes the risk of unauthorized copying, as users can freely export the data to Cloud Storage or other BigQuery tables. Enabling domain restricted sharing on the project only limits which identities can be added to IAM policies; it does not prevent data exfiltration by authorized users who can still run export jobs.

Option D, exporting the dataset to a Cloud Storage bucket, physically duplicates the data into the team's project. This completely violates the requirement to minimize unauthorized copying, as the team gains full control over the exported files and can copy them anywhere. It also creates data synchronization issues and fails to provide a centralized governance model for future sharing.

The unspoken mechanism here is Analytics Hub's application of egress controls on linked datasets. When a publisher shares a dataset via an Analytics Hub linked dataset, they can apply egress restrictions that disable BigQuery job operations like exporting results to Cloud Storage or writing to persistent tables. This ensures the consuming team can analyze the data without being able to extract it, perfectly aligning with the scenario's security posture and governance requirements.

Official Reference

https://cloud.google.com/analytics-hub/docs/restrict-egress

This link opens the official vendor documentation in a new tab.

Exam Strategy

When a question demands both secure data sharing (preventing copying) and a reusable framework for multiple teams, immediately look for Analytics Hub. Authorized views and IAM roles provide access control but do not prevent users from materializing or exporting query results. Analytics Hub's data egress restrictions explicitly block output operations, making it the only viable option for minimizing data exfiltration while scaling sharing workflows.

Practice All ADP Questions

Access 65 questions with complete answers and detailed explanations.

View Full ADP Practice Test →

← Back to ADP Study Guide