professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
A publisher project shares a BigQuery dataset through an Analytics Hub data exchange listing, and a subscriber project subscribes to create a read-only linked dataset that queries the data in place. No data is copied: the publisher retains storage control and pays for storage, while the subscriber runs queries with its own compute and pays for them.
Dataset versioning updates the entire dataset name while keeping view names constant, whereas view versioning keeps the dataset name constant and appends version identifiers to the view names.
BigQuery Analytics Hub uses a zero-copy sharing model that separates storage from compute, allowing consumers to query data directly in the publisher's project using their own BigQuery resources without creating a physical copy.
Key security features include Identity and Access Management (IAM) for permissions, authorized views to prevent direct table access, row-level security and column-level security for granular data filtering, VPC Service Controls to create a security perimeter, and data egress restrictions to prevent copying.
The publisher is always responsible for storage costs, while subscribers pay for the queries they run, either through on-demand pricing or their own capacity reservations.
BigQuery Analytics Hub is a platform for securely sharing datasets across different teams or organizations. Its core design separates storage from compute. This means the data publisher maintains control over the original data, while consumers use their own BigQuery projects and resources to run queries, eliminating the need to copy the data.
To share data without exposing the underlying tables, publishers use authorized views and authorized datasets. These act as secure interfaces, allowing consumers to query data through SQL while the publisher retains full control over the source schema and access rules. When the underlying data structure changes, publishers can manage the transition smoothly using one of two versioning strategies:
sales_v1 to sales_v2), while the view names inside remain the same.catalog_v1 and catalog_v2).Security is enforced through layered controls. Identity and Access Management (IAM) provides the foundation for user permissions. Row-level security and column-level security add fine-grained filters, restricting which rows or sensitive columns a user can see based on their identity or group membership. For high-security collaboration, VPC Service Controls create a secure perimeter to prevent data from being moved outside authorized boundaries. Data masking can also be applied to dynamically hide sensitive values at query time.
For software-as-a-service (SaaS) scenarios, a dedicated tenant model can be used, where each customer's data and compute resources are isolated in separate projects. This simplifies billing and performance management. To control compute costs in multi-tenant setups, administrators use BigQuery reservations to allocate query processing capacity (slots) fairly among different projects.
Exam tip: When sharing data via Analytics Hub, publishers retain complete authority over their source datasets and can use authorized views to prevent direct access to base tables.
Making shared data easy to find and understand is critical for self-service analytics. Dataplex Universal Catalog (formerly Data Catalog) is the managed service for data discovery and metadata management. It automatically registers technical metadata—like table names and schemas—for BigQuery tables, authorized views, and BigLake views. Publishers should enrich these assets with business-friendly descriptions and tags to improve searchability.
BigQuery's sharing features (including Analytics Hub) use a publish-subscribe model that enables zero-copy sharing. Subscribers access data directly in the publisher's project without creating a physical copy, which simplifies management and ensures data freshness. Publishers can share datasets, tables, views, machine learning models, and even Pub/Sub topics through curated listings in data exchanges.
Managing costs for shared data involves specific models:
The Data Catalog also tracks cost-related metrics, such as query and storage costs derived from Cloud Billing data, which helps in monitoring spending and detecting anomalies. Metadata tagging is used to attach governance information to data assets, including encryption status, data classification, and retention policies. These tags can trigger automated policy enforcement and compliance checks.
Access is governed by IAM bindings and formalized data sharing agreements. These agreements, stored in a dedicated warehouse, are linked to metadata tags. When consumers query sensitive data, they may be required to specify a valid "purpose," which is checked against their entitlements. All data access is logged to an audit trail in BigQuery for compliance monitoring.
Access governance is the framework of controls that determines who can see and use what data within published datasets. The goal is to enforce the principle of least privilege, granting users the minimum access necessary for their work, especially when sharing data via BigQuery sharing or Analytics Hub.
The first layer of control is Identity and Access Management (IAM), using predefined or custom roles to grant permissions at the project, dataset, or table level. For secure sharing, authorized views are essential. They allow a publisher to let specific users or groups query a view without granting them any access to the underlying source tables.
For granular control within a single table, two key features are used:
Advanced security is achieved with VPC Service Controls, which create a logical security perimeter around BigQuery resources to block data movement to unauthorized locations. For datasets shared via an Analytics Hub listing, publishers can enable data egress restrictions. This setting prevents subscribers from copying, exporting, or creating new tables from the shared data, keeping it contained within the secure query environment.
All access and query activity is recorded in Cloud Audit Logs. This audit trail is vital for investigating access patterns, proving compliance with data sharing agreements, and detecting potential security incidents.
An enterprise publishes shared data listings using BigQuery Analytics Hub. A subscriber team in caller project analytics-subscriber (Project R) has subscribed to a listing and provisioned a linked dataset in project subscriber-warehouse (Project L). The underlying shared dataset contains views in project subscriber-warehouse that reference underlying base tables hosted in project source-storage (Project V).
Each project resides in a separate, isolated VPC Service Controls perimeter. Queries executed by analysts in Project R against the linked dataset views are currently failing due to perimeter violations.
Which VPC Service Controls ingress and egress rules must you configure to allow users in Project R to query the views while maintaining perimeter security across all projects?