Agentic AI use case: Build a cross-cloud open data lakehouse
Stay organized with collections
Save and categorize content based on your preferences.
Last reviewed 2026-04-22 UTC
This document provides a high-level architecture to build a cross-cloud open
data lakehouse
that establishes a highly governed, secure pipeline from raw cross-cloud silos
directly to AI-driven actions. It shows how to unify fragmented enterprise data
across
Google Cloud, other cloud providers, and live operational
databases without relying on fragile
extract, transform, and load (ETL)
pipelines that can duplicate data.
The intended audience for this document includes data engineers, data
architects, and AI developers who need to design performant federated systems
that use open standards. The intended audience might also navigate enterprise
constraints, such as cross-cloud network routing and strict identity and access
management isolation.
The deployment section of this document provides a code sample
that helps you build and deploy the architecture that is described in this
document.
Architecture
The following diagram shows a cross-cloud architecture with a central lakehouse
in Google Cloud.
The architecture in the preceding diagram consists of two subsystems: data
ingestion and serving.
The data ingestion subsystem ingests data
from external sources. It uses a central lakehouse to unify and process
fragmented databases into a unified customer profile in Google Cloud.
The serving subsystem lets users query an AI
assistant and a data analysis agent to analyze the consolidated data.
The following sections describe the components across the subsystems.
Data ingestion subsystem
The data ingestion subsystem contains the following components:
A service that provides a distributed processing engine that
handles complex analytical workloads, such as large-scale, cross-cloud
data joins and transformations. To maximize compute efficiency,
Managed Service for Apache Spark uses Lightning Engine to
handle the massive multi-way joins, complex windowing, and behavioral
aggregations that are needed to combine the cross-cloud data
sources.
Managed Service for Apache Spark uses
Lightning Engine to execute the distributed join by
ingesting data from the following paths:
Live transactional data from AlloyDB for PostgreSQL through
BigQuery
connections.
External data sources
The enterprise data assets that reside in other cloud environments.
In the architecture that this document describes, the external data
sources are the following:
Amazon S3: An external object
storage service that stores the raw data files for the Iceberg tables
in Apache Parquet format.
Connecting to external data sources lets you analyze data in
place and avoids the need for costly and time-consuming data migration.
Although this example architecture uses Databricks Unity Catalog and
Amazon S3 buckets, you can use this architecture pattern with other
external Iceberg catalog services and cloud storage providers.
A scalable object storage service for high-throughput data, such as
clickstream events. To ensure that the data can be accessed by a variety
of processing engines, use Cloud Storage to decouple the data from
specific compute services and store the data in the open Apache Iceberg
format, such as Apache Parquet.
The central metadata and governance system that enables a unified
cross-cloud federation. To establish connection to the lakehouse
metadata, Lakehouse performs the following actions:
Connect to Databricks Unity Catalog to resolve the schema and
routing information for cross-cloud data.
Send a request to Secret Manager to verify the credentials.
If credentials are approved, establish direct connection to
lakehouse metadata.
If credentials are denied, return an error message and abort the
operation.
Managed services that enable resources within the Google Cloud
network to securely access the data from external cloud sources without
exposing those resources to the public internet.
A service that securely stores the Databricks
service principal credentials, such as client ID and secret, for
cross-cloud authentication.
Serving subsystem
The serving subsystem contains the following components:
Component
Description
Unified customer profile
A BigQuery
database that consolidates the output of distributed Spark jobs. The
BigQuery table transforms fragmented cross-cloud metrics
into complex denormalized data types and serves as the central, governed
datastore for analysis.
A conversational analytics agent that lets users query data directly in
BigQuery and generates enterprise insights. The
agent enforces security and governance guardrails on the queries.
BigQuery MCP server
A Google-managed
Model Context Protocol (MCP)
server that provides access to BigQuery data. The
BigQuery MCP server securely exposes the governed
lakehouse context to local or external AI models, like
Gemini CLI. It enables end-to-end agentic workflows without
requiring AI engineers to build and maintain custom REST API middleware.
Gemini CLI
A command-line AI assistant that lets users interact with the unified
customer profile to generate personalized, data-driven content, such as
personalized marketing campaigns. The
Gemini CLI acts as a client for the
BigQuery MCP server to access the data that is stored in
the unified customer profile.
Products used
This example architecture uses the following Google Cloud products and
tools:
Lakehouse for Apache Iceberg: A high-performance storage engine that lets you build open data lakehouses
and provides a unified interface for advanced analytics and AI.
BigQuery: An enterprise data warehouse that helps you manage and
analyze your data with built-in features like machine learning, geospatial
analysis, and business intelligence.
AlloyDB for PostgreSQL: A fully managed, PostgreSQL-compatible database service
that's designed for your most demanding workloads, including hybrid
transactional and analytical processing.
Cloud Storage: A low-cost, no-limit object store for diverse data types.
Data can be accessed from within and outside Google Cloud, and it's
replicated across locations for redundancy.
Cloud NAT: A service that provides Google Cloud-managed
high-performance network address translation.
Cloud Router: A distributed and fully managed offering that provides Border Gateway Protocol
(BGP) speaker and responder capabilities. Cloud Router works with Cloud Interconnect,
Cloud VPN, and Router appliances to create dynamic routes in VPC
networks based on BGP-received and custom learned routes.
Virtual Private Cloud (VPC): A virtual system that provides global, scalable
networking functionality for your Google Cloud workloads. VPC includes
VPC Network Peering, Private Service Connect, private services access, and
Shared VPC.
This example architecture uses the following third-party products:
Databricks Unity Catalog:
A unified governance and metadata catalog for data and AI assets on the
Databricks platform.
Amazon S3: A storage service from Amazon Web
Services (AWS) that stores and manages data as objects.
Use cases
This reference architecture is designed for organizations that need to unify
siloed data from multiple cloud environments and on-premises systems to drive
analytics and AI initiatives. This architecture provides the following benefits:
A cross-cloud unified profile: A single, holistic view of business
entities that lets analysts and decision-makers gain comprehensive insights.
This unified view improves accuracy of analytics and it ensures that data is
consistent and up-to-date regardless of where it's stored.
Reduced operational complexity and lower total cost of ownership (TCO):
Lakehouse eliminates the need to build and maintain brittle
data pipelines. This approach lets you query data directly where it resides
across different clouds. It avoids the operational overhead, storage costs,
and latency that are associated with physical data movement.
Agentic AI workflows: AI agents empower data analysts to translate complex
behavioral aggregations directly into actionable business strategies. Agents
let analysts securely access the structured, governed lakehouse data through
standard protocols.
The following are examples of use cases for the architecture that's described in
this document:
Real-time retail analytics: A retail company needs to make immediate
decisions based on sales and inventory. This architecture lets them
combine their static product catalog data, which is managed in AWS, with live
sales transaction data from their operational
AlloyDB database on Google Cloud. Analysts and
store managers can query this unified view at predefined batch intervals to
monitor the performance of a sale, identify fast-selling items for restocking,
or analyze regional buying patterns as they emerge.
Customer personalization: A financial services firm wants to provide
its relationship managers with a complete and unified view of their clients.
The firm can use this architecture to unify historical marketing engagement
data from a data lake on AWS with live customer account information from
AlloyDB. A relationship manager can then use the AI
assistant to ask questions, such as "summarize the last three transactions for
this client and draft a personalized email that suggests a new high-yield
savings account."
Design considerations
To implement this architecture for production, consider the following
recommendations:
Network topology and egress strategy: To ensure reliable performance and
minimize data transfer costs over cross-cloud networks, use
Cross-Cloud Interconnect
to establish a private connection between Google Cloud and AWS.
Otherwise, data query over public internet from Google Cloud to AWS can
incur high egress fees and unpredictable latency.
Compute selection: To optimize performance and cost, select a compute
service that is best suited for each part of your workload. A modern data
lakehouse doesn't rely on a monolithic compute service. To perform exact-match
filters to operational databases, use BigQuery
federated queries. To offload
memory-heavy and complex data manipulation, such as vectorized
cross-cloud joins, use Managed Service for Apache Spark with Lightning Engine.
AI model grounding: To mitigate AI model hallucinations, ground your model
on the unified customer profile to enforce business definitions and
statistical validation. When you expose the AI model to raw, unaggregated
cross-cloud data across billions of rows, it can lead to excessive token
consumption and high hallucination rates.
Identity and access management: To enforce the
principle of least privilege
, manage access through system-managed identities.
The use of these identity and access management strategies helps to prevent
unauthorized data exfiltration and it provides a unified audit trail for all
data access.
Deployment
To deploy this architecture, see
Building a cross-cloud open data lakehouse
Codelab. This sample implementation helps you provision the specific network
infrastructure, execute C++ PySpark workflows, and configure AI agents to safely
interact with your lakehouse.
For an overview of architectural principles and recommendations that are specific to AI
and ML workloads in Google Cloud, see the
AI and ML perspective
in the Well-Architected Framework.
For more reference architectures, diagrams, and best practices, explore the
Cloud Architecture Center.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-22 UTC."],[],[]]