<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Amit Gupta on Medium]]></title>
        <description><![CDATA[Stories by Amit Gupta on Medium]]></description>
        <link>https://medium.com/@guptaamitd?source=rss-6c4ba81e5339------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p8yxOj7pEnd8VHrowKs-9w.jpeg</url>
            <title>Stories by Amit Gupta on Medium</title>
            <link>https://medium.com/@guptaamitd?source=rss-6c4ba81e5339------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 07:09:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@guptaamitd/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why Monitoring Data Contracts is Crucial for Secure Data Sharing]]></title>
            <link>https://medium.com/data-cloud-architecture/why-monitoring-data-contracts-is-crucial-for-secure-data-sharing-45d5b138b5ce?source=rss-6c4ba81e5339------2</link>
            <guid isPermaLink="false">https://medium.com/p/45d5b138b5ce</guid>
            <category><![CDATA[snowflake-data-cloud]]></category>
            <category><![CDATA[cloud-data-architecture]]></category>
            <category><![CDATA[data-contract]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data-sharing]]></category>
            <dc:creator><![CDATA[Amit Gupta]]></dc:creator>
            <pubDate>Sat, 24 Aug 2024 11:14:55 GMT</pubDate>
            <atom:updated>2024-08-24T11:14:55.347Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1XbOIBCppRV-mDgwuk2bA.png" /></figure><p>Traditionally, data vendors and business partners (aka Asset Owning Business Entity) used methods like file sharing, APIs, and cross-org data pipes to deliver data assets to your organization (aka Asset Consuming Business Entity). However, there’s a growing shift towards modern, in-platform secure data sharing, pioneered by <a href="https://docs.snowflake.com/en/guides-overview-sharing">Snowflake</a> and now adopted by <a href="https://docs.aws.amazon.com/redshift/latest/dg/datashare-overview.html">AWS</a>, <a href="https://learn.microsoft.com/en-us/azure/data-share/overview">Azure</a>, <a href="https://cloud.google.com/bigquery/docs/analytics-hub-introduction#subscriber_workflow">Google</a>, and <a href="https://docs.databricks.com/en/delta-sharing/index.html#what-is-delta-sharing">Databricks</a>. As a team developing <a href="https://medium.com/data-cloud-architecture/the-data-cloud-architecture-defined-0a38937319dc">data cloud architecture</a> practices, we often receive requests to help organizations adapt to this shift and build reliable data-sourcing pipelines using data shares. In this article, learn how to avoid common pitfalls in data exchange with third parties by implementing data contracts and using modern, secure live data shares instead of traditional methods like APIs or FTP.</p><blockquote><strong>TL;DR</strong><br>Data sharing provides access to live data without downloading it into your infrastructure, thus eliminating storage and effort requirements compared to traditional methods. However, ensuring reliability is a joint responsibility, with both sides needing mechanisms to monitor schema drift, data change SLAs, and quality drift in data shares; review below artifacts for solutions. Consumers should also encourage the data share owners to define clear data contracts <a href="https://other-docs.snowflake.com/en/collaboration/collaboration-listings-about#what-is-a-listing">using listings</a>.</blockquote><blockquote>— <a href="https://www.snowflake.com/en/resources/white-paper/data-sharing-best-practices-managing-schema-drift-and-data-change-with-shared-data/">the best practices whitepaper</a>, <br> — <a href="https://quickstarts.snowflake.com/guide/monitor_schema_drift_in_data_shares_with_sharewatch/index.html#0">sharewatch app</a>, and <br> — <a href="https://docs.snowflake.com/en/user-guide/data-quality-intro">data quality functions</a></blockquote><h3>Secure Data Sharing Overview</h3><p>The key difference between traditional and modern secure data sharing lies in data access. Traditional methods require downloading the asset for querying, while modern secure data sharing enables direct querying without downloading. The asset physically stays in the owner’s instance but is securely accessible from the consumer’s instance through the platform’s secure sharing feature. This method enables quality checks, evaluations, development, or production use without extra time, effort, or storage, and provides access to a live data feed from the asset owner.</p><p>However, with the modern method of data access, consumers rely on asset owners to implement best practices to deliver assets reliably. Without proper care, consumers can encounter costly outages and missed SLAs.</p><h3>Define Data Contracts for Secure Data Sharing</h3><p>A data contract can effectively define agreements between an owner and consumer for each asset. The <a href="https://github.com/bitol-io/open-data-contract-standard/blob/main/docs/README.md#open-data-contract-standard">Open Data Contract Standard</a> covers the asset’s fundamentals, schema, quality, pricing, stakeholders, security, and SLAs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*WUVlY7vFd01ohoFZIqKlaw.png" /><figcaption>Data contracts as defined by ODCS v2.2</figcaption></figure><p>Modern data shares can be wrapped with rich metadata, known as a listing. Listings let owner document the agreed data contract values within the metadata and package them with the asset. This ensures users on the consumer platform know exactly what to expect as they review the asset, without relying on loose documentation stored elsewhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*_S1e0gY4bcOyH8xHe1hEdA.png" /><figcaption>A listing representing data contract values. (Visual courtesy <a href="https://medium.com/u/cc00850682ab">Matthias Nicola</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*7e7vBHqfkfepjHuzHAbdLg.png" /><figcaption>A listing representing data contract values. (Visual courtesy <a href="https://medium.com/u/cc00850682ab">Matthias Nicola</a>)</figcaption></figure><h3>Monitor Data Contracts for Secure Data Sharing</h3><p>The first part is defining a data contract in a listing. The next step is monitoring adherence to the data contract. Schema drifts, data changes (SLA), and quality drifts are types of drift in a data contract that can be breaking for data share consumers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*KvWPAebFa4na0r6ZbbSfQw.png" /><figcaption>The table defines drift types, their occurrence likelihood, and degree of impact to consumers</figcaption></figure><p><strong>What is schema drift?</strong></p><p>Schema drift occurs anytime there is a change to the data object structure.</p><p>To identify schema drift for both appends and alters, consumers need to know two things:</p><ol><li>Whether the structure changed from what it was before</li><li>What component of the structure changed: the schema, objects or attributes</li></ol><p><strong>What is data change (SLAs)?</strong></p><p>Data change occurs any time the records shared with consumers change due to operations such as inserts, updates, or deletes. Most consumers expect data drift with live shares because the key value of the live share is accessing the latest records from the owner.</p><p>For data changes, consumers need to know the following to reconcile data changes appropriately for their downstream processes:</p><ul><li>Whether the data has changed since they last read the data</li><li>Which records changed and when</li><li>Which DML operations — insert, update, delete — changed the data</li><li>Whether all data changes are complete</li></ul><p>This last bullet is especially important if the provider delivers data in periodic batches. Signaling that changes are complete allows consumers to reliably trigger consumer-side batch jobs. Examples of periodic batch data include end-of-day trades and inventory data.</p><p><strong>What is quality drift?</strong></p><p>Quality drift occurs when the quality of the data received over a period of time changes. Examples include changes to empty values in attributes, deviations from the expected values for a given attribute, and so on. Quality drift is a by-product of schema drift and data change.</p><h4><strong>Solution</strong></h4><p>Ensuring the reliability of data shares is a shared responsibility between owners and consumers. Owners carefully implement changes to schema and data, notifying consumers and providing mechanisms to track changes. <a href="https://www.snowflake.com/en/resources/white-paper/data-sharing-best-practices-managing-schema-drift-and-data-change-with-shared-data/">Snowflake’s best practices for managing schema drift and data changes whitepaper</a> outlines the necessary mechanisms for both owners and consumers to ensure reliable data sharing. Below is a visual from the whitepaper illustrating owner and consumer shared responsibilities for managing drift in schema and data change SLAs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*stej15KIGNufRC9ajcPjLg.png" /><figcaption>The whitepaper illustrates provider and consumer shared responsibilities for reliable data sharing</figcaption></figure><p><a href="https://quickstarts.snowflake.com/guide/monitor_schema_drift_in_data_shares_with_sharewatch/index.html">Sharewatch</a> is a Streamlit open-source app that alerts on schema breakage using the “information schema,” a standard in data sharing feature across platforms that consumers can leverage to monitor drift in the schema.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*5pm-EVSjyerATSPzI-l3Dg.png" /><figcaption>Sharewatch app designed to monitor schema drift using information schema snapshots</figcaption></figure><p>Once mechanisms to track schema and data changes are in place, data quality monitoring tools like <a href="https://docs.snowflake.com/en/user-guide/data-quality-intro">data quality functions</a> can track quality metrics defined by consumers on received data assets. The diagram below illustrates how an owner defines, captures, and shares data quality metrics with the consumer, who can also define and monitor their own metrics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*39xPR636-Bzgi0Zy9EnOxw.png" /><figcaption>Illustrates a provider and consumer workflow to monitor data quality drifts in data shares. (Visual courtesy <a href="https://medium.com/u/cc00850682ab">Matthias Nicola</a>)</figcaption></figure><h3>Conclusion and Call-to-Action</h3><p>Data sharing offers several advantages over traditional methods, including direct access to live data without the need for downloading and thus, reducing the effort and storage requirements. To fully leverage the advantages of modern data sharing over traditional methods,</p><ol><li>Owner business entities must define clear data contracts <a href="https://other-docs.snowflake.com/en/collaboration/collaboration-listings-about#what-is-a-listing">using listings</a>, wrapping data shares with its metadata. Consumer business entities should review the embedded metadata to understand expectations</li><li>The reliability of data shares is a shared responsibility that requires both providers and consumers to implement mechanisms for monitoring schema drift, data change SLAs, and quality drift. For solutions to handle the drifts in data shares, review <br> — <a href="https://www.snowflake.com/en/resources/white-paper/data-sharing-best-practices-managing-schema-drift-and-data-change-with-shared-data/">the best practices whitepaper</a>, <br> — <a href="https://quickstarts.snowflake.com/guide/monitor_schema_drift_in_data_shares_with_sharewatch/index.html#0">sharewatch app</a>, and <br> — <a href="https://docs.snowflake.com/en/user-guide/data-quality-intro">data quality functions</a></li></ol><p>By doing so, organizations can prevent disruptions and maintain the integrity of their data operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*ksaKMIVDHemMwkiJhnzpAw.png" /><figcaption>Owning business sends data share and agreed data contract using listing. Consuming business consumes the data object while periodically monitoring drifts in data contract SLA</figcaption></figure><h3><strong>References:</strong></h3><ul><li><a href="https://github.com/bitol-io/open-data-contract-standard?tab=readme-ov-file">GitHub - bitol-io/open-data-contract-standard: Home of the Open Data Contract Standard (ODCS).</a></li><li><a href="https://www.snowflake.com/en/resources/white-paper/data-sharing-best-practices-managing-schema-drift-and-data-change-with-shared-data/">Data Sharing Best Practices: Managing Schema Drift and Data Change with Shared Data</a></li><li><a href="https://quickstarts.snowflake.com/guide/monitor_schema_drift_in_data_shares_with_sharewatch/index.html#0">Monitor Schema Drift in Data Shares with Sharewatch</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45d5b138b5ce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-cloud-architecture/why-monitoring-data-contracts-is-crucial-for-secure-data-sharing-45d5b138b5ce">Why Monitoring Data Contracts is Crucial for Secure Data Sharing</a> was originally published in <a href="https://medium.com/data-cloud-architecture">Data Cloud Architecture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>