professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Defining rules to share data establishes the identity, perimeter, and access policies required to distribute Google Cloud datasets securely across organizational boundaries. Organizations combine fine-grained permissions, network boundaries, and comprehensive audit logs to ensure only authorized users access sensitive information.
Policy inheritance across the Google Cloud resource hierarchy determines how data sharing controls are applied across projects and folders. Service availability follows a declarative policy model where parent resources pass configurations down to child nodes:
Administrators configure ConsumerPolicy definitions with enable rules to activate services, while an EffectivePolicy view evaluates the combined inheritance across all levels. To prevent non-compliant sharing setups, administrators use the Organization Policy Service to write custom constraints using Common Expression Language (CEL). These declarative constraints can run in dry-run mode to assess changes before enforcing strict data boundaries.
Granular access controls enforce the principle of least privilege by restricting visibility to specific rows and columns within a dataset. Administrators implement column-level security using Data Catalog policy tags arranged in hierarchical taxonomies. When a policy tag is attached to a column, only users with the Fine-Grained Reader role can view the unmasked underlying data.
For row-level filtering, BigQuery row-level security (RLS) creates row access policies based on user identity or group membership. To share datasets containing sensitive information broadly, administrators combine policy tags with dynamic data masking (DDM). Under DDM, users with the BigQuery Masked Reader role receive automatically obscured outputs, such as viewing only the last four digits of a number, without requiring duplicate tables.
Perimeter security enforces network-level trust boundaries to stop unauthorized data egress during cross-project sharing. VPC Service Controls establish security perimeters around BigQuery and Cloud Storage APIs to isolate sensitive data workloads. To enable secure data movement between separate isolated environments, administrators configure perimeter bridges alongside custom ingress and egress rules.
Access Context Manager strengthens these perimeters by evaluating contextual request attributes such as client IP subnetworks, user identity, and device state before granting access. Tools like Sensitive Data Protection (formerly Cloud DLP) scan and classify sensitive fields like personally identifiable information (PII) before data crosses network boundaries. Organizations record formal data sharing agreements specifying approved geographic regions and data sensitivity levels to meet sovereignty regulations.
Federated authentication and cryptographic controls verify user identities and safeguard data before and after it enters shared repositories. Organizations configure Workforce Identity Federation using open standard protocols like OIDC or SAML to authenticate external partners through identity providers such as Microsoft Entra ID. External group claims map directly to Google Cloud permissions, such as the BigQuery Connection User role, using service account impersonation for audited access.
Data protection combines client-side encryption using libraries like Tink with BigQuery AEAD encryption functions for native column-level key management. All data access requests and administrative changes generate immutable entries within Cloud Audit Logs. BigQuery's INFORMATION_SCHEMA.JOBS view tracks every executed query, providing a verifiable audit trail for compliance verification.
Exam tip: Authorized views in BigQuery allow consumers to query filtered subsets of data without granting direct access permissions to the underlying source tables.
Publishing datasets involves packaging structured data assets so external or internal consumers can discover, query, and consume them without duplicating the underlying storage. Publishers manage data lifecycles, access interfaces, and cost-allocation models to distribute analytical assets at scale.
A zero-copy architecture separates storage from compute, allowing data publishers to maintain data ownership while subscribers run queries using their own compute resources. Publishers expose datasets, tables, views, machine learning models, and Pub/Sub topics through curated data exchange listings. When modifying source schemas, publishers preserve query compatibility by adopting specific versioning strategies:
sales_v1 to sales_v2) while preserving consistent view and table names inside.catalog_v1 and catalog_v2).Authorized datasets and authorized views act as logical boundaries that allow subscribers to query source records without receiving direct read access to underlying tables.
Data discoverability relies on centralized cataloging to index technical metadata and business context for all published assets. Dataplex Universal Catalog (formerly Data Catalog) automatically harvests schemas, table names, and technical metadata from BigQuery tables, authorized views, and BigLake views. Publishers enrich these assets with business tags, descriptions, and classification labels to make them searchable for self-service analytics.
Metadata tagging connects governance policies directly to shared assets by tracking encryption status, data classifications, and retention schedules. These tags enforce purpose-based access controls, requiring subscribers to provide valid business justifications that match their formal data sharing agreements. All subscription actions and schema interactions are logged to provide end-to-end lineage tracking.
Cost-sharing models determine whether the data publisher or the data subscriber pays for storage and computational query processing. Different Google Cloud storage and analytics services enforce distinct billing boundaries between parties:
| Service / Resource | Storage Cost Responsibility | Compute / Query Cost Responsibility | Primary Use Case |
|---|---|---|---|
| BigQuery Shared Datasets | Publisher pays for stored data | Subscriber pays via on-demand pricing or capacity slots | Cross-project and cross-organization SQL analytics |
| Cloud Storage (Requester Pays) | Publisher pays baseline storage | Subscriber pays data access and network egress | Bulk file distribution and object downloads |
| BigQuery Multi-Tenant SaaS | Publisher manages isolated tenant projects | Shared capacity allocated via BigQuery reservations | Managed software platforms with dedicated tenant isolation |
Subscribers query publisher data directly, eliminating physical data duplication fees while keeping compute billing isolated to the consumer's billing account.
Access governance combines fine-grained filtering with network restrictions to prevent unauthorized distribution of published datasets. Publishers apply row-level security and column-level security with dynamic data masking to ensure subscribers see only authorized attributes.
To prevent unauthorized data exfiltration, publishers enable data egress restrictions on listings within BigQuery Analytics Hub. This setting blocks subscribers from executing commands such as CREATE TABLE AS SELECT or export jobs that move shared data outside the governed environment. Combined with VPC Service Controls, these controls ensure shared records remain within approved security perimeters.
Exam tip: In BigQuery Analytics Hub, the publisher always pays for the underlying data storage, while subscribers pay for the compute resources consumed by their queries.
Publishing reports and visualizations delivers interactive dashboards and enterprise business intelligence models to stakeholders while maintaining underlying data security and governance. Business intelligence systems connect directly to cloud data warehouses, enforcing identity federation and pipeline automation.
Looker Studio (formerly Data Studio) creates visual reports and dashboards connected directly to data platforms like BigQuery, Cloud SQL, and Cloud Storage. Organizations handling sensitive data, such as Protected Health Information (PHI), must establish a Business Associate Agreement (BAA) and restrict domain sharing via the Google Admin console. Administrators configure data access using two distinct credential methods:
Report developers use reusable data sources created on the Looker Studio home page to centralize security settings and apply email-based row filtering. Performance is enhanced by configuring extracted data sources for static snapshots or utilizing BigQuery BI Engine for sub-second query response times.
Looker uses the LookML modeling language to define centralized business logic, metrics, and relationships across underlying SQL databases. Developers test model definitions in an isolated Development Mode before deploying changes to the Production Mode environment through Git version control.
Database connections to Looker are secured through encrypted channels such as SSH tunnels, SSL encryption, and IP allowlists. User access to data models is restricted through multiple layers:
access_filter parameter: Implements row-level security based on user attributes to restrict record visibility by department or territory.access_grants parameter: Restricts access to specific LookML Explores, views, joins, and fields based on assigned user attributes.Administrators monitor public data exposure by auditing shared links using the System Activity Explore to disable unauthorized public Looks.
Automated reporting pipelines orchestrate upstream data transformation, ingestion, and metric generation to maintain dashboard freshness. Cloud Composer uses managed Apache Airflow workflows to schedule directed acyclic graphs (DAGs) that execute complex multi-step data pipelines. For event-driven processing, Cloud Functions triggers automated workflows immediately when new data arrives in storage buckets.
Upstream pipelines utilize Dataflow for stream or batch transformations and load transformed records into BigQuery for analytical reporting. Asset retention and compliance are managed through Cloud Storage lifecycle policies and object versioning, with Dataplex Universal Catalog tracking metadata. System health is tracked through Cloud Monitoring alerting policies, while customer-managed encryption keys (CMEK) protect sensitive pipeline storage.
Exam tip: In Looker, row-level data security is configured using the access_filter parameter with user attributes, while structural element visibility is controlled via access_grants.
BigQuery Analytics Hub is a fully managed data exchange platform that enables organizations to publish, discover, and query shared datasets securely across project and organizational boundaries. It provides a governed marketplace environment supporting internal sharing and external data commercialization.
Access management in Analytics Hub uses specialized IAM roles to enforce least-privilege administrative and consumption boundaries. Permissions are divided across distinct administrative functions:
Publishers enforce granular data security by combining authorized views, column-level security policy tags (requiring the Fine-Grained Reader role), and row-level security policies directly on the source tables.
Analytics Hub connects publishers and subscribers through private exchanges for internal collaboration or public exchanges for commercial distribution. When a subscriber links a listing, BigQuery creates a read-only linked dataset in the subscriber's project that dynamically queries the publisher's source data. Shared listings can expose three primary object structures:
To query data hosted in external cloud providers without relocation, organizations use BigQuery Omni. Subscribers improve remote query speed by configuring materialized view replicas, which maintain synchronized local caches of the external cloud data.
Publishing and consuming data in Analytics Hub follows a structured, multi-step lifecycle:
A four-step process flow showing the Analytics Hub sharing lifecycle: an Exchange Admin creates a data exchange, a Publisher publishes a listing with egress restrictions, a Subscriber discovers and subscribes, and a read-only linked dataset is created. A lower panel shows the zero-copy architecture where the publisher keeps and pays for the shared dataset while the subscriber queries it in place and pays for compute.
The zero-copy model cleanly divides operational costs: publishers pay for BigQuery storage, while subscribers pay for the computational slots or on-demand query bytes used to read the data. Publishers optimize query latency for consumers by publishing precomputed materialized views, which reduce the total bytes scanned.
Subscribers minimize their own query costs by taking advantage of the publisher's underlying table partitioning and clustering schemes. To protect data boundaries, publishers enforce data egress restrictions, which disable operations like CREATE TABLE AS SELECT that copy data outside BigQuery. Administrators audit cross-project queries using Cloud Logging and query the INFORMATION_SCHEMA.SHARED_DATASET_USAGE view to monitor bytes scanned and identify active consumer projects.
Exam tip: Linked datasets created via BigQuery Analytics Hub are read-only references that execute against publisher data without copying underlying storage.
access_filter parameter and controls access to Explores, views, and fields using access_grants paired with user attributes.A publisher project shares a BigQuery dataset by publishing a listing in an Analytics Hub data exchange; a subscriber subscribing to the listing gets a read-only linked dataset that queries the publisher's data in place, with no data copied. The publisher pays for storage, the subscriber pays for query compute, egress restrictions block exports, and usage is audited via INFORMATION_SCHEMA.SHARED_DATASET_USAGE and Cloud Logging.
In BigQuery Analytics Hub, the publisher always pays for the underlying data storage, while subscribers pay for the compute resources consumed by their queries.
Using viewer's credentials requires each dashboard viewer to have direct IAM read permissions on the underlying data source, while service account credentials use a centralized service account to query the source data on behalf of all dashboard viewers.
BigQuery row-level security (RLS) restricts access to specific rows based on user identity or group membership, while dynamic data masking (DDM) automatically obscures sensitive column values at query time for users assigned the BigQuery Masked Reader role.
A linked dataset in BigQuery Analytics Hub is a read-only reference created in a subscriber's project that dynamically queries the publisher's source data without copying the underlying storage.