<?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 Manoj Rana on Medium]]></title>
        <description><![CDATA[Stories by Manoj Rana on Medium]]></description>
        <link>https://medium.com/@manoj.rana?source=rss-1b551f06a1a3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YRsdwZMzrduyIXgl_k_jQQ.png</url>
            <title>Stories by Manoj Rana on Medium</title>
            <link>https://medium.com/@manoj.rana?source=rss-1b551f06a1a3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 18:47:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manoj.rana/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[From Text to Decision: Bringing Intelligence into Banking Data Pipelines]]></title>
            <link>https://medium.com/@manoj.rana/from-text-to-decision-bringing-intelligence-into-banking-data-pipelines-be07fe36f314?source=rss-1b551f06a1a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/be07fe36f314</guid>
            <dc:creator><![CDATA[Manoj Rana]]></dc:creator>
            <pubDate>Wed, 02 Dec 2026 06:12:44 GMT</pubDate>
            <atom:updated>2026-12-02T06:12:44.033Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How Snowflake Decision can turn unstructured customer information into structured, actionable business assessments.</em></p><p>A customer writes:<em>“I don’t recognise this card payment. I never made this purchase.”</em></p><p>For a bank, this is more than a customer message. It could be a potential fraud case that needs investigation.</p><p>But how does a data platform understand the message, classify it and make it available to downstream systems?</p><p>Traditionally, banks rely on SQL rules, keyword matching, external AI services or manual investigation to interpret unstructured information.</p><p>What if we could bring this capability directly into the data pipeline?</p><p>This is where “<strong>Snowflake Decision”</strong> becomes interesting.</p><h3>1. The problem: Data is structured, but customer language isn’t</h3><p>Imagine a bank receiving thousands of customer disputes every day.</p><p>Consider three messages:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8kftGs6oDcPxF656N9gySw.png" /></figure><p>All three are disputes, but each requires a different operational response.</p><p>A traditional SQL implementation might look for predefined keywords:</p><pre>CASE<br>    WHEN LOWER(DISPUTE_DESCRIPTION) LIKE &#39;%charged twice%&#39;<br>        THEN &#39;DUPLICATE_TRANSACTION&#39;<br>    WHEN LOWER(DISPUTE_DESCRIPTION) LIKE &#39;%atm%&#39;<br>        THEN &#39;CASH_WITHDRAWAL&#39;<br>    WHEN LOWER(DISPUTE_DESCRIPTION) LIKE &#39;%fraud%&#39;<br>        THEN &#39;CARD_FRAUD&#39;<br>    ELSE &#39;OTHER&#39;<br>END AS DISPUTE_TYPE</pre><p>This works for known patterns.</p><p>But what happens when a customer says:</p><p><em>“The amount was deducted two times, but the shop only received one payment.”</em></p><p>The underlying problem is the same, but the wording is different.</p><p>As variations increase, rules become harder to maintain. Unmatched cases may require manual investigation or another AI service.</p><p>The challenge isn’t collecting the data. It is understanding what the data means.</p><h3>2. Introducing Snowflake Decision: From text to structured assessments</h3><p><strong><em>Snowflake Decision is a purpose-built model available through Snowflake Cortex AI for high-volume classification, scoring and decisioning.</em></strong></p><p>Instead of building rules for every possible variation in customer language, we define the business questions and assessment criteria.</p><p>For our banking example, we might ask:</p><ul><li>What type of dispute is this?</li><li>How urgently should it be handled?</li><li>How confident is the assessment?</li></ul><p>Snowflake Decision supports three assessment types:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gwfeLiA5JD8o9SG4ol8bCA.png" /></figure><p>The result is structured information that downstream SQL and applications can consume.</p><p>The important distinction: we are not asking the model to write a response to the customer. We are asking it to assess the information against defined business criteria.</p><h3>3. Where does it fit in the Medallion Architecture?</h3><p>The interesting part is that we don’t need to redesign our existing data platform.</p><p>We introduce decision intelligence into the Silver layer.</p><p><strong>Bronze — Capture</strong></p><p>Ingest raw transactions, customer complaints, digital banking interactions and supporting documents.</p><p><strong>Silver — Enrich and assess</strong></p><p>Standardise the data, bring related records together and use Snowflake Decision to assess unstructured customer descriptions.</p><p>This is where text becomes structured decision information.</p><p><strong>Gold — Publish</strong></p><p>Publish decision-enriched data products containing dispute classification, urgency, confidence and operational context.</p><p>These can be consumed by case-management applications, operational dashboards and downstream workflows.</p><p>The Medallion Architecture remains unchanged. The intelligence within the Silver layer evolves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xt-kehR3p5VXEnMXziEOng.png" /></figure><h3>4. Let’s implement it in Snowflake</h3><p>Consider the customer message:</p><p><em>“I don’t recognise this card payment. I never made this purchase.”</em></p><p>Assume our Bronze ingestion and Silver standardisation processes have already populated a table called SILVER_DISPUTES.</p><h3>Step 1 — Prepare the input</h3><pre>CREATE OR REPLACE TEMP TABLE SILVER_DISPUTES AS<br>SELECT *<br>FROM VALUES<br>(<br>    &#39;DSP1001&#39;,<br>    &#39;I do not recognise this card payment. I never made this purchase.&#39;<br>)<br>AS T(DISPUTE_ID, DISPUTE_DESCRIPTION);</pre><h3>Step 2 — Ask Snowflake Decision to assess the dispute</h3><p>We want to classify the dispute and assess its urgency in a single request.</p><pre>CREATE OR REPLACE TEMP TABLE DISPUTE_ASSESSMENTS AS<br>SELECT<br>    DISPUTE_ID,<br>    DISPUTE_DESCRIPTION,</pre><pre>    AI_COMPLETE(<br>        model =&gt; &#39;snowflake-decision&#39;,<br>        prompt =&gt; TO_JSON({<br>            &#39;state&#39;: DISPUTE_DESCRIPTION,<br>            &#39;questions&#39;: {<br>                &#39;dispute_type&#39;: {<br>                    &#39;type&#39;: &#39;choice&#39;,<br>                    &#39;instructions&#39;: &#39;Classify the customer dispute&#39;,<br>                    &#39;criteria&#39;: {<br>                        &#39;duplicate_transaction&#39;:<br>                            &#39;Customer reports being charged more than once&#39;,<br>                        &#39;card_fraud&#39;:<br>                            &#39;Customer reports an unauthorised card transaction&#39;,<br>                        &#39;cash_withdrawal&#39;:<br>                            &#39;Customer reports an ATM cash withdrawal issue&#39;,<br>                        &#39;merchant_dispute&#39;:<br>                            &#39;Customer disputes a purchase or merchant transaction&#39;,<br>                        &#39;other&#39;:<br>                            &#39;Other dispute types&#39;<br>                    }<br>                },<br>                &#39;urgency&#39;: {<br>                    &#39;type&#39;: &#39;score&#39;,<br>                    &#39;instructions&#39;: &#39;Assess operational urgency&#39;,<br>                    &#39;criteria&#39;: [<br>                        &#39;Normal processing&#39;,<br>                        &#39;Requires priority attention&#39;,<br>                        &#39;Requires immediate review&#39;<br>                    ]<br>                }<br>            }<br>        })<br>    ) AS ASSESSMENT</pre><pre>FROM SILVER_DISPUTES;</pre><p>Notice what we have done.</p><p>We provided the customer message as the state and defined the questions and criteria we want assessed.</p><p>Snowflake Decision returns structured answers rather than requiring us to interpret a free-form paragraph.</p><h3>Step 3 — Convert the assessment into business data</h3><p>Now we extract the answers and apply the bank’s operational rules.</p><pre>CREATE OR REPLACE TEMP TABLE GOLD_DISPUTE_CASES AS<br>SELECT<br>    DISPUTE_ID,<br>    DISPUTE_DESCRIPTION,</pre><pre>    ASSESSMENT:answers:dispute_type:choice::STRING<br>        AS DISPUTE_TYPE,</pre><pre>    ASSESSMENT:answers:dispute_type:confidence::FLOAT<br>        AS CLASSIFICATION_CONFIDENCE,</pre><pre>    ASSESSMENT:answers:urgency:score::FLOAT<br>        AS URGENCY_SCORE,</pre><pre>    ASSESSMENT:answers:urgency:confidence::FLOAT<br>        AS URGENCY_CONFIDENCE,</pre><pre>    CASE<br>        WHEN ASSESSMENT:answers:dispute_type:confidence::FLOAT &lt; 0.70<br>            THEN &#39;MANUAL_REVIEW&#39;</pre><pre>        WHEN ASSESSMENT:answers:urgency:score::FLOAT &gt;= 1.50<br>            THEN &#39;PRIORITY_INVESTIGATION&#39;</pre><pre>        ELSE &#39;STANDARD_PROCESSING&#39;<br>    END AS PROCESSING_QUEUE</pre><pre>FROM DISPUTE_ASSESSMENTS;</pre><p>The confidence and urgency thresholds are illustrative bank-defined rules, not Snowflake defaults. They must be calibrated and validated before production use.</p><h3>Step 4 — Publish the Gold data product</h3><pre>SELECT<br>    DISPUTE_ID,<br>    DISPUTE_TYPE,<br>    CLASSIFICATION_CONFIDENCE,<br>    URGENCY_SCORE,<br>    URGENCY_CONFIDENCE,<br>    PROCESSING_QUEUE<br>FROM GOLD_DISPUTE_CASES;</pre><p>For our example, the expected business interpretation could be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*Prqg4ig1AdUwjzHYPp5cCg.png" /></figure><p>These are illustrative outcomes, not actual model responses.</p><p>The Gold data product can now be consumed by the bank’s case-management platform and operational reporting processes.</p><p>The bank’s approved business rules and investigation procedures still determine the actual action. Snowflake Decision does not independently establish fraud or approve a refund.</p><h3>5. What value does this bring?</h3><p>Let’s compare the approaches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FQiClP3DDO8EH0zSG0wEVA.png" /></figure><p>The value is not simply introducing another AI model.</p><p>It is the opportunity to:</p><ul><li>Reduce the need to maintain increasingly complex keyword rules.</li><li>Enrich Silver-layer data with structured assessments.</li><li>Create reusable decision-enriched Gold data products.</li><li>Prioritise operational cases.</li><li>Direct uncertain assessments to human review.</li></ul><p>Snowflake Decision is not a replacement for SQL, traditional fraud models, rules engines or general-purpose LLMs. Each has a different role.</p><p>The opportunity is to use the right capability for the right task.</p><h3>6. The bigger picture</h3><p>The Medallion Architecture has helped banks build trusted data platforms.</p><p>But the next opportunity is to make those platforms more capable of understanding the information flowing through them.</p><p>Think about the transformation:</p><p><strong>TEXT</strong></p><p>“I don’t recognise this card payment.”</p><p>↓</p><p><strong>DECISION</strong></p><p>Classification: Card fraud</p><p>Urgency: Immediate review</p><p>Confidence: Model-generated assessment</p><p>↓</p><p><strong>ACTION</strong></p><p>Route to the fraud investigation process, subject to the bank’s approved controls.</p><p>That is the value of Snowflake Decision.</p><p>It turns unstructured information into structured assessments that existing data products and business applications can use.</p><p><strong>Bronze captures. Silver enriches. Gold serves. And Snowflake Decision helps bridge the gap between text and action.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be07fe36f314" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rethinking Test Data: Using Snowflake Synthetic Data to Reduce Upstream Dependencies]]></title>
            <link>https://medium.com/@manoj.rana/rethinking-test-data-using-snowflake-synthetic-data-to-reduce-upstream-dependencies-427151c5f52d?source=rss-1b551f06a1a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/427151c5f52d</guid>
            <dc:creator><![CDATA[Manoj Rana]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 01:04:17 GMT</pubDate>
            <atom:updated>2026-11-26T01:05:15.468Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to enable independent team testing, validate end-to-end data pipelines and build a more scalable enterprise test-data strategy.</em></p><h3>The hidden cost of test data</h3><p>In a modern enterprise data platform, delivery rarely depends on one team.</p><p>Consider a banking data platform that consumes information from Customer, Account, Transaction, Loan, Payment and several other source systems.</p><p>Each source system has its own owner, release cycle, data model and non-production environment.</p><p>When a data engineering team needs representative data, it may have to wait for an upstream team to provision an environment, refresh data, arrange access or resolve an integration issue.</p><p>Now multiply that dependency across ten upstream systems.</p><p>The result is familiar:</p><ul><li>Development teams wait for test data.</li><li>Non-production environments need to be maintained.</li><li>Data refreshes require coordination.</li><li>Different teams work with different versions of test data.</li><li>Integration defects are sometimes discovered late in the delivery cycle.</li></ul><p>The problem is not simply the absence of test data. It is the effort required to create, maintain and coordinate it across organisational boundaries.</p><p><strong>What if test data could be generated and managed as a shared capability within the data platform itself?</strong></p><p>Snowflake Synthetic Data Generation offers an interesting way to approach this challenge.</p><h3>A different way to think about test data</h3><p>Snowflake provides the GENERATE_SYNTHETIC_DATA stored procedure under SNOWFLAKE.DATA_PRIVACY.</p><p>It generates artificial datasets based on the characteristics of existing source tables. These datasets can retain useful statistical properties and relationships without simply copying every source record.</p><p>But the real opportunity is not just generating synthetic records.</p><p>It is changing how teams access and use test data.</p><p>There are two complementary patterns worth considering.</p><h3>1. Independent datasets for team-level testing</h3><p>Imagine three teams working on different parts of a banking data platform:</p><ul><li>Customer data team</li><li>Account data team</li><li>Reporting and analytics team</li></ul><p>Instead of waiting for all upstream systems to provide data, synthetic datasets can be generated independently from selected production RAW, Integrated and Curated tables.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*1mrM_IsY9kgGLtrDe_gKEg.png" /></figure><p>Each team gets a dataset representative of the layer it is working on.</p><p>This enables development, query validation, component testing and downstream application testing to proceed independently.</p><p>There is an important distinction here: independently generated layer datasets are test fixtures. They are not necessarily mutually consistent and they do not prove that the current transformation pipeline would produce those exact downstream records.</p><p>That is why a second pattern is equally important.</p><h3>2. RAW-driven testing for end-to-end assurance</h3><p>For end-to-end validation, generate synthetic source-shaped data at the RAW layer and then execute the actual transformation logic.</p><p>The flow remains unchanged:</p><p><strong>Customer / Account / Transaction → RAW → Integrated → Curated</strong></p><p>The difference is that the input data is synthetic.</p><p>The existing SQL, dbt models, business rules, joins and data-quality checks still execute.</p><p>This provides a much stronger validation of the actual data pipeline.</p><p>The distinction is simple:</p><ul><li>Independent synthetic datasets help teams work faster.</li><li>RAW-driven synthetic datasets help validate the real pipeline.</li></ul><p>A mature enterprise strategy should use both.</p><h3>A practical banking example</h3><p>Consider a banking platform receiving Customer, Account and Transaction events through Kafka.</p><p>The data platform processes these events into three layers:</p><p><strong>RAW:</strong> Source-aligned records.</p><p><strong>Integrated:</strong> Standardised and integrated customer, account and transaction information.</p><p><strong>Curated:</strong> Business-ready datasets for reporting, analytics and downstream consumption.</p><p>A synthetic-data approach could support the following scenarios:</p><ol><li>Customer team develops using synthetic Customer records.</li><li>Account team tests account-related logic using synthetic Account data.</li><li>Reporting team validates queries against synthetic Curated datasets.</li><li>The integration team generates synthetic Customer, Account and Transaction records at RAW.</li><li>Existing transformations execute to populate Integrated and Curated.</li><li>Automated checks validate relationships, business rules and expected outputs.</li></ol><p>This reduces unnecessary dependencies without compromising the need for end-to-end testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0OtArROL_I1SIjgDQ1dj4A.png" /></figure><h3>Actual implementation using Snowflake</h3><p>Let’s look at how this could be implemented.</p><p>The following examples use illustrative database and table names. They should be adapted to the actual schemas, column classifications and access model.</p><h3>Step 1: Check the prerequisites</h3><p>Before implementing the feature, confirm:</p><ul><li>Snowflake Enterprise Edition or higher.</li><li>Anaconda terms and conditions have been accepted in the account.</li><li>Input tables meet the documented row and column requirements.</li><li>The execution role has the required privileges.</li><li>Output schemas are created in the appropriate non-production database.</li></ul><p>The procedure requires access to the input tables and permission to create and own the output tables.</p><p>For example, the target structure could be:</p><pre>CREATE DATABASE IF NOT EXISTS BANK_TEST_DB;</pre><pre>CREATE SCHEMA IF NOT EXISTS BANK_TEST_DB.SYNTHETIC_RAW;<br>CREATE SCHEMA IF NOT EXISTS BANK_TEST_DB.SYNTHETIC_INTEGRATED;<br>CREATE SCHEMA IF NOT EXISTS BANK_TEST_DB.SYNTHETIC_CURATED;</pre><p>The generated datasets should be published into controlled test schemas rather than mixed with production objects.</p><h3>Step 2: Generate an independent synthetic dataset</h3><p>Suppose the Customer RAW table contains:</p><ul><li>CUSTOMER_ID</li><li>CUSTOMER_TYPE</li><li>CUSTOMER_STATUS</li><li>CUSTOMER_AGE</li><li>CREATED_DATE</li></ul><p>A synthetic version can be generated using:</p><pre>CALL SNOWFLAKE.DATA_PRIVACY.GENERATE_SYNTHETIC_DATA({<br>    &#39;datasets&#39;: [<br>        {<br>            &#39;input_table&#39;:<br>                &#39;BANK_PROD_DB.RAW.CUSTOMER&#39;,</pre><pre>            &#39;output_table&#39;:<br>                &#39;BANK_TEST_DB.SYNTHETIC_RAW.CUSTOMER&#39;,</pre><pre>            &#39;columns&#39;: {<br>                &#39;CUSTOMER_ID&#39;: {<br>                    &#39;join_key&#39;: TRUE<br>                }<br>            }<br>        }<br>    ],<br>    &#39;replace_output_tables&#39;: TRUE<br>});</pre><p>This creates a synthetic Customer table in the test database.</p><p>The Customer ID is configured as a join key so that Snowflake generates artificial values while maintaining the relationship mapping required for joins within the generation run.</p><p>The same approach can be used to create independent datasets from Integrated and Curated tables.</p><p>For example:</p><pre>CALL SNOWFLAKE.DATA_PRIVACY.GENERATE_SYNTHETIC_DATA({<br>    &#39;datasets&#39;: [<br>        {<br>            &#39;input_table&#39;:<br>                &#39;BANK_PROD_DB.INTEGRATED.ACCOUNT&#39;,</pre><pre>            &#39;output_table&#39;:<br>                &#39;BANK_TEST_DB.SYNTHETIC_INTEGRATED.ACCOUNT&#39;,</pre><pre>            &#39;columns&#39;: {<br>                &#39;ACCOUNT_ID&#39;: {<br>                    &#39;join_key&#39;: TRUE<br>                },<br>                &#39;CUSTOMER_ID&#39;: {<br>                    &#39;join_key&#39;: TRUE<br>                }<br>            }<br>        }<br>    ],<br>    &#39;replace_output_tables&#39;: TRUE<br>});</pre><p>This gives the Account team a dataset to work with without waiting for the Customer team’s non-production environment.</p><p><strong>One consideration:</strong> if datasets are generated in separate calls, do not assume their generated join keys will match. Cross-table consistency needs to be deliberately configured.</p><h3>Step 3: Preserve relationships across multiple tables</h3><p>This is particularly important in banking data.</p><p>A Customer can have multiple Accounts, and an Account can have multiple Transactions.</p><p>If these relationships are not preserved, the generated datasets may be statistically useful but unsuitable for realistic end-to-end testing.</p><p>Snowflake allows multiple input/output table pairs to be passed in a single procedure call. The same join-key configuration should be applied to matching columns across the tables.</p><p>For example:</p><pre>CALL SNOWFLAKE.DATA_PRIVACY.GENERATE_SYNTHETIC_DATA({<br>    &#39;datasets&#39;: [<br>        {<br>            &#39;input_table&#39;:<br>                &#39;BANK_PROD_DB.RAW.CUSTOMER&#39;,</pre><pre>            &#39;output_table&#39;:<br>                &#39;BANK_TEST_DB.SYNTHETIC_RAW.CUSTOMER&#39;,</pre><pre>            &#39;columns&#39;: {<br>                &#39;CUSTOMER_ID&#39;: {<br>                    &#39;join_key&#39;: TRUE<br>                }<br>            }<br>        },<br>        {<br>            &#39;input_table&#39;:<br>                &#39;BANK_PROD_DB.RAW.ACCOUNT&#39;,</pre><pre>            &#39;output_table&#39;:<br>                &#39;BANK_TEST_DB.SYNTHETIC_RAW.ACCOUNT&#39;,</pre><pre>            &#39;columns&#39;: {<br>                &#39;ACCOUNT_ID&#39;: {<br>                    &#39;join_key&#39;: TRUE<br>                },<br>                &#39;CUSTOMER_ID&#39;: {<br>                    &#39;join_key&#39;: TRUE<br>                }<br>            }<br>        },<br>        {<br>            &#39;input_table&#39;:<br>                &#39;BANK_PROD_DB.RAW.TRANSACTION&#39;,</pre><pre>            &#39;output_table&#39;:<br>                &#39;BANK_TEST_DB.SYNTHETIC_RAW.TRANSACTION&#39;,</pre><pre>            &#39;columns&#39;: {<br>                &#39;TRANSACTION_ID&#39;: {<br>                    &#39;join_key&#39;: TRUE<br>                },<br>                &#39;ACCOUNT_ID&#39;: {<br>                    &#39;join_key&#39;: TRUE<br>                }<br>            }<br>        }<br>    ],<br>    &#39;replace_output_tables&#39;: TRUE<br>});</pre><p>This example generates the three related datasets in one run.</p><p>The important configuration is the consistent treatment of CUSTOMER_ID, ACCOUNT_ID and other shared keys.</p><p>Snowflake documents support for consistent join-key values across tables in a single generation run. For string join keys that need to remain consistent across multiple runs, a symmetric-key SECRET can be supplied through consistency_secret.</p><p>This is useful when test datasets are refreshed regularly but downstream test scenarios depend on stable synthetic identifiers.</p><p>Note that the example assumes the source columns are eligible for join-key treatment. Validate the actual column types and configuration before running it.</p><h3>Step 4: Execute the real transformation pipeline</h3><p>This is where the approach becomes particularly valuable.</p><p>Once synthetic Customer, Account and Transaction records are available in the RAW test schema, execute the existing transformation pipeline.</p><p>For example:</p><pre>-- Illustrative orchestration only.</pre><pre>CALL TRANSFORM_CUSTOMER_RAW_TO_INTEGRATED();</pre><pre>CALL TRANSFORM_ACCOUNT_RAW_TO_INTEGRATED();</pre><pre>CALL TRANSFORM_TRANSACTION_RAW_TO_INTEGRATED();</pre><pre>CALL BUILD_CURATED_BANKING_DATA();</pre><p>These procedure names are placeholders for the existing orchestration and transformation jobs.</p><p>The important point is that the same SQL or dbt transformations used by the normal platform should execute against the synthetic RAW datasets.</p><p>The resulting flow becomes:</p><pre>Synthetic Customer<br>Synthetic Account<br>Synthetic Transaction<br>          |<br>          v<br>     TEST RAW<br>          |<br>          v<br> Existing transformations<br>       / dbt models<br>          |<br>          v<br>  TEST INTEGRATED<br>          |<br>          v<br>  TEST CURATED<br>          |<br>          v<br>  Data quality checks</pre><p>This validates more than the availability of test records.</p><p>It validates whether the platform can correctly transform, integrate and publish the data.</p><h3>Step 5: Validate the generated data</h3><p>Synthetic data should not be considered ready for consumption immediately after generation.</p><p>The output needs validation.</p><p>For example, check whether every Account has a corresponding Customer:</p><pre>SELECT COUNT(*) AS INVALID_ACCOUNT_COUNT<br>FROM BANK_TEST_DB.SYNTHETIC_INTEGRATED.ACCOUNT A<br>LEFT JOIN BANK_TEST_DB.SYNTHETIC_INTEGRATED.CUSTOMER C<br>    ON A.CUSTOMER_ID = C.CUSTOMER_ID<br>WHERE C.CUSTOMER_ID IS NULL;</pre><p>Check whether every Transaction has a corresponding Account:</p><pre>SELECT COUNT(*) AS INVALID_TRANSACTION_COUNT<br>FROM BANK_TEST_DB.SYNTHETIC_RAW.TRANSACTION T<br>LEFT JOIN BANK_TEST_DB.SYNTHETIC_RAW.ACCOUNT A<br>    ON T.ACCOUNT_ID = A.ACCOUNT_ID<br>WHERE A.ACCOUNT_ID IS NULL;</pre><p>Additional checks should cover:</p><ul><li>Required columns and data types.</li><li>Expected record counts and distributions.</li><li>Referential integrity.</li><li>Business rules and valid state transitions.</li><li>Expected aggregation results.</li><li>Data-quality rules already used by the platform.</li></ul><p>The goal is to ensure the generated dataset is useful for the intended test scenario, not simply that the procedure completed successfully.</p><h3>Step 6: Introduce a repeatable refresh process</h3><p>A one-time generation is useful for a proof of concept. An enterprise capability needs repeatability.</p><p>A scheduled workflow could look like this:</p><ol><li>Identify approved source tables.</li><li>Compare current source metadata with the last approved schema snapshot.</li><li>Check whether a schema change requires configuration updates.</li><li>Run synthetic data generation.</li><li>Execute the transformation pipeline where required.</li><li>Run data-quality and privacy validation.</li><li>Publish the new dataset version.</li><li>Record generation metadata and retire older versions according to retention policy.</li></ol><p>Snowflake does not automatically monitor production schema changes and regenerate synthetic outputs. This orchestration needs to be implemented separately, using metadata comparison, a scheduled task or an existing orchestration platform.</p><h3>Important considerations before adopting this approach</h3><p>There are several limitations worth understanding.</p><h3>1. Synthetic does not automatically mean anonymous</h3><p>This is probably the most important consideration in a banking environment.</p><p>Snowflake’s behaviour depends on column types and configuration.</p><p>Categorical string columns can retain actual values from the source. Non-categorical strings are redacted by default unless an appropriate replacement is configured.</p><p>Therefore, sensitive columns must be explicitly reviewed. A generated dataset should not be assumed to be anonymous or compliant simply because it is synthetic.</p><p>The optional similarity_filter can remove generated rows that are too similar to source records, using nearest-neighbour distance measures. However, it is not a substitute for privacy review. It also has a documented requirement that all non-string input columns contain non-NULL values when enabled.</p><h3>2. Kafka integration still needs separate testing</h3><p>Generating synthetic tables inside Snowflake does not validate Kafka connectivity, event ordering, consumer behaviour, retries, schema registry compatibility or CDC.</p><p>If these are part of the test scope, generate synthetic events and publish them to TEST Kafka topics.</p><p>The synthetic-data capability complements integration testing; it does not replace it.</p><h3>3. Understand the feature limits</h3><p>The current Snowflake documentation identifies these constraints:</p><ul><li>Enterprise Edition or higher.</li><li>Maximum five input/output table pairs per call.</li><li>Minimum 20 distinct input rows.</li><li>Maximum 100 columns per input table.</li><li>Maximum 14 million input rows.</li><li>Unsupported column types return NULL values.</li><li>TIMESTAMP_TZ is not among the supported timestamp types.</li></ul><p>For example, VARIANT Kafka payloads should not be assumed to work directly. Project the required attributes into supported typed columns or use a separate synthetic event-generation mechanism.</p><p>These limits should be checked against the current documentation and the actual target account before implementation.</p><h3>4. Control access to production inputs</h3><p>The procedure uses the caller’s rights. The role executing it needs access to the source data.</p><p>That means the generation process itself needs appropriate RBAC controls, restricted execution roles, approved source tables, controlled secrets and governed output schemas.</p><p>The objective is to reduce exposure of production data, not create another uncontrolled route to it.</p><h3>What does this change for an enterprise data platform?</h3><p>The biggest benefit is not the ability to generate artificial records. It is the opportunity to reduce the operational dependency between teams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8JCca7muSJT5jNyzsQ_HWQ.png" /></figure><p>The benefits should be measured rather than assumed. Useful indicators include time taken to provision test data, upstream coordination effort, refresh effort, test coverage and defects identified before integration.</p><h3>The bigger opportunity</h3><p>The goal is not to eliminate every non-production source environment.</p><p>Some integration tests will always need real interfaces, realistic event behaviour and source-system participation.</p><p>The opportunity is to stop making every team depend on those environments for every stage of development.</p><p>Combining independent synthetic datasets with RAW-driven end-to-end validation creates a more balanced testing strategy:</p><ul><li>Teams can work in parallel.</li><li>Test data can be governed centrally.</li><li>Data relationships can be deliberately maintained.</li><li>Existing transformations remain part of the assurance process.</li><li>Production-data exposure can be better controlled.</li></ul><p><strong>Synthetic data should not just be viewed as a way to create test records. It can become a shared enterprise capability that changes how data teams develop, test and deliver.</strong></p><h3>Further reading</h3><ul><li><a href="https://docs.snowflake.com/en/user-guide/synthetic-data">Snowflake — Using Synthetic Data</a></li><li><a href="https://docs.snowflake.com/en/sql-reference/stored-procedures/generate_synthetic_data">Snowflake — GENERATE_SYNTHETIC_DATA SQL Reference</a></li></ul><p><em>The SQL examples are illustrative and are created to give you a fair idea of implementation.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=427151c5f52d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6 Principles for Securing Enterprise AI Agents]]></title>
            <link>https://medium.com/@manoj.rana/6-principles-for-securing-enterprise-ai-agents-9ee71b19d626?source=rss-1b551f06a1a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ee71b19d626</guid>
            <dc:creator><![CDATA[Manoj Rana]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 18:04:50 GMT</pubDate>
            <atom:updated>2026-11-25T18:04:50.756Z</atom:updated>
            <content:encoded><![CDATA[<p><em>AI agents are no longer just answering questions. They are accessing data, executing code and taking actions. Is your security model ready?</em></p><p>Traditional enterprise security focused on one fundamental question:</p><p><strong>Who can access the data?</strong></p><p>With AI agents, that is no longer enough.</p><p>Imagine a customer service agent that retrieves customer records, checks transaction history, summarises complaints and triggers follow-up actions. It may perform all these operations with minimal human intervention.</p><p>But who is accountable for its actions? What data can it access? And what happens if someone manipulates its instructions?</p><p>Here are <strong>six principles </strong>organisations should consider before putting AI agents into production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B59cpe77xhlB5jeuaWYivQ.png" /></figure><h3>1. Give every agent an identity</h3><p>An agent’s activity should be distinguishable from human activity. Organisations need to know which agent performed an action and on whose behalf.</p><p><strong>Example:</strong> A customer service agent accesses a customer account and retrieves transaction details. The audit trail should identify the agent responsible, rather than simply showing activity under a shared service account.</p><p><strong>Snowflake connection:</strong> Agent Identity helps establish distinct identity context for agent activity.</p><h3>2. Apply least privilege</h3><p>An agent should only have access to the data, roles and tools required for its specific task.</p><p><strong>Example:</strong> An HR assistant answering leave-related questions needs access to leave balances and policies. It should not automatically have access to employee salary or banking information.</p><p><strong>Snowflake connection:</strong> Use RBAC and carefully scoped permissions to restrict what agents can access.</p><h3>3. Never blindly trust instructions</h3><p>Prompt injection can manipulate an agent through malicious instructions embedded in documents, web pages or user inputs.</p><p><strong>Example:</strong> An agent summarising an uploaded document encounters hidden instructions asking it to reveal confidential information. The agent must recognise and resist those instructions rather than blindly follow them.</p><p><strong>Snowflake connection:</strong> Horizon AI Guardrails help protect against prompt injection and jailbreak attempts.</p><h3>4. Protect data beyond access</h3><p>Authorised access does not mean unrestricted data movement.</p><p><strong>Example:</strong> An agent retrieves customer information legitimately but attempts to send sensitive records to an external endpoint. Organisations need controls to prevent or detect that movement.</p><p><strong>Snowflake connection:</strong> Data movement policies and exfiltration protection help address this risk.</p><h3>5. Isolate agent execution</h3><p>AI-generated code should never be trusted automatically, particularly when agents can execute commands or interact with local resources.</p><p><strong>Example:</strong> A developer asks an AI coding assistant to run a script. The script attempts to access local credentials or files outside its intended working environment. Sandboxing can help restrict that activity.</p><p><strong>Snowflake connection:</strong> CoCo CLI Sandbox introduces isolation and resource limits for AI-assisted development workflows.</p><h3>6. Make security continuous</h3><p>AI security is not a one-time configuration exercise. Agent permissions, integrations and behaviour can change as adoption grows.</p><p><strong>Example:</strong> An organisation deploys five agents initially. Six months later, it has fifty agents across multiple teams. Without continuous visibility, excessive permissions and configuration gaps can go unnoticed.</p><p><strong>Snowflake connection:</strong> Trust Center is evolving to provide greater visibility into AI security posture and remediation.</p><h3>Bringing it all together</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*q941O7wquDBEgtAwSp2i9Q.png" /></figure><p>The bigger lesson applies beyond Snowflake.</p><p><strong>Don’t just secure the data your AI agents access. Secure their identity, instructions, permissions, execution and actions.</strong></p><p>The future of enterprise AI will depend not only on how intelligent our agents become, but on how securely we allow them to act.</p><p><em>Snowflake Simplified | Practical insights on Snowflake, data platforms and enterprise AI.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ee71b19d626" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Paying for the Same AI Prompt Twice.]]></title>
            <link>https://medium.com/@manoj.rana/stop-paying-for-the-same-ai-prompt-twice-e6ec29cfa85a?source=rss-1b551f06a1a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6ec29cfa85a</guid>
            <dc:creator><![CDATA[Manoj Rana]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 02:53:06 GMT</pubDate>
            <atom:updated>2026-11-24T02:53:06.588Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Snowflake Cortex Prompt Caching: A simple optimisation that could make a big difference to AI costs at scale.</em></strong></p><p>Imagine processing 100,000 banking transactions using an LLM.</p><p>For every transaction, you send the same instructions:</p><ul><li>Identify the transaction category.</li><li>Apply banking classification rules.</li><li>Return the result in JSON.</li></ul><p>Only the transaction details change.</p><p>Yet the model keeps receiving the same instructions.</p><p><strong>Why pay to process the same instructions over and over again?</strong></p><h3>The idea: Reuse what doesn’t change</h3><p>Snowflake Cortex supports automatic prompt caching for AI_COMPLETE.</p><p>Instead of repeatedly processing an identical prompt prefix, Snowflake can reuse previously processed content.</p><p>Think about the difference.</p><p><strong>Without Prompt Caching</strong></p><p>Every request processes the same instructions again.</p><pre>Request 1: Instructions + Transaction 1<br>Request 2: Instructions + Transaction 2<br>Request 3: Instructions + Transaction 3</pre><p><strong>With Prompt Caching</strong></p><p>The shared instructions can be reused when cache hits occur.</p><pre>SHARED INSTRUCTIONS<br>                  |<br>             Cached Prefix<br>                  |<br>        +---------+---------+<br>        |         |         |<br>   Transaction Transaction Transaction<br>        1         2         3<br>        |         |         |<br>       AI        AI        AI</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fLKaoIPzdLqHqfNoSZis_Q.png" /></figure><p>The potential benefits:</p><ul><li>Up to <strong>97.5% discount on cached input tokens</strong> compared with standard input pricing.</li><li>Reduced latency for eligible workloads.</li><li>No manual cache configuration or SQL changes required.</li></ul><h3>One small change developers should make</h3><p>Put reusable instructions first and changing data last.</p><p>For example:</p><pre>SELECT AI_COMPLETE(<br>    &#39;supported-model&#39;,<br>    CONCAT(<br>        &#39;You are a banking transaction analyst. &#39;,<br>        &#39;Classify transactions into categories. &#39;,<br>        &#39;Return valid JSON. &#39;,<br>        &#39;Transaction: &#39;,<br>        MERCHANT,<br>        &#39; Amount: &#39;,<br>        AMOUNT<br>    )<br>)<br>FROM BANK_TRANSACTIONS;</pre><p>The classification instructions remain consistent. Only the transaction details change.</p><p>Snowflake can identify the common leading prompt content and reuse it when caching conditions are met.</p><p><strong>The takeaway: Design prompts for reuse, not just for accuracy.</strong></p><h3>Three things worth knowing</h3><ol><li><strong>Supported models only:</strong> Prompt caching is available for eligible AI_COMPLETE models, not every model or Cortex AI Function.</li><li><strong>Exact matching matters:</strong> Changes to the leading prompt content can result in a cache miss. Minimum prompt length also applies.</li><li><strong>Caching is best effort:</strong> Cached prefixes are typically retained for around five minutes, and cache hits are not guaranteed.</li></ol><p>You can measure cached input-token usage through CORTEX_AI_FUNCTIONS_USAGE_HISTORY, rather than simply assuming you are saving money.</p><p>One more distinction: prompt caching reuses common instructions across different requests. Response caching reuses identical AI_COMPLETE results within a query. They solve different problems.</p><h3>The bigger picture</h3><p>As AI workloads move from prototypes to millions of records, prompt design becomes a cost optimisation decision.</p><p>Sometimes reducing AI costs doesn’t require a smaller model or a complex architecture.</p><p>Sometimes it starts with a much simpler question:</p><p><strong>Why are we paying the model to read the same instructions again?</strong></p><p><strong>Further reading</strong></p><ul><li><a href="https://docs.snowflake.com/en/user-guide/snowflake-cortex/aisql-caching">Snowflake Cortex AI Functions — Caching</a></li><li><a href="https://docs.snowflake.com/en/release-notes/2026/other/2026-11-18-cortex-prompt-caching">Prompt Caching — Snowflake</a></li></ul><p><em>Snowflake Simplified | Practical insights on Snowflake architecture, data engineering and enterprise AI.</em></p><p><a href="https://snowflakesimplified.netlify.app/">https://snowflakesimplified.netlify.app/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6ec29cfa85a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 1 with Snowflake AI: Innovation Starts Immediately. So Does Consumption.]]></title>
            <link>https://medium.com/@manoj.rana/day-1-with-snowflake-ai-innovation-starts-immediately-so-does-consumption-b56db60386f6?source=rss-1b551f06a1a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b56db60386f6</guid>
            <dc:creator><![CDATA[Manoj Rana]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 07:52:46 GMT</pubDate>
            <atom:updated>2026-11-20T07:52:46.222Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Exploring why AI consumption governance should start alongside AI adoption, not months later.</em></p><p>Imagine enabling a new AI capability in your Snowflake account on Monday.</p><p>By Tuesday, developers are experimenting with it. By Wednesday, someone has followed a Quickstart and built a proof of concept. By Friday, other teams want access.</p><p>Sounds like successful adoption, doesn’t it?</p><p>Now ask a different question.</p><p><strong>Who is keeping track of the consumption?</strong></p><p>The reality is that enabling AI is becoming increasingly easy. But putting the right governance, monitoring and cost controls in place takes considerably longer.</p><p>And while organisations are working through those processes, AI consumption is already happening.</p><p>This is the challenge I find particularly interesting in Snowflake’s recent developments around per-user quotas and individual quota overrides.</p><p>They point towards an important shift: making AI accessible is one thing. Making its consumption manageable is another.</p><h3>The problem: AI adoption moves faster than governance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IXBzPVd8ShEEy1TY_l8HMQ.png" /></figure><p>Consider an organisation introducing Snowflake AI capabilities to its development teams.</p><p>Data analysts start experimenting with AI Functions. Developers explore Cortex Agents. Data engineers use AI-assisted development tools. Business teams begin identifying opportunities to automate existing workflows.</p><p>Everyone is excited about the possibilities.</p><p>But soon, consumption is spread across multiple users, teams and AI services.</p><p>Developers are testing prompts repeatedly. Agents are executing multiple operations. Teams are experimenting with different approaches.</p><p>Meanwhile, the organisation is still working on its AI governance framework.</p><p>Cost allocation, usage policies, approval processes and monitoring dashboards all take time to establish.</p><p>Should organisations restrict AI access until everything is ready?</p><p>Or is there a better way to encourage experimentation while maintaining financial control?</p><p>I believe the answer is to introduce consumption guardrails from Day 1.</p><h3>A practical example: What happens when an organisation enables Snowflake CoCo?</h3><p>Imagine an organisation making Snowflake CoCo available to its developers.</p><p>People discover it through Snowsight, CLI and Desktop. Some use it occasionally, while others rely on it throughout their development activities.</p><p>The platform team becomes concerned about consumption.</p><p>One option is to restrict or disable functionality until the organisation has agreed on its governance policies.</p><p>But there is another approach.</p><p>Administrators can establish access controls and consumption limits, monitor individual usage and provide additional capacity to selected users when required.</p><p>This is where Snowflake’s per-user quota capabilities become particularly interesting.</p><p>And importantly, these capabilities are not limited to CoCo. They extend to other supported AI resources, including Cortex Agents and AI Functions.</p><h3>Three developments worth paying attention to</h3><h3>1. Per-user quotas: Not everyone needs the same allowance</h3><p>Snowflake’s per-user quota capability allows administrators to establish daily, weekly or monthly consumption limits across supported domains.</p><p>Instead of looking only at overall account consumption, organisations can introduce controls at an individual user level.</p><p>Think about a data analyst who occasionally experiments with AI compared with an AI engineer developing and testing multiple agent workflows.</p><p>Should both necessarily have the same consumption allowance?</p><p>Per-user quotas provide a way to establish more appropriate boundaries.</p><p>Administrators can also use role-based quota scoping to identify which users should be covered by a particular quota.</p><h3>2. Individual quota overrides: Flexibility without increasing everyone’s limits</h3><p>This is one of the more interesting enhancements announced on November 11, 2026.</p><p>Snowflake introduced the ability to override the default quota for specific users.</p><p>Consider an organisation with a standard monthly allowance of 200 credits.</p><p>Some users may comfortably operate within that limit, while others working on intensive AI projects might need additional capacity.</p><p>With individual overrides, administrators can provide different allowances without increasing the default for everyone.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*on5bfQhER-PSiC5i85FO7Q.png" /></figure><p><em>Illustrative allocations, not Snowflake-prescribed limits.</em></p><p>There is another useful detail: individual overrides can have expiry dates.</p><p>An organisation could provide additional capacity for an approved project or development sprint and allow the user to return automatically to the standard quota afterwards.</p><p>This is a practical way of balancing experimentation with financial discipline.</p><h3>3. Temporary role grants: Controlling access duration</h3><p>Another November announcement introduces temporary role grants in Preview.</p><p>For example:</p><pre>GRANT ROLE ONCALL<br>TO USER ALICE<br>FOR INTERVAL &#39;24 HOURS&#39;;</pre><p>The role grant automatically expires after the specified period.</p><p>This is not directly a consumption-control feature, but it complements the wider governance conversation.</p><p>As organisations introduce more AI-powered workflows, managing who has access to what and for how long becomes increasingly important.</p><h3>Reading between the lines: What is Snowflake signalling?</h3><p>I find the direction behind these developments more interesting than the individual features themselves.</p><p>Traditionally, cloud and data platform cost management has focused heavily on warehouse consumption, resource monitors, query optimisation and infrastructure sizing.</p><p>AI introduces another dimension.</p><p>Consumption is becoming distributed across individual users, applications, teams and AI services.</p><p>Organisations need to understand not just how much they are spending, but who is driving that consumption and whether it aligns with business requirements.</p><p>Snowflake’s investments in budgets, per-user quotas and individual overrides suggest a move towards more granular consumption governance.</p><p>The message is worth thinking about:</p><p><strong>AI governance is not just about controlling what users can access. It is also about controlling how much they consume.</strong></p><p>And this should not be an afterthought.</p><h3>What should organisations do from Day 1?</h3><p>A few practical steps can make a difference:</p><ul><li><strong>Control access:</strong> Identify which users and teams should have access to AI capabilities.</li><li><strong>Set initial quotas:</strong> Establish reasonable consumption limits rather than starting with unrestricted usage.</li><li><strong>Monitor consumption:</strong> Understand which users and teams are generating the most usage.</li><li><strong>Allow controlled exceptions:</strong> Provide additional capacity where justified, preferably with an expiry date.</li><li><strong>Review regularly:</strong> Refine limits as actual usage patterns become clearer.</li></ul><p>One important consideration: per-user quotas are not a replacement for shared budgets or other cost-management controls. They also have evaluation delays and domain-specific enforcement behaviour. Organisations should understand these limitations when designing their policies.</p><p>The objective is to combine different controls rather than rely on a single mechanism.</p><h3>Final thoughts</h3><p>AI experimentation should not be slowed down simply because an organisation’s governance framework is still evolving.</p><p>At the same time, making AI capabilities available without considering consumption creates unnecessary financial risk.</p><p>What I find encouraging about Snowflake’s recent enhancements is the additional flexibility they provide to administrators.</p><p>Organisations can establish standard limits, manage users through roles, provide individual exceptions and introduce more controlled access.</p><p>The goal should not be to discourage people from using AI.</p><p>It should be to make AI adoption sustainable.</p><p><strong>We should not wait for governance to become perfect before introducing financial controls. Start with reasonable consumption guardrails from Day 1 and let governance mature alongside adoption.</strong></p><p>Because adopting AI is becoming easier every day.</p><p><strong>Making sure we can afford to scale what we have adopted is the real architectural challenge.</strong></p><p><em>More Snowflake architecture insights and practical learning resources: </em><a href="https://snowflakesimplified.netlify.app/"><em>Snowflake Simplified</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b56db60386f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Snowflake Cortex Agents: 7 Best Practices Every Developer Should Know]]></title>
            <link>https://medium.com/@manoj.rana/building-snowflake-cortex-agents-7-best-practices-every-developer-should-know-f7751719d308?source=rss-1b551f06a1a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7751719d308</guid>
            <dc:creator><![CDATA[Manoj Rana]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 02:44:55 GMT</pubDate>
            <atom:updated>2026-11-17T02:44:55.510Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Moving beyond a working demo to building reliable, production-ready AI agents.</em></p><p>Building an AI agent is relatively easy. Building one that consistently understands business questions, selects the right tools and delivers reliable answers is a different challenge.</p><p>Snowflake Cortex Agents make it possible to combine structured data, unstructured information and external tools to answer questions using natural language.</p><p>But simply connecting an agent to data sources is not enough. The quality of an agent depends heavily on how it is designed, instructed, tested and managed.</p><p>Here are seven best practices worth considering when building Cortex Agents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x_euxaMThOwqqT3ItVSkoQ.png" /></figure><h3>1. Start with a clear business purpose</h3><p>Before creating an agent, define what it is expected to do.</p><p>Avoid building one general-purpose agent that handles everything. Instead, start with a specific business problem.</p><p>For example, a Sales Intelligence Agent could focus on:</p><ul><li>Analysing revenue and sales performance.</li><li>Identifying customer consumption trends.</li><li>Comparing quarterly results.</li><li>Highlighting changes in regional performance.</li></ul><p>A clearly defined purpose makes it easier to select the right data sources, tools and instructions.</p><p><strong>Remember:</strong> An agent should have a clear responsibility, not an unlimited scope.</p><h3>2. Keep agents specialised</h3><p>As the number of use cases grows, consider separating responsibilities across multiple agents.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*1AHHPnsYhOfBV15wYFqeLQ.png" /></figure><p>Smaller, specialised agents are generally easier to configure, test and maintain than one agent with too many responsibilities.</p><h3>3. Choose the right tools for the job</h3><p>Cortex Agents can use different tools depending on the information or operation required.</p><p>Understanding when to use each capability is important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*uzfP9ddTPM6tsU2QO6fkMA.png" /></figure><p>For example, if someone asks: “Which region generated the highest revenue last quarter?”</p><p><strong>Cortex Analyst</strong> is a suitable choice.</p><p>If the question is: “What are the latest changes in our product documentation?”</p><p><strong>Cortex Search</strong> is more appropriate.</p><p>The objective is not to give the agent as many tools as possible. It is to provide the tools it actually needs.</p><h3>4. Get the four instruction layers right</h3><p>This is one of the most important concepts when designing Cortex Agents.</p><p>Each instruction layer has a different responsibility.</p><p><strong>1. Semantic View — What does the data mean?</strong></p><p>Defines business metrics, dimensions, relationships and terminology.</p><p>Example: Net revenue should exclude cancelled orders.</p><p><strong>2. Orchestration Instructions — What should the agent do?</strong></p><p>Defines the agent’s responsibilities, business rules, boundaries and when to select particular tools.</p><p>Example: Use Cortex Analyst for revenue-related questions and Cortex Search for product documentation.</p><p><strong>3. Response Instructions — How should the agent respond?</strong></p><p>Controls the presentation of the final answer.</p><p>Example: Present financial comparisons in a table and include the reporting period.</p><p><strong>4. Tool Descriptions — How should the agent use its tools?</strong></p><p>Explains each tool’s purpose, parameters, expected inputs and when it should or should not be used.</p><p>Keeping these responsibilities separate makes agent behaviour easier to understand and manage.</p><h3>5. Write meaningful tool descriptions</h3><p>A tool description should do more than explain what a tool does.</p><p>It should tell the agent when to use it, what information it needs and when it should avoid using it.</p><p>For example:</p><p>A weak description:</p><pre>&quot;Retrieves customer information.&quot;</pre><p>A better description:</p><pre>&quot;Retrieves customer consumption data,<br> including compute usage, storage and credit consumption. <br>Use this tool for customer-level consumption analysis and <br>historical comparisons. <br>Do not use it for real-time query performance information. <br>Requires a valid customer ID and date range.&quot;</pre><p>Also define parameter types, formats, mandatory fields and default values.</p><p>Small improvements in tool descriptions can make a significant difference to tool selection and execution.</p><h3>6. Evaluate before moving to production</h3><p>An agent that works during a demonstration is not necessarily ready for production.</p><p>Start by preparing a set of representative business questions and validating the expected results.</p><p>For example:</p><ul><li>Which region generated the highest revenue?</li><li>Which customers increased their consumption?</li><li>What was the quarter-on-quarter revenue growth?</li></ul><p>Evaluate whether the agent:</p><ul><li>Understands the question correctly.</li><li>Selects the appropriate tool.</li><li>Retrieves accurate information.</li><li>Produces a useful response.</li></ul><p>Use Cortex Agent Evaluations and Monitoring, along with execution traces, to identify problems and improve the configuration.</p><p>An incorrect answer should not automatically lead to changing the prompt. Investigate whether the issue comes from the semantic model, tool selection, instructions or underlying data.</p><h3>7. Manage versions and continuously improve</h3><p>Agent development does not stop when the first version goes live.</p><p>Business requirements change, data models evolve and new tools become available.</p><p>Establish a controlled process for managing changes:</p><ol><li>Make configuration changes.</li><li>Create a versioned snapshot.</li><li>Evaluate the new version.</li><li>Promote it to production after validation.</li><li>Monitor usage and feedback.</li><li>Roll back if unexpected issues occur.</li></ol><p>Continuous evaluation and controlled changes are essential to maintaining reliable agents.</p><h3>A quick checklist before building your next Cortex Agent</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*qijznWhO-aodJTp0Lb9vIw.png" /></figure><h3>Final thoughts</h3><p>Building a reliable Cortex Agent is not just about choosing an LLM or connecting it to enterprise data.</p><p>It requires a combination of good data modelling, clear instructions, appropriate tool selection, security and continuous evaluation.</p><p>The best approach is to start small, solve a specific business problem, validate the results and expand gradually.</p><p>A working demo is a good starting point. A well-engineered agent is what makes it useful in production.</p><p><strong>Further reading</strong></p><p>Snowflake Developer Guide: <a href="https://www.snowflake.com/en/developers/guides/best-practices-to-building-cortex-agents/">Best Practices for Building Cortex Agents</a></p><p>Explore more practical Snowflake learning resources at <a href="https://snowflakesimplified.netlify.app/">Snowflake Simplified</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7751719d308" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake AI Context Explained: From Data to Business Meaning]]></title>
            <link>https://medium.com/@manoj.rana/snowflake-ai-context-explained-from-data-to-business-meaning-341b7ac20383?source=rss-1b551f06a1a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/341b7ac20383</guid>
            <dc:creator><![CDATA[Manoj Rana]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 02:28:29 GMT</pubDate>
            <atom:updated>2026-11-04T02:28:29.161Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iQ0pDPSyiPUDzTMwD0oNlA.png" /></figure><p><em>Horizon Context, Cortex Sense, Semantic Views and Business Ontology — explained through a simple banking example.</em></p><p>Imagine asking an AI assistant:</p><p><strong>“Show me customers with high loan exposure and low account balances.”</strong></p><p>The data already exists in Snowflake. But to answer correctly, AI needs to understand what a customer is, how accounts and loans are connected and what the business means by loan exposure.</p><p>This is where context comes in.</p><p>Let’s see how Snowflake helps AI understand the business behind the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*v1CiK2hNtbrlwS7VJ7rg1w.png" /></figure><h3>1. The problem: Data alone is not enough</h3><p>A bank has three tables:</p><ul><li><strong>Customer:</strong> Customer details</li><li><strong>Account:</strong> Account balances</li><li><strong>Loan:</strong> Outstanding loan amounts</li></ul><p>The tables contain the information, but AI still needs to know how they connect.</p><p>For example, a customer may have multiple accounts or loans. If AI doesn’t understand those relationships, it could return an incorrect answer.</p><p><em>The data is available. AI needs to understand how it fits together.</em></p><h3>2. What is context?</h3><p>Think of context as the information that helps AI understand the business.</p><p>It includes:</p><ul><li>Business definitions</li><li>Data relationships</li><li>Metrics and calculations</li><li>Business rules</li><li>Ownership</li></ul><p>For example, the bank might define:</p><p><strong>Loan exposure:</strong> The outstanding amount of a customer’s loans.</p><p><strong>Low account balance:</strong> An account balance below a business-defined threshold.</p><p>These definitions help AI understand what the question actually means.</p><h3>3. Horizon Context: Bringing information together</h3><p>A Snowflake environment contains more than tables.</p><p>It also contains data models, metadata, dashboards, Semantic Views and other information that helps explain the data.</p><p>Horizon Context helps bring relevant information from the Snowflake environment together so it can be used by AI applications.</p><p>Think of it as making the available business knowledge easier to find and use.</p><p><em>Horizon Context helps make relevant information available across the environment.</em></p><h3>4. Cortex Sense: Discovering business meaning</h3><p>Now imagine the bank has hundreds of tables.</p><p>Some columns have clear names, while others use abbreviations such as ACCT_BAL_AMT.</p><p>Cortex Sense helps discover and infer context from existing data, models, queries and usage patterns.</p><p>It can help identify possible business entities, column meanings and relationships.</p><p>For example, it may suggest that ACCT_BAL_AMT represents Account Balance.</p><p>But discovering a possible meaning is not the same as approving it.</p><p><strong>Cortex Sense helps discover context. Business owners still need to validate important definitions.</strong></p><p><em>AI helps discover what the data may represent.</em></p><h3>5. Semantic Views: Giving AI a business-friendly model</h3><p>This is where Semantic Views become important.</p><p>A Semantic View defines business entities, dimensions, metrics and relationships that AI can use to query data.</p><p>For our banking example, <strong>one Semantic View can contain Customer, Account and Loan</strong>, including their relationships.</p><p>It could define metrics such as:</p><ul><li>Total Account Balance</li><li>Total Outstanding Loan</li></ul><p>The AI can then use this business-oriented model instead of trying to interpret every raw table independently.</p><p>&lt;visual: Banking Semantic View illustration showing Customer connected to Account and Loan, with account balance and outstanding loan metrics&gt;</p><h3>6. Business Ontology: Agreeing on what the business means</h3><p>Now let’s consider a different problem.</p><p>Finance and Sales both use the term <strong>Net Revenue</strong>.</p><p>But Finance defines it as:</p><p><strong>Revenue − Refunds − Discounts</strong></p><p>While Sales defines it as:</p><p><strong>Sales Amount − Discounts</strong></p><p>Both definitions may be valid for their own purposes.</p><p>So, when AI is asked for Net Revenue, which definition should it use?</p><p>This is where <strong><em>Business Ontology </em></strong>helps.</p><p>It captures business concepts, their approved meaning, ownership and relationships across different models.</p><p>For example:</p><p><strong>Business concept:</strong> Net Revenue</p><p><strong>Approved definition:</strong> Finance-approved revenue after applicable refunds and discounts</p><p><strong>Owner:</strong> Finance</p><p><strong>Linked implementation:</strong> The relevant metric in the Finance Semantic View</p><p>The ontology connects the business meaning to the models and metrics that implement it.</p><p>It does not automatically change calculations or resolve conflicting definitions. The business still decides which definition is appropriate.</p><p>&lt;visual: Business Ontology illustration showing Net Revenue, its approved definition, Finance ownership and links to different Semantic View metrics&gt;</p><h3>7. How do they work together?</h3><p>Let’s return to our original question:</p><p><strong>“Show me customers with high loan exposure and low account balances.”</strong></p><p>Each capability contributes something different.</p><ul><li><strong>Horizon Context</strong> brings relevant information together.</li><li><strong>Cortex Sense</strong> helps discover and infer context.</li><li><strong>Business Ontology</strong> captures approved business meaning.</li><li><strong>Semantic Views</strong> provide the structured data, relationships and metrics used for querying.</li></ul><p>They are not simply four sequential steps. They represent different responsibilities that can work together.</p><p>The important thing is that AI has access to the right context when answering the question.</p><h3>8. The result: A business answer</h3><p>Suppose the bank has defined:</p><ul><li>High loan exposure: Outstanding loan amount above $100,000</li><li>Low account balance: Account balance below $3,000</li></ul><p>These are example business rules, not default Snowflake thresholds.</p><p>The AI can use the relevant definitions and Semantic View to query the data.</p><p>For our example, Alice Tan has:</p><p>CustomerAccount BalanceLoan ExposureAlice Tan$2,500$150,000</p><p>She meets both conditions.</p><p><em>The AI can answer the question using the relevant business definitions and data relationships.</em></p><h3>9. The difference at a glance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*70QA0ggVbS9GiKKXe0XU4Q.png" /></figure><h3>Do you always need all four?</h3><p>Not necessarily.</p><p>A well-designed Semantic View may already provide the context needed for a particular AI use case.</p><p>Business Ontology becomes more useful when business concepts need to be governed and shared across multiple models or domains.</p><p>The goal is not to use every capability. It is to provide enough reliable context for AI to answer correctly.</p><h3>Final thoughts</h3><p>AI does not become useful just because it can access more data.</p><p>It becomes useful when it understands what the data means, how it connects and which business definitions apply.</p><p>Snowflake’s context capabilities help address different parts of that challenge.</p><p><strong>Horizon Context brings information together.</strong></p><p><strong>Cortex Sense helps discover meaning.</strong></p><p><strong>Business Ontology captures governed business concepts.</strong></p><p><strong>Semantic Views provide the structure AI can query.</strong></p><p>The banking example makes it simple:</p><p>The data was already there.</p><p>What AI needed was a better understanding of the business behind it.</p><p><strong>That is the real value of context: helping AI move from finding data to answering business questions with the right meaning.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=341b7ac20383" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake Restricted Session Scope (RSS): Securing AI Agents Without Changing User RBAC]]></title>
            <link>https://medium.com/@manoj.rana/snowflake-restricted-session-scope-rss-securing-ai-agents-without-changing-user-rbac-c30f20908d5e?source=rss-1b551f06a1a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/c30f20908d5e</guid>
            <dc:creator><![CDATA[Manoj Rana]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 00:13:38 GMT</pubDate>
            <atom:updated>2026-11-02T00:13:38.821Z</atom:updated>
            <content:encoded><![CDATA[<p>There is a lot of discussion around AI agents at the moment. Most of the conversations focus on what agents can do, how they can interact with enterprise data and how much of our day-to-day engineering work they can automate.</p><p>Snowflake is moving in the same direction with capabilities such as Cortex Agents, Cortex Analyst, Cortex Code and MCP integrations.</p><p>But while exploring these capabilities, I found myself thinking about a slightly different question.</p><p><strong>If an AI agent is operating on behalf of a user, should it really have access to everything that user has access to?</strong></p><p>Consider a Data Engineer working in a banking environment. They might have access to production databases, development environments, sandbox databases and even administrative roles. These permissions are necessary for their regular responsibilities.</p><p>Now imagine the same engineer asking an AI agent to investigate a failed data pipeline or analyse an issue with customer account data.</p><p>The agent is acting on behalf of the engineer. But does it need the ability to update production records, drop tables or switch to an administrative role to complete that task?</p><p>In most cases, it doesn’t.</p><p>This is one of the problems that Snowflake’s Restricted Session Scope (RSS) is designed to address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NlTn3e0zJq7SmaU8RE8YiQ.png" /></figure><h3>So, what exactly is Restricted Session Scope?</h3><p>The way I understand RSS is that it introduces an additional layer of control over what an AI agent can do during an active agent session.</p><p>It does not replace the existing RBAC model and it does not require us to redesign all the roles and grants that are already in place.</p><p>Instead, it places restrictions on the privileges available to an agent.</p><p>The important distinction is that RSS can reduce a user’s permissions for agent activity, but it cannot grant permissions that the user does not already have.</p><p>Think of it as a boundary around the agent’s activities.</p><p>The effective permissions are determined by two things:</p><ul><li>The privileges already available to the user through RBAC.</li><li>The restrictions defined through RSS.</li></ul><p>In simple terms:</p><p>Agent permissions = User permissions ∩ RSS restrictions</p><p>This means that even if a user has extensive production access, the agent can be restricted to reading production data and writing only to an approved sandbox environment.</p><p>The user can continue using their normal permissions when working outside an active agent session.</p><h3>Let’s take a banking example</h3><p>Suppose we have a banking data platform with three databases:</p><ul><li>PROD — contains customer, account and transaction data.</li><li>DEV — used by engineering teams for development.</li><li>SANDBOX_DB — used for investigation and experimentation.</li></ul><p>A Data Engineer has access to all three environments and also holds some administrative privileges.</p><p>The engineer wants to use Cortex Analyst to investigate a data-quality issue in the production accounts dataset.</p><p>Ideally, the agent should be able to:</p><ul><li>Read production customer and account data.</li><li>Analyse data-quality failures.</li><li>Execute approved programmatic operations.</li><li>Store investigation results in SANDBOX_DB.</li></ul><p>However, it should not be able to:</p><ul><li>Update or delete production records.</li><li>Drop production tables.</li><li>Write directly into production databases.</li><li>Switch to ACCOUNTADMIN or other restricted administrative roles.</li></ul><p>This is a good example of where RSS can help.</p><p>We can define these restrictions once and associate them with a Snowflake Session Policy.</p><h3>Setting it up in Snowflake</h3><p>There are three main steps involved.</p><p><strong>Step 1: Create a Restricted Session Scope</strong></p><p>Snowflake allows us to define a custom RSS object using YAML.</p><p>For the banking example, the configuration could look like this:</p><pre>CREATE RESTRICTED SESSION SCOPE<br>MYDB.GOVERNANCE.AGENT_SCOPE<br>AS $$<br>privilege_scopes:<br>  allowed_privileges:<br>    - privileges: [data read, program usage]<br>      account: [all]</pre><pre>    - privileges: [data write]<br>      databases: [SANDBOX_DB, USER$]</pre><pre>role_scopes:<br>  blocked_roles:<br>    [ACCOUNTADMIN, SYSADMIN, SECURITYADMIN]</pre><pre>  allow_role_switching: false<br>$$;</pre><p>A few things are worth highlighting here.</p><p>We are allowing data reads across the account, subject to the user’s existing permissions.</p><p>Write operations are restricted to SANDBOX_DB and the user’s personal database (USER$).</p><p>We are also blocking some of the powerful administrative roles and preventing role switching while the agent is active.</p><p>The intention is not to give the agent more access. It is to make sure that the agent cannot use the full range of permissions available to the human user.</p><p><strong>Step 2: Create a Session Policy</strong></p><p>Once the RSS object is available, we reference it through a Session Policy.</p><pre>CREATE SESSION POLICY<br>MYDB.GOVERNANCE.AGENT_POLICY</pre><pre>AGENT_RESTRICTED_SESSION_SCOPE =<br>&#39;MYDB.GOVERNANCE.AGENT_SCOPE&#39;;</pre><p>This is the policy that connects our RSS configuration to the Snowflake session.</p><p><strong>Step 3: Apply the Session Policy</strong></p><p>We can apply the policy at account level:</p><pre>ALTER ACCOUNT<br>SET SESSION POLICY<br>MYDB.GOVERNANCE.AGENT_POLICY;</pre><p>Or apply it to an individual user:</p><pre>ALTER USER MANOJ<br>SET SESSION POLICY<br>MYDB.GOVERNANCE.AGENT_POLICY;</pre><p>I particularly like the flexibility here. Organisations can start with a small group of users who are working with AI agents and expand the implementation as their AI governance practices mature.</p><p>One thing to remember: a user-level Session Policy overrides the account-level policy. They are not combined.</p><h3>What actually changes when an agent becomes active?</h3><p>This is probably the most interesting part of RSS.</p><p>The Session Policy can be associated with a user even when they are performing their normal Snowflake activities.</p><p>However, the restricted scope is enforced when an agent becomes active.</p><p>For example, when the engineer is working directly in Snowsight or executing SQL in a normal session, their existing RBAC permissions continue to apply.</p><p>When Cortex Analyst becomes active on their behalf, the restricted scope comes into effect.</p><p>Snowflake provides a context function to check whether an agent is active:</p><pre>SELECT SYS_CONTEXT(<br>    &#39;SNOWFLAKE$CURRENT&#39;,<br>    &#39;IS_AGENT_ACTIVATED&#39;<br>);</pre><p>We can also inspect the active restricted session scopes:</p><pre>SELECT SYS_CONTEXT(<br>    &#39;SNOWFLAKE$SESSION&#39;,<br>    &#39;ACTIVE_RESTRICTED_SESSION_SCOPES&#39;<br>);</pre><p>This is useful when validating the configuration and understanding which restrictions are currently being enforced.</p><p>Let’s look at the expected behaviour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O7FsCPgU7dgsKoz0FzZgTQ.png" /></figure><p>The distinction is quite important.</p><p>We are not changing what the engineer is allowed to do. We are restricting what the AI agent can do while acting on the engineer’s behalf.</p><h3>Do we always need to create a custom RSS?</h3><p>Not necessarily.</p><p>Snowflake also provides predefined restricted session scopes, which can be useful when the requirements are straightforward.</p><p>Some examples include:</p><p><strong>SNOWFLAKE$DATA_READ</strong></p><p>For scenarios where the agent needs read-only data access.</p><p><strong>SNOWFLAKE$DATA_READ_WITH_AI</strong></p><p>For read access with supported AI-related object usage.</p><p><strong>SNOWFLAKE$DATA_READ_PROGRAM_USAGE</strong></p><p>For read access combined with programmatic object execution.</p><p>For example, if the requirement is simply to restrict an agent to read-only access, we can use a predefined scope:</p><pre>CREATE SESSION POLICY<br>MYDB.GOVERNANCE.AGENT_READ_POLICY</pre><pre>AGENT_RESTRICTED_SESSION_SCOPE =<br>&#39;SNOWFLAKE$DATA_READ&#39;;</pre><p>This avoids maintaining a custom YAML definition.</p><p>The choice between predefined and custom scopes really depends on the use case. If an agent needs to read production data and write investigation results into a sandbox, a custom scope provides more control.</p><h3>A few things I would consider before implementing this</h3><p>RSS is a useful addition, but I wouldn’t treat it as the complete security solution for AI agents.</p><p>There are a few other areas that need attention.</p><p><strong>1. Data access is not the same as data visibility</strong></p><p>Even if an agent is allowed to read a customer table, that doesn’t necessarily mean it should see every column.</p><p>For example, customer identification numbers, contact details and other sensitive information may need additional protection.</p><p>This is where dynamic data masking and row access policies become important.</p><p><strong>2. Be careful with stored procedures</strong></p><p>Allowing program usage needs careful consideration, particularly when stored procedures execute with owner’s rights.</p><p>A procedure may have access to resources beyond the agent’s direct privileges. Those execution paths need to be reviewed as part of the security design.</p><p><strong>3. Role restrictions need to be understood properly</strong></p><p>Blocking ACCOUNTADMIN, SYSADMIN or SECURITYADMIN is useful but administrators should also consider privileges inherited through the active primary role.</p><p>RSS should not be treated as a substitute for a well-designed RBAC model.</p><p><strong>4. Understand the session lifecycle</strong></p><p>Once an RSS becomes active within a session, it is immutable for that session. Changes to the scope require a new session to take effect.</p><p>This is an operational detail worth considering when designing agent workflows and troubleshooting access issues.</p><h3>My take</h3><p>As we start introducing AI agents into enterprise data platforms, I think we need to spend as much time thinking about their operating boundaries as we do about their capabilities.</p><p>In a banking environment, for example, an agent that can investigate production data-quality issues is genuinely useful. But giving it the ability to modify production data simply because the engineer using it has that permission is a different proposition.</p><p>This is where RSS makes sense.</p><p>It gives architects another mechanism to separate human access from agent execution without having to redesign the entire security model.</p><p>I see this as an important part of the broader Snowflake AI governance architecture, particularly when organisations start moving beyond experimentation and into production deployments.</p><p>We have spent years building RBAC models to control who can access our data.</p><p>With agentic AI, we now need to think about what those agents should actually be allowed to do with that access.</p><p><strong>That is a conversation worth having before we put AI agents into production.</strong></p><h3>References</h3><ul><li><a href="https://docs.snowflake.com/en/user-guide/restricted-session-scope">Snowflake Documentation — Restricted Session Scope</a></li><li><a href="https://docs.snowflake.com/en/sql-reference/sql/create-restricted-session-scope">CREATE RESTRICTED SESSION SCOPE</a></li><li><a href="https://docs.snowflake.com/en/release-notes/">Snowflake Release Notes</a></li></ul><p>#Snowflake #AgenticAI #SnowflakeCortex #DataArchitecture #DataSecurity #AI Governance</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c30f20908d5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Legacy Data Warehouses to Snowflake: An Architecture-Led Modernisation Playbook]]></title>
            <link>https://medium.com/@manoj.rana/from-legacy-data-warehouses-to-snowflake-an-architecture-led-modernisation-playbook-bdb174b1bc77?source=rss-1b551f06a1a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdb174b1bc77</guid>
            <dc:creator><![CDATA[Manoj Rana]]></dc:creator>
            <pubDate>Sat, 26 Sep 2026 07:17:37 GMT</pubDate>
            <atom:updated>2026-09-26T07:17:37.001Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve often found that <strong>Snowflake migration conversations start in the wrong place</strong>.</p><p>The discussion quickly becomes:</p><p><em>How do we convert our existing SQL?<br>How do we move the data?<br>How quickly can we migrate?</em></p><p>But a successful modernisation programme is much bigger than moving tables and rewriting SQL.</p><p>The real questions are:</p><p><strong>What should we migrate? What should we modernise? What should we rebuild or retire? What business value are we trying to create? And how do we move without disrupting the organisation?</strong></p><p>That thinking led me to develop a <strong>Legacy → Snowflake Modernisation Playbook — </strong>an architecture-led framework that can be applied across organisations and legacy technology estates.</p><h3>A 10-stage modernisation lifecycle</h3><p>The framework follows:</p><p><strong>Discover → Assess → Strategise → Design → Prove → Migrate → Validate → Cutover → Optimise → Modernise</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uMEm8urft-MzxewNWwS1gg.png" /></figure><h3>1. Discover</h3><p>Start with the business rather than the technology.</p><p>Understand:</p><ul><li>Business capabilities</li><li>Critical processes</li><li>Applications</li><li>Data sources</li><li>ETL/ELT pipelines</li><li>Reports and consumers</li><li>SLAs</li><li>Regulatory requirements</li><li>Current pain points</li></ul><p>The goal is to understand <strong>why the platform exists and who depends on it</strong>.</p><h3>2. Assess</h3><p>Turn the estate inventory into migration intelligence.</p><p>Assess:</p><ul><li>Data complexity</li><li>SQL and procedural complexity</li><li>Pipeline complexity</li><li>Dependencies</li><li>Data volumes and growth</li><li>Business criticality</li><li>Operational risk</li><li>Migration readiness</li></ul><p>This provides the foundation for realistic migration planning.</p><h3>3. Strategise</h3><p>One of the most important principles is:</p><p><strong><em>Not everything should automatically be migrated.</em></strong></p><p>Each workload should have an explicit disposition:</p><p><strong>Migrate | Modernise | Rebuild | Retain | Retire</strong></p><p>A simple reporting workload may be suitable for direct migration.</p><p>A highly coupled legacy workload may be better rebuilt.</p><p>An obsolete data mart may simply need to be retired.</p><p>This prevents migration programmes from carrying unnecessary legacy design into the new platform.</p><h3>4. Design</h3><p>Only after understanding the estate and strategy should the target architecture be designed.</p><p>A typical target architecture may include:</p><p><strong>Sources → Ingestion → RAW → Curated → Data Products/Marts → Analytics / BI / AI</strong></p><p>with cross-cutting capabilities for:</p><p><strong>Security | Governance | Data Quality | Observability | CI/CD | FinOps</strong></p><p>The objective isn’t simply to reproduce the old architecture on Snowflake.</p><p>It is to determine <strong>what the organisation should look like after modernisation</strong>.</p><h3>5. Prove</h3><p>Before scaling the migration, prove the approach.</p><p>A good POC should test representative workloads, including at least one challenging workload.</p><p>Validate:</p><ul><li>Conversion</li><li>Data movement</li><li>Transformation logic</li><li>Performance</li><li>Security</li><li>Data quality</li><li>Reconciliation</li><li>Operational behaviour</li></ul><p>The POC should answer a critical question:</p><p><strong><em>Can we repeat this successfully at scale?</em></strong></p><h3>6. Migrate through a factory</h3><p>Migration becomes much more effective when treated as a <strong>Migration Factory</strong> rather than a collection of individual projects.</p><p>A repeatable flow can be:</p><p><strong>Intake → Extract → Assess → Convert → Remediate → Build → Test → Validate → Deploy → Cutover → Hypercare</strong></p><p>Automation should handle repetitive work wherever possible.</p><p>Architecture and engineering teams should focus human effort on:</p><ul><li>Business semantics</li><li>Complex transformations</li><li>Security</li><li>Performance</li><li>Exceptions</li><li>Target-state design</li></ul><h3>7. Validate</h3><p>A migration isn’t successful simply because the SQL executes.</p><p>Validation needs multiple layers:</p><p><strong>Structural</strong></p><p>Tables, columns, data types and objects.</p><p><strong>Data</strong></p><p>Counts, nulls, duplicates, aggregates and metrics.</p><p><strong>Transformation</strong></p><p>Business rules, joins and calculations.</p><p><strong>Business</strong></p><p>KPIs, reports and regulatory outputs.</p><p><strong>Operational</strong></p><p>SLAs, scheduling, monitoring and recovery.</p><p>The question becomes:</p><p><strong><em>Can we prove that the new platform produces the right business outcome?</em></strong></p><h3>8. Cutover</h3><p>Cutover should be treated as an engineering discipline, not a calendar event.</p><p>A typical sequence is:</p><p><strong>Historical Load → Incremental/CDC → Parallel Run → Reconciliation → Business Sign-off → Go/No-Go → Cutover → Hypercare</strong></p><p>There should also be explicit rollback criteria.</p><p>For critical workloads, the organisation needs to know <strong>before cutover</strong> what conditions would cause the migration to stop or roll back.</p><h3>9. Optimise</h3><p>Migration doesn’t end when production starts.</p><p>The first 30/60/90 days should focus on:</p><ul><li>Cost</li><li>Performance</li><li>Warehouse utilisation</li><li>Data quality</li><li>Pipeline reliability</li><li>Operational processes</li><li>Legacy decommissioning</li></ul><p>The target platform should be measured against the assumptions made in the original business case.</p><h3>10. Modernise</h3><p>This is where the biggest opportunity often begins.</p><p>Once the organisation has a modern data platform, ask:</p><p><strong>What can we now do that was difficult or impossible before?</strong></p><p>Potential opportunities include:</p><ul><li>Data products</li><li>Self-service analytics</li><li>Governed data sharing</li><li>Real-time analytics</li><li>AI/ML</li><li>Snowflake Cortex capabilities</li><li>Data applications</li><li>Improved regulatory reporting</li></ul><p>The migration becomes a foundation for <strong>business transformation</strong>, rather than simply a technology replacement.</p><h3>The bigger idea</h3><p>A legacy-to-Snowflake programme should not be measured only by:</p><p><strong><em>How much legacy technology did we move?</em></strong></p><p>A better question is:</p><p><strong><em>What business capability did we create through the modernisation?</em></strong></p><p>That changes the conversation from <strong>migration</strong> to <strong>modernisation</strong>.</p><p>And it changes the role of the architect from someone who helps convert technology into someone who helps the organisation decide <strong>where it is going and how to get there safely</strong>.</p><p>I’ve captured this approach in a <strong>Legacy → Snowflake Modernisation Playbook</strong>, covering the methodology, migration factory, assessment model, target architecture, validation framework, cutover approach, operating model and reusable templates.</p><p><strong>The playbook is intended to be a practical starting point for organisations planning their journey from legacy data platforms to Snowflake and a framework that can evolve with each migration programme.</strong></p><p>If you’re working on a legacy-to-Snowflake modernisation initiative and would like a copy of the playbook, feel free to email me (manoj.rana2607@gmail.com ) or connect with me on <a href="http://www.linkedin.com/in/manojrana2607">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdb174b1bc77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake Is Moving Fast. How Do Organisations Keep Up?]]></title>
            <link>https://medium.com/@manoj.rana/snowflake-is-moving-fast-how-do-organisations-keep-up-867ba49222a5?source=rss-1b551f06a1a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/867ba49222a5</guid>
            <dc:creator><![CDATA[Manoj Rana]]></dc:creator>
            <pubDate>Mon, 21 Sep 2026 06:17:28 GMT</pubDate>
            <atom:updated>2026-09-21T06:17:28.242Z</atom:updated>
            <content:encoded><![CDATA[<p>Snowflake has changed dramatically.</p><p>What started primarily as a <strong>cloud data warehouse</strong> has evolved into a much broader <strong>data and AI platform</strong>.</p><p>Today organisations are looking at capabilities across data engineering, analytics, Iceberg, AI Functions, Cortex Search, Cortex Analyst, Cortex Agents, Cortex Code, CoWork, machine learning and agentic AI.</p><p>And the pace of innovation is increasing.</p><p>This creates an interesting challenge for enterprise technology teams:</p><p><strong><em>How do organisations keep up with Snowflake innovation without constantly changing their architecture, creating duplication, or chasing every new feature?</em></strong></p><p>The answer isn’t to adopt everything.</p><p>It is to change how we think about platform innovation.</p><h3>From Feature Adoption to Capability Management</h3><p>A few years ago, the question was often:</p><p><strong><em>“How do we implement Snowflake?”</em></strong></p><p>Today, the question is becoming:</p><p><strong><em>“Which Snowflake capabilities should we use, and where do they fit in our enterprise architecture?”</em></strong></p><p>That’s a significant shift.</p><p>For example, when a new AI capability becomes available, the first reaction shouldn’t be:</p><p><strong>“Snowflake has released it — let’s implement it.”</strong></p><p>Instead, organisations should ask:</p><ul><li>What business problem does it solve?</li><li>Do we already have something that solves this problem?</li><li>Where does it fit into our existing architecture?</li><li>What data can it access?</li><li>What are the security and governance implications?</li><li>What does it cost?</li><li>Is it mature enough for production?</li><li>Does it simplify our technology landscape or add another layer?</li></ul><p>This turns Snowflake adoption from a <strong>technology exercise into an architecture and business decision</strong>.</p><h3>The Feature Explosion</h3><p>The challenge becomes obvious when we look at how the platform has evolved.</p><p>The traditional architecture was relatively straightforward:</p><pre>Source Systems<br>      ↓<br>ETL / ELT<br>      ↓<br>Snowflake<br>      ↓<br>BI / Analytics</pre><p>The modern architecture can look very different:</p><pre>Users<br>                      ↓<br>                AI Applications<br>                      ↓<br>                 Cortex Agents<br>                 /          \<br>       Cortex Analyst     Cortex Search<br>              ↓                ↓<br>       Structured Data   Unstructured Data<br>              \                /<br>               └── Snowflake ──┘</pre><p>And around this, we now have capabilities for AI-assisted development, machine learning, governance, data sharing, streaming and more.</p><p>The platform is becoming much more than a place to store data.</p><p>But more capability also means more <strong>architectural decisions</strong>.</p><h3>You Can’t Adopt Everything</h3><p>This is perhaps the most important mindset shift.</p><p>An enterprise may already have:</p><ul><li>an enterprise search platform</li><li>a BI semantic layer</li><li>an AI platform</li><li>an ML platform</li><li>a data catalogue</li><li>document processing</li><li>custom RAG applications</li><li>developer tooling</li></ul><p>Snowflake may introduce capabilities that overlap with some of these.</p><p>That doesn’t automatically mean the existing technology should be replaced.</p><p>The real question is:</p><p><strong><em>Does adopting the Snowflake capability create more value than the cost and complexity of introducing it?</em></strong></p><p>Sometimes the answer will be yes.</p><p>Sometimes the existing platform will remain the right choice.</p><p>And sometimes the new capability may provide an opportunity to simplify the architecture.</p><p>That decision requires <strong>enterprise context</strong>, not just knowledge of the Snowflake feature.</p><h3>A Simple Innovation Lifecycle</h3><p>One practical approach is to establish a common lifecycle for new capabilities:</p><p><strong>Discover → Assess → Experiment → Govern → Industrialise → Measure</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4z_jE_0nu1yTbTq4dp5GpQ.png" /></figure><h3>Discover</h3><p>Continuously monitor Snowflake releases and identify capabilities that could have enterprise relevance.</p><h3>Assess</h3><p>Evaluate business value, maturity, security, cost, architecture fit and strategic relevance.</p><h3>Experiment</h3><p>Run controlled POCs rather than immediately introducing new capabilities into production.</p><h3>Govern</h3><p>Define access, security, data boundaries, responsible AI, monitoring and cost controls.</p><h3>Industrialise</h3><p>If successful, turn the capability into an <strong>approved architecture pattern</strong> that multiple teams can reuse.</p><h3>Measure</h3><p>Finally, measure whether it actually delivered business value.</p><p>This creates a controlled path between:</p><p><strong>“Snowflake released it”</strong></p><p>and</p><p><strong>“Our enterprise uses it in production.”</strong></p><h3>The Role of the Enterprise Architect Is Changing</h3><p>This evolution also changes the role of the Snowflake Architect.</p><p>The traditional role focused heavily on:</p><ul><li>Data architecture</li><li>Data modelling</li><li>Performance</li><li>Security</li><li>ETL/ELT</li><li>Cost optimisation</li><li>Platform design</li></ul><p>These remain important.</p><p>But the architect increasingly needs to connect:</p><p><strong>Business Problem</strong></p><p>↓</p><p><strong>Business Capability</strong></p><p>↓</p><p><strong>Technology Capability</strong></p><p>↓</p><p><strong>Architecture Pattern</strong></p><p>↓</p><p><strong>Governance</strong></p><p>↓</p><p><strong>Business Value</strong></p><p>For example, instead of simply knowing what Cortex Agents does, the architect needs to understand:</p><p><em>Where should an agent be used?</em></p><p><em>What data should it access?</em></p><p><em>Which tools should it be allowed to invoke?</em></p><p><em>How should it be governed?</em></p><p><em>How should its performance and cost be measured?</em></p><p>That is a much broader responsibility than being a Snowflake feature expert.</p><h3>Build Patterns, Not Just POCs</h3><p>Another important shift is moving from individual experiments to <strong>reusable enterprise patterns</strong>.</p><p>For example:</p><h3>Natural-Language Analytics</h3><pre>User<br> ↓<br>AI Interface<br> ↓<br>Cortex Analyst<br> ↓<br>Semantic Layer<br> ↓<br>Snowflake</pre><h3>Enterprise RAG</h3><pre>User<br> ↓<br>AI Application<br> ↓<br>Cortex Search<br> ↓<br>Enterprise Documents</pre><h3>Agentic Analytics</h3><pre>User<br> ↓<br>Cortex Agent<br> ├── Analyst<br> ├── Search<br> └── Other Tools<br>       ↓<br>Enterprise Data</pre><p>The exact Snowflake capabilities will continue to change.</p><p>The <strong>architecture pattern</strong> can remain relatively stable.</p><p>That’s what makes it reusable.</p><h3>The Goal Isn’t to Keep Up With Snowflake</h3><p>Snowflake will continue releasing new capabilities.</p><p>Some will become strategic.</p><p>Some will remain niche.</p><p>Some will replace existing approaches.</p><p>Some will eventually be retired.</p><p>Trying to keep up with every feature is therefore not a sustainable enterprise strategy.</p><p>The goal should be to build an organisation that can <strong>respond to change quickly and deliberately</strong>.</p><p>The most mature platform teams will have a simple operating model:</p><p><strong><em>Understand the innovation.<br>Assess the relevance.<br>Experiment safely.<br>Govern it properly.<br>Industrialise what works.<br>Retire what no longer adds value.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qG2S6M3KhjkqW1hnSl7kiw.png" /></figure><p>The real skill is no longer simply knowing <strong>what Snowflake can do</strong>.</p><p>It is knowing <strong>what your organisation should do with what Snowflake can do</strong>.</p><p>And that may be the biggest shift in the role of the modern <strong>Data &amp; AI Platform Architect</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=867ba49222a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>