Powering Secure and Scalable Data Governance at PepsiCo With Unity Catalog Open APIs
Summary
- Enterprise Data Governance: PepsiCo unified its diverse data ecosystem across multiple teams and tools using Unity Catalog's open governance framework.
- Multi-Engine Architecture: The company extends Unity Catalog governance to all data and AI assets, enabling secure collaboration across teams outside Databricks using service principals and service accounts.
- Scalable Governance Platform: PepsiCo's enterprise data foundation supports over 10 petabytes of data, 12,000 assets, and 21,000 daily pipelines with unified governance and 50% productivity improvement.
Powering Secure and Scalable Data Governance at PepsiCo With Unity Catalog Open APIs

Talk by Dipankar Kushari, Lead Specialist Solutions Architect, Databricks ; Sudipta Das, Enterprise Data Operations Director, PepsiCo
PepsiCo, given its scale, has numerous teams leveraging different tools and engines to access data and perform analytics and AI. To streamline governance across this diverse ecosystem, PepsiCo unifies its data and AI assets under an open and enterprise-grade governance framework with Unity Catalog. In this video, we'll explore real-world examples of how PepsiCo extends Unity Catalog’s governance to all its data and AI assets, enabling secure collaboration even for teams outside Databricks. Learn how PepsiCo architects permissions using service principals and service accounts to authenticate with Unity Catalog, building a multi-engine architecture with seamless and open governance. Attendees will gain practical insights into designing a scalable, flexible data platform that unifies governance across all teams while embracing openness and interoperability.
Here’s more to explore:
Unified and open governance for data and AI: https://www.databricks.com/product/unity-catalog
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements
FAQs
How does PepsiCo manage data governance across different tools and engines?
PepsiCo uses Unity Catalog as an enterprise-grade governance framework that unifies data and AI assets across diverse tools and engines. They extend governance to teams outside Databricks using service principals and service accounts, enabling secure collaboration across their entire ecosystem.
What is PepsiCo's enterprise data foundation?
PepsiCo's Enterprise Data Foundation (EDF) is a unified, governed data platform that enables seamless data access and insights across the company. It supports over 100 executive leaders globally, houses over 10 petabytes of data, and includes 12,000 data assets with 21,000 pipelines running daily.
What benefits has PepsiCo achieved with Unity Catalog?
By implementing Unity Catalog, PepsiCo achieved 50% productivity improvement, gained ability to extend governance across multi-engine architectures, and enabled secure collaboration even for teams outside Databricks through service principal and service account authentication.
How does Unity Catalog enable open and interoperable governance?
Unity Catalog provides an open governance framework that allows PepsiCo to architect permissions using service principals and service accounts for authentication across its diverse ecosystem. This enables seamless, scalable governance while embracing openness and interoperability.
Full transcript
It's a happy to be back at the datab bricks data and AI summit. I am Sudeptoash from Pepsico and today we are excited to share the next chapter in our journey of powering secure and scalable data governance platform using digital catalog open API. If you were here last year, thanks for joining us again. Our today's session is the continuation of our work that we have done in the last couple of years. Our focus will be mainly on how we have matured our architecture and unlock new capabilities using uni catalog open APIs.
I'm joined by the bunker Kushari from datab bricks. Hi everyone. He will cover the details of the UC open API shortly. He has been a great collaborator and a key contributor towards the evaluation of our design. A quick introduction of myself and. I have over two decades of experience managing large scale enterprise application for the last couple of years. I'm managing enterprise data foundation platform at PepsiCo which includes the entire platform the automation framework services governance and policy debunker.
Hey everyone um I am a lead specialist solutions architect with data bricks been with data bricks more than three years now I specialize in data governance and unity catalog. Thank you. So I believe PepsiCo does not need any introduction. It's a well-known brand globally. But as a quick reminder, PepsiC is a global food and beverage leader. Operates in over more than 200 countries. In 2024, our net revenue was uh more than $92 billion and core operating profit was about $15 billion.
And in all these data is the heart of how we drive performance, efficiency and innovation across our product portfolios. Now what is enterprise data foundation or EDF as we call it in PepsiCo? It's a unified governed data platform that enables seamless data access and insights across PepsiCo. We built it to be a one-stop shop for all the data and analytics needs that supports more than 100 executive leaders across all the sectors globally.
In our production system, we houses more than 10 pabytes of data. We have about 120 digital products. The numbers are growing. uh we have about 2,000 common data model in our silver layer and have approximately 12,000 data assets. We run a little more than 21,000 pipeline per day and over a period of time we saw about 50% productivity improvement by using this unified platform. This is a highle representation of the data foundation platform and the services it has.
Uh as you can see in the diagram we have you know a lot of services built in and around data foundation. Our architecture includes know ingesting data from variety of internal and external sources and moving the data through landing bronze and silver layer. Gold is a KPI layer that the application teams build on top of silver but is outside the scope of the data foundation. We have built a lot of services in data foundation like data onboarding service, testing service, logging, audit monitoring, data quality and devops services.
We have some of these services are core to the framework and some services are optional that the application team can choose while they execute their pipelines. We have some data modeling related services as well like we have a data serve interface which is a graphql based interface that the application team uses for application data modeling. This completely hides the complexity of the underlying bronze and silver layers.
We have data modeling service uh which actually enables the data modelers to create the common data model in silver layer by automating the logical to physical data model process. With low code interface wizard-driven data on boarding we empower our end users uh technical and business users alike. All these services, this modularized and scalable services helped us to maintain the agility without compromising the governance.
And this entire platform is centrally governed even if the teams are distributed and operates in a federated model. One of the core design principle of the enterprise data foundation was to hide complexity from the end users and give them a self-service options. So we have built a portal on top of it. It's an in-house portal that we have built. That portal hides the complexity of this entire platform. The end users logs into the portal.
They configure their data assets. They configure their pipelines, pipeline frequencies, data quality rules and everything. And that portal takes care rest of the stuffs. Now this is a quick road map uh of our journey. We have started our journey in 2022 when we have released the very first version of the injection framework. That time it was a purely backend driven framework. No GUI on top of it. Slowly we have started releasing all the core services of the foundation like DQ service, DevOps service, audit logging, monitoring services etc.
Around Q3 of 2022, we have released a feature in enterprise data foundation where user can get access to the bronze and silver layer data using conditional arbback that the Azure provides that gives some kind of a control over the data who has access to the data and who who cannot access the data. Those kind of control we have used using conditional arbback. Around the end of 2022, we have released the first version of the portal that I have talked about.
In 2023, we have started, you know, introducing streaming use cases uh with the framework and we have to, you know, scale up the infrastructure of the entire platform to handle the massive know data the load that is coming from the global sectors. We have also released another framework in 2023 is a dependency framework to handle complex pipeline dependencies between bronze, silver and gold. In 2024, we have you know integrated our platform with Unity catalog which is our main data governance and data security platform.
We have also started using various partition pruning mechanism in 2024 and also started using serverless DBSQL around the end of 2024. uh we have started exploring UC open API which is our topic today we'll cover it up you know in later slides so since last since last year's summit our you know main focus on 2D depending integration with uni catalog we have moved more and more data under UC and we have started retiring the legacy hive meta store these are very high level consumption patterns we have in PepsiCo and where UC open API fits As we have started decommissioning hive meta store.
So our injection framework has to ensure a dual mode compatibility between the hive meta store and the empty catalog meta store to make sure the business continuity during this transition phase. As you can see in the diagram on the very right uh is the enterprise data foundation data legs. We have multiple data legs. uh on top of it both the meta store seats the hype meta store and the and the empty catalog meta store and both the meta stores are in sync as I've said on the on the left hand side there are uh three different kind of consumers we have at the bottom we have the UC based consumer that means uh the enterprise data foundation consumers whose workspace is already UC enabled so they can query the UC meta store in two different ways uh the preferred way is uh UC plus HMS cluster shared mode so that they can directly query the UN catalog meta store for some reason if they prefer to run a custom mode HMS cluster they can use a SQL warehouse through JDBC and through that SQL warehouse they can still connect to the UN catalog meta store for quering purpose at the top is our nonUC you know consumers that means their workspaces are not UC enabled yet they can still you retrieve the data from hive meta store through the conditional arback that I have just spoke.
But if they want to you know query the UC integral meta store they can still come to there is a global SQL warehouse the enterprise data foundation host through the SQL warehouse through JDBC connection they can you know come and query the UC meta store. The third kind of customer that we have uh is our non datab bricks customer. So these there are some projects and there are some organization in PepsiCo they prefer to run their loads on AKS they do not use data bricks as a compute.
These are the comp these are the customers where the UC open API fits in the best. I will cover these things um in details but uh for the time being let me hand it over to you know walk you through the UC open APIs. Thank you. Um so before Sudhipto dives deep into how PepsiCo has adopted Unity catalog open APIs in their enterprise data foundation platform let me help you understand what is UC open API and then how it works.
Um right now how many of you are using UC open API? Okay. Yeah of course. So before we understand the real value of UC open API or unity catalog open API uh let's understand the challenges that the enterprises face today. The challenges with catalog interoperability. Um so enterprises use different types of data platform. They they have data lake. They also have data warehouses and they also have databases and they operate all of these in silos and they have catalogs for each one of these uh types of data stores.
So when your data platforms are siloed and data and assets are siloed, you always need to do something extra to integrate them together. Be it a ETL pipeline, be it some kind of custom code. And again managing those things are not easy as we all know. Secondly when your data and AI assets are siloed each of these platforms need governance and security on top of those platforms. So now that means your automatically your data governance your discovery is fragmented and that just not increases administrative burden but also it increases the inefficiencies in the whole system.
So a simple example could be who has done what if that bin wants to know just a simple audit report that could take quite a lot of effort to get across all these um disparate data sources and finally the redundancy in compute and storage increases the overall cost. So how can we address these challenges? What does a simple solution looks like? what we should be looking for from a platform. So first thing we are thinking about this platform is unified governance irrespective of the type of platform um you are keeping your data in.
I should be able to uh or or maybe the type of formats because enterprises tend to have different types of data formats uh and they also have different data assets such as tables, views but also in today's world AI assets such as uh u ML models. So if if there is a platform which could provide that unified governance layer to access all of these data even if they are scattered across or siloed across these um sources or data stores that could be a good solution.
But then how do I access that data? Am I only um kind of sandbox into that um into that platform where this unified governance is or can I access and use my choice of compute to access this data. So that's open connectivity and finally does my in today's world is it harnessing the power of AI and ML does it have the built-in intelligence. So since we are talking about governance so think of having a platform which can provide autocl classification of your data or auto tagging or as your data is getting ingested into your platform it is automatically uh optimizing your data.
So we talked about challenges we talked about how a simple solution could look like and we created unity catalog the fast unified catalog for both data and AI assets. Unity catalog supports multiple format. Delta Lake, parket, iceberg a unifi unified platform. It supports um multimodalities. That means we talked about tables, we talked about views, it also supports AI models, files and so on and so forth. Also based on your choice of compute you can access the data governed within the unity catalog using any external engine.
So, Unity catalog really unifies the lakehouse. Using UC open API, REST API or using the iceberg rest API, you can access data governed by Unity catalog. Not only that, you can federate your other cataloges into Unity catalog. So, this is the unified governance piece I was talking about earlier. So let's say you have data in HMS hive meta store um in glue or in snowflake horizon or iceberg rest catalog wherever your data is you could federate those into uni unity catalog so that gives you that unified governance layer the second piece we talked about was the open connectivity so with the UC open API and the iceberg rest API unity catalog gives you that ability to access your data from any external or any engine of your choice.
And not only that, with delta sharing you can collaborate across platform in a secured fashion by sharing your data with data sharing client. And finally, Unity catalog on datab bricks is already built on the data intelligence platform of data bricks. So it's already using all those built-in intelligence and features available to the databris platform. Now I I will talk because this talk is about UC open API. So I'm not going deep into other aspects of UC.
So I'm trying to focus on how these different clients Delta clients or iceberg clients such as Trino or DB for Delta clients or even opensource spark can be used by using these iceberg rest API or unity rest API to access the data that is governed in unity catalog. So um one of the things we need to understand is a feature called credential vending that is provided by Unity. So let's understand what is credential vending and how it works.
But before we dive deep into what is credential vending, let's look at a query execution without credential vending and how it works in a lakehouse. So think of a catalog service. Let's say for example let's take hive meta store and the user who is an authenticated user in the system uh is trying to do a simple query or run a simple query um which is select star from a table. The table is managed within the catalog but on the rightmost side if you see there are two things that the admin has to do for this to work.
One is at the top permission to the metadata and the bottom permission to the storage layer. So we all have done this. We have used hive meta store. We know that we have to have this permission. So that means now you are creating two different places manage access management and that could just go wrong at any point in time go could go out of sync or there could be some misconfiguration and there could be potential security problem.
But in this case, let's walk through and because then we'll appreciate with credential vending how it is different and how it is much better. So the user files the query there is a query engine which can access data from the in this case hive metas store and um so the first thing it does it authorizes if the user has select on that table because user is doing a simple select on the table. We already granted select to that user but that was the first part of the process where we granted access to the metadata.
We also had to make sure that the grant is given to the user to the storage via instance profile or managed identities depending on which cloud platform you are using. So when the authorization is successful to that table then the user uh sorry the hive meta store generates the storage path um where the data is actually stored and then the query engine uses that location to fetch the data. But this time it uses the second part of the access policy which is to access the storage and if it is successful then it goes back.
So you see there are multiple moving pieces here and it could go wrong anywhere in between versus this picture looks much more simpler with unity catalog. Unity catalog meta store is where you will define this access policy only once. So how it is different? If I go back to the previous one, look at point number three here versus here. So what Unity catalog is doing here, it's generating not only the is giving not only the storage path but also generating a temporary shortlived downcope token based on the access policy that was defined by the admin on the right hand side.
So this is credential vending and this is how the external engine can securely access data which is managed within the unity catalog. So let's walk this through quickly. Again the user is an authenticated user in the system wherever uh he's running the query from the query engine can access Unity catalog. So the second step is of course uh the authorization to the table. We already granted access permission or granted select on this table to the user.
So that's also good uh authorization passes successfully and then this is where the credential vending comes into picture where the unity catalog now generates the temporary credential along with the storage part. So it's like having the address as well as the key. So I give both and then I tell the query engine okay go and fetch the data from this and by the way this is your key and then unity catalog kind of sideline itself from that whole process because it it doesn't need to do anything else.
So at that point access uh is done through the query engine kind of access that data through using that vended credential and sends the result back to the user. So today, Unity catalog is the most open, powerful and interoperable catalog for your data and AI assets. So with that now we I will hand it back to who will talk about how they have used UC open API in EDF. Thank you. Thank you. So why chosen UC open API? One of the reason I already told that we have some data bricks we have some consumer EDF consumer who are not using data bricks they are using AKS as a compute for them UC open API is a best sweet technology to query the UC catalog there are a couple of other drivers like cost and performance optimization now as we have two different computes available one is datab bricks one is uh AKS the consumers can pick and choose any one of them based on their performance and cost uh requirement for their given project.
Another key driver was fault uh fault tolerance and scalability. As we have two computes available right now. Now I can programmatically switch the computes between datab bricks and AKS in some kind of a you know erroneous scenarios that also gives fall tolerance as well as scalability both to the application. Extensibility and centralized monitoring is another driver. Extensibility is a little tricky. uh we seen over a period of time that some of the datab bricks utilities need some kind of customization based on very specific project needs.
Say for example DB util class. DB util has a lot of good utilities that you cannot change as if you are there in the datab bricks as a compute but if you are using AKS writing your own's custom code then you can you know customize those utilities as per your project need in fact we have built a library uh with all those you know customized functions and you know utilities that any application project team can you know include And then they can extend those further.
Centralized monitoring like in the previous world we have data factory as a orchestration framework data bricks log data factory logs and in between any system logs every logs were scattered right now if you use AKS and open API on top of it uh you can centralize all those logs. I'll share you in the next slides uh how you can centralize all the logs together to create a complete end to end infrastructure plus application monitoring dashboards.
Another key driver a very important driver is interperability and integration with third party applications. Now if you are using datab bricks most probably using you are using pispark or scala as your programming language to write your pipelines or you know data manipulation codes. But if you are using AKS and you are writing your own code so generally we use API to you know start the AKS nodes and cluster those APIs can be written in any language of your choice.
We have used first API as a Python based framework. But you can write that API in C or Java or any language and then API can be called from datafactory, airflow or any orchestration engine. Even if you have a say Java application or a react application wants to connect to integral you know meta store you can use the same API and the process to connect to the integral metas store and get the data. This gives a greater you know interoperability to the applications for you know if there's a heterogeneous platform if they want to talk to each other within catalog that gives that opportunity as well and what is the observation after all our testing.
So on the on the left hand side if you see some of the variables that we have used so we have used all partition tables from 4 GB to 10 GB in size. uh we have used DS4 v2 uh as a node in both datab bricks and AKS. On the AKS side we have used one to four node autoscaling cluster and one node without autoscaling clusters just to you know handle just measure how what the performances are. We have used read, upsert, append all these kind of you know modes and when we wrote the queries and when we executed the queries we have used few queries with no transformation at all and some of the queries has high to moderate transformation and we ran both of these in parallel both in UC and open API and uh and AKS and data bricks both the sides and what is our observation uh in terms of performance performance is pretty much similar between uh these two computes if you run the same you know load in both data bricks and AKS uh the performance is kind of similar in terms of cost it's basically twofold uh the VM cost in this particular case it is a standard DS4 V2BM the VM cost is kind of same between AKS and datab bricks but the main differentiator is the DBU uh DBU DBU cost as you know like datab bricks if you are running a job in in in data bricks they have you know there is a DBU cost associated with that but that is not applicable for AKS.
So that is the main you know key differentiator between these two environments. Now let me quickly walk you through uh the highle architecture how we have implemented open API and know how it is giving you know interoperability and you know centralized logging and stuff like that. So the user here is basically a developer. So a developer generally you know writes two types of code. One is the API code that I have spoken.
Uh this API code could be written in any language of your choice and they can also write uh raw you know open spark code to you know retrieve the data from open UC UC catalog. Both of these codes the developer checks into G and they authenticate to G with octa authentication and they check in the code there. Once the codes is checked in and the pull request is made after the pull request is approved uh the DevOps pipeline runs and it creates a docker image both for the API and for the uh Spark notebook.
Those docker images are pushed to the Azure container registry and the g authenticates to Azure container registry using mana service identity. So now in the ACR you have your both of your you know images are ready. One is the API image, one is the job image and the API image needs to be you know running all the time in one of your AKS you know cluster and you know waiting for you know some kind of an input. So then the developer next can write their orchestration pipeline.
The orchestration pipeline can be written in data factory airflow or even any kind of third party application wants to you know connect to catalog. So in our case we have used data factory. In the data factory we have used an web activity to call the API endpoint. So once the API endpoint is called it basically pulls the uh docker image the which has the spark notebook and this the python app is mentioned in the picture and that image is basically starts running into AKS cluster in one or multiple nodes based on the cluster configuration or the load in the system.
These jobs eventually you know talks to the UN catalog. We used service principle and P token based authentication to authenticate to the unity catalog and unity catalog is eventually connected to the storage uh with the external location and that's how the data gets retrieved by the end user. We have used log analytics as I was saying that central centralized logging and monitoring. We have used log analytics as centralized log analytics where you have kept the AKS infrastructure logs.
We have kept the Python app, the spark log, raw spark log and the fast API logs. So now you have you know one centralized location where you have all your logs available. So you can build a graphana dashboard on top of it to see end to end you know infrastructure versus your application logging in one single place. some of our lessons learned. Uh first one is UC open API still doesn't work with dynamic views. Uh so if you have written a dynamic view on UC to handle your granular level access control uh you cannot still call that with UC open API.
Another limitation that we saw is save a stable function. The data frame save a table function. If you are using save table function with UC open API, you have to pass the delta path as a parameter to that function. Without that parameter, the save table doesn't work. Now it comes with a little challenge because uh UC itself uses external location as a path and you are also sending a path to the service table function.
So you have to a little bit care you have to manage the path little carefully otherwise there could be a conflict. So we have reported this to datab bricks and datab bricks is working on it. So this will be fixed in one of their future releases. Aks infrastructure uh that's another challenge. It's it's not a challenge for everyone but if because the managing the entire AKS infrastructure uh the networking behind it and all the clusters pods and everything could become little bit of challenge for some of the teams based on their technical skills and stuff like that.
So these are the main three challenges we have seen so far otherwise it's working perfectly. This is a very high level you know code flow how the codes are organized and how it flows from end to end. So the user is the is the end user of the API that basically you know starts the API calls the API endpoint which you know in turn you know instantiate the spark cl instantiate the classes that you know starts the spark job that in you know eventually calls the port selector class uh which is basically responsible to you know read all the cluster and the uh spark configurations that we have and gives the object back to the spark job submit class which eventually creates the job into the kubernetes cluster.
These are how the configs looks like. On the left hand side uh you can see there is a cluster config ml which has you know small medium large size cluster configurations. You can play around with this number. You can you can tell like what is the minimum node, maximum node you need, what is the memory sizes and all those stuffs and the right side is the spark configuration EML which we have you know used to keep all our spark configuration that is required at the runtime.
These are the configuration file I was you know showing into the previous picture that the port selector class uses this configuration eventually to create the docker image and the clusters and the nodes accordingly. These are you know high level code snippet on how the UC open API is configured and the spark notebook the open spark notebook as you can see in the picture in the bottom there is a u red yellow star uh which shows uh how we have configured the UC open API.
This is the configuration file of the API application itself where we have kept the UC open API endpoint. Once you you know uh execute your open spark notebook which is a very you know gave a very you know crude example here just select start from a table and put the output in a delta in in a data frame. It could be as simple as that or you know it could be much more complex. When this part job you know executes it uses this open API endpoint to communicate to the UC meta store authenticate there and bring the data back.
These are some useful links u that once the on this is uploaded into the databicks you know uh website you can use these links to know more about uh UC open API and UC as a whole. So yep this is uh to to summarize all these things. So you see open API over a case gave us enough flexibility in terms of interoperability uh scalability fall tolerance and it also helped us to decouple compute from governance. We have actually moved one step closer to a truly fall tolerance open and secure data platform while enabling uh faster and cost effective data operation.
Thank you and we are open to hear any question you may have.
Learn more about the Databricks Data and AI platform.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.