<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jin</title>
    <description>The latest articles on DEV Community by Jin (@luca1iu).</description>
    <link>https://dev.to/luca1iu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg</url>
      <title>DEV Community: Jin</title>
      <link>https://dev.to/luca1iu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/luca1iu"/>
    <language>en</language>
    <item>
      <title>The BI Dashboard Paradox: Why We Keep Building Dashboards and What AI Will Change</title>
      <dc:creator>Jin</dc:creator>
      <pubDate>Wed, 11 Nov 2026 07:59:33 +0000</pubDate>
      <link>https://dev.to/luca1iu/the-bi-dashboard-paradox-why-we-keep-building-dashboards-and-what-ai-will-change-e9</link>
      <guid>https://dev.to/luca1iu/the-bi-dashboard-paradox-why-we-keep-building-dashboards-and-what-ai-will-change-e9</guid>
      <description>&lt;h2&gt;
  
  
  Why is BI Dashboard So Popular in Traditional BI Era?
&lt;/h2&gt;

&lt;p&gt;If you work in a data team, you are probably familiar with this situation. A business department needs to understand something about its performance. They contact the data team and asks for a dashboard.&lt;/p&gt;

&lt;p&gt;The data team gathers requirements, identifies the necessary data sources, builds a data model, creates visualizations in Power BI or Tableau, and publishes the dashboard. The business users review it and request a few adjustments. Finally, the dashboard goes live.&lt;/p&gt;

&lt;p&gt;Everyone is happy. The project is completed. THEN.. A few weeks later, another request arrives.&lt;/p&gt;

&lt;p&gt;This workflow has been the standard way of delivering BI for years. But why did Dashboards become the default solution to so many different business problems? I believe there are several reasons.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;dashboards make data accessible to people who cannot write SQL.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;dashboards make analytical work reusable&lt;/strong&gt;: A data analyst might spend several days creating a report, but once published, hundreds of employees can access the same information. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;dashboards standardize business metrics&lt;/strong&gt;: When designed properly, a dashboard allows different departments to work with consistent KPI definitions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;dashboards are tangible deliverables&lt;/strong&gt;: It is easy to demonstrate that a project has been completed. It is much harder to demonstrate that a team has improved the quality of business decisions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For traditional BI, dashboards were an efficient way to turn technical data work into a scalable, visible product.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;But delivering information is not the same as delivering business value.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Fundamental Limitations of Traditional Dashboards
&lt;/h2&gt;

&lt;h3&gt;
  
  
  A dashboard can only anticipate a limited number of questions
&lt;/h3&gt;

&lt;p&gt;Imagine a procurement department wants to understand its purchasing behavior. The data team builds a dashboard displaying total purchasing volume, spending by supplier, catalog versus non-catalog orders, and monthly trends. The dashboard initially answers most of the department's questions.&lt;/p&gt;

&lt;p&gt;But soon, someone asks:&lt;br&gt;
"Can we compare purchasing behavior between different business units?"&lt;/p&gt;

&lt;p&gt;Another person asks:&lt;br&gt;
"Can we exclude certain types of orders from this KPI?"&lt;/p&gt;

&lt;p&gt;Each question may require an additional measure, visualization, filter, or even a change to the underlying data model. Of course, modern BI tools support interactive filtering, drill-down, and drill-through capabilities. But these interactions generally operate within a structure that someone has designed in advance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Business questions are almost unlimited. Dashboard structures are not.&lt;/strong&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  To much information
&lt;/h3&gt;

&lt;p&gt;When business users cannot find the information they need, the natural reaction is to add another visualization. Over time, dashboards become increasingly complicated.&lt;/p&gt;

&lt;p&gt;More KPIs. More filters. More pages. More buttons. Eventually, users may struggle to understand where to look.&lt;/p&gt;

&lt;p&gt;I find this slightly ironic. The purpose of a dashboard is to make data easier to understand, but adding more information can make it harder to use.&lt;/p&gt;

&lt;p&gt;Sometimes, a business user doesn't need another chart. They simply need someone to explain what changed and why it matters.&lt;/p&gt;
&lt;h3&gt;
  
  
  User have to actively looking for problems
&lt;/h3&gt;

&lt;p&gt;A traditional dashboard is usually a passive tool. The data is available, but someone needs to open the dashboard, inspect the numbers, recognize an unusual pattern, and decide whether to investigate further.&lt;/p&gt;

&lt;p&gt;This creates a fundamental dependency: &lt;strong&gt;The system provides information, but the human is responsible for discovering the problem.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In a large organization, where employees are already overwhelmed by emails, meetings, and operational responsibilities, that is a significant limitation.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why Dashboard Requirements Never End
&lt;/h2&gt;

&lt;p&gt;Why do data teams keep receiving dashboard requests, even after building so many dashboards? I think the problem is partly related to how organizations define requirements.&lt;/p&gt;

&lt;p&gt;A typical workflow looks like this: &lt;strong&gt;Business problem → Business request → Data team → Dashboard delivery&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But somewhere in this process, the original business problem is often replaced by a proposed solution. For example, a business manager notices that purchasing costs are increasing.&lt;/p&gt;

&lt;p&gt;The real question is: "Why are purchasing costs increasing, and what can we do about it?" But the request received by the data team might be: "Please add a supplier cost comparison to the dashboard."&lt;/p&gt;

&lt;p&gt;The data team implements the visualization. The requirement is completed. However, the business problem may remain unresolved. A new chart might help reveal these factors, but the chart itself does not make the decision.&lt;/p&gt;

&lt;p&gt;And this is where the cycle begins: The business team looks at the new visualization, discovers another question, and submits another request. More requirements lead to more dashboards, which lead to more questions and more requirements.&lt;/p&gt;

&lt;p&gt;This creates what I would call a &lt;strong&gt;dashboard requirement factory&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The problem isn't that business users ask too many questions. The problem is that data teams are often asked to implement predefined solutions rather than help investigate the underlying business problems.&lt;/p&gt;
&lt;h2&gt;
  
  
  AI Makes Execution Cheaper, but Judgment More Valuable
&lt;/h2&gt;

&lt;p&gt;AI is already changing how data professionals work.&lt;/p&gt;

&lt;p&gt;Tasks such as writing SQL, generating DAX measures, creating visualizations, documenting models, and exploring datasets can increasingly be assisted by AI. The cost of implementing certain analytical requests is decreasing.&lt;/p&gt;

&lt;p&gt;In the past, business users might hesitate before requesting a new dashboard because they knew it could take weeks to deliver. But with AI, creating a draft report or generating an analysis may take minutes. So why not request ten different versions? Demand for it will increase.&lt;/p&gt;

&lt;p&gt;This creates a new challenge for data teams. The bottleneck moves from technical implementation toward deciding which questions deserve attention.&lt;/p&gt;

&lt;p&gt;AI can help us build almost anything faster. But &lt;strong&gt;should we build it? Will anyone use it? Will it lead to a better decision?&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What Will Replace the Traditional BI Dashboard?
&lt;/h2&gt;

&lt;p&gt;I don't think the future of BI is simply replacing dashboards with Chatbots or sending users more automated notifications. Traditional BI tools like Power BI and Tableau already support alerts when certain KPIs reach predefined thresholds. The real limitation is that these KPIs are usually monitored separately, and users still need to investigate what happened, why it happened, and whether it actually matters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I believe AI-powered BI should move beyond monitoring individual KPIs toward understanding broader business goals.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Take a procurement department as an example. The ultimate goal isn't to increase or decrease a particular KPI. It's to improve overall purchasing performance. Metrics such as spending, transaction volume, purchasing categories, and catalog purchasing rates are tools for understanding that performance, not goals in themselves.&lt;/p&gt;

&lt;p&gt;Instead of monitoring each KPI independently, AI could connect them, understand their relationships, and evaluate changes in the context of the broader business objective. A sudden increase in spending, for example, might be perfectly normal if purchasing volume also increased. Not every fluctuation deserves an alert.&lt;/p&gt;

&lt;p&gt;This is where AI could make a real difference: &lt;strong&gt;not just detecting changes, but deciding which changes deserve human attention.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When something genuinely requires attention, the system should go beyond a simple notification and explain three things: &lt;strong&gt;What happened? Why might it have happened? What should we do next?&lt;/strong&gt; It should also provide supporting evidence and distinguish likely explanations from verified causes.&lt;/p&gt;


&lt;h2&gt;
  
  
  Explore more
&lt;/h2&gt;


&lt;div class="ltag__user ltag__user__id__1230121"&gt;
    &lt;a href="/luca1iu" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg" alt="luca1iu image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/luca1iu"&gt;Jin&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/luca1iu"&gt;Hi, I'm Jin! 👋 A data professional exploring the future of analytics in the AI era. Writing about how AI is changing the way we work with data, make decisions, and create value.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/lucaliu-data" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Luca_DataTeam" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on X&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>ai</category>
      <category>businessintelligence</category>
      <category>dataanalyst</category>
    </item>
    <item>
      <title>Two Futures of AI-Powered BI: Dashboard + AI Agent vs. Agent-First</title>
      <dc:creator>Jin</dc:creator>
      <pubDate>Fri, 06 Nov 2026 05:59:35 +0000</pubDate>
      <link>https://dev.to/luca1iu/two-futures-of-ai-powered-bi-dashboard-ai-agent-vs-agent-first-ncc</link>
      <guid>https://dev.to/luca1iu/two-futures-of-ai-powered-bi-dashboard-ai-agent-vs-agent-first-ncc</guid>
      <description>&lt;p&gt;In my &lt;a href="https://dataintheageofai.substack.com/p/how-ai-will-change-bi-from-dashboards" rel="noopener noreferrer"&gt;previous article&lt;/a&gt;, I explained how AI Agents could change Business Intelligence (BI) architecture. Instead of opening dashboards, business users could directly ask AI agents to analyze data.&lt;/p&gt;

&lt;p&gt;After reviewing the BI projects that I made in the real world, I started to see two possible approaches for the future of BI :&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dashboard + AI Agent, and Agent-First BI.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I think the choice between them depends on the scope of the data, the number of users, and how predictable their questions are.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Dashboard + AI Agent: When the Business Scope Is Clearly Defined
&lt;/h2&gt;

&lt;p&gt;Let me start with a project I worked on. I developed a procurement analytics solution called SpendCube using Azure Databricks, Azure SQL Database, and Power BI.&lt;/p&gt;

&lt;p&gt;The project had a clearly defined business scope. It was designed only for the procurement team, and all the KPIs were related to procurement activities.&lt;/p&gt;

&lt;p&gt;Some of these KPIs had complex business rules. I needed to discuss requirements with business owners, agree on calculation methods, and validate the results.&lt;/p&gt;

&lt;p&gt;However, the purpose of the system was clear: help the procurement team monitor and analyze its purchasing activities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For this kind of project, I believe a dashboard combined with an AI agent would be a very practical solution.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The dashboard provides a clear overview of important KPIs. Users can quickly check purchasing performance, compare different periods, and identify changes.&lt;/p&gt;

&lt;p&gt;At the same time, an AI agent could &lt;strong&gt;provide more flexibility&lt;/strong&gt;. AI agent could investigate the data, identify possible reasons, and create additional visualizations.&lt;/p&gt;

&lt;p&gt;For companies that already have Power BI dashboards, the next step could simply be adding an AI agent instead of rebuilding the entire BI system. &lt;/p&gt;

&lt;p&gt;Power BI Copilot is a good example of this approach. Organizations with the required Premium or Fabric capacity can use Copilot to let users explore their data through natural language. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The key challenge is making sure the AI agent and the dashboard return the same results.&lt;/strong&gt; If a user asks the AI agent for a KPI that already exists in the dashboard, both should provide the same value. To achieve this, the AI agent should use the existing semantic model, including its approved DAX measures and business rules, rather than creating its own calculations.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Agent-First BI: When Data Is Too Complex for Predefined Dashboards
&lt;/h2&gt;

&lt;p&gt;Now let's consider a very different situation.&lt;/p&gt;

&lt;p&gt;In my previous article, I discussed &lt;a href="https://www.microsoft.com/en/customers/story/19769-bmw-ag-azure-app-service" rel="noopener noreferrer"&gt;BMW's Mobile Data Recorder project&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;According to Microsoft's case study, BMW operates around 3,500 development vehicles, and its system collects more than 10,000 signals per vehicle.&lt;/p&gt;

&lt;p&gt;Imagine being an engineer working with this enormous dataset.&lt;/p&gt;

&lt;p&gt;One engineer wants to analyze braking behavior under certain conditions. Another wants to investigate battery performance. A third wants to understand unusual sensor readings.&lt;/p&gt;

&lt;p&gt;Different engineers work on different problems, and their questions can change every day.&lt;/p&gt;

&lt;p&gt;Unlike my SpendCube project, this isn't a situation where a small group of users mainly monitors a fixed set of KPIs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It would be extremely difficult to predict all possible questions and build dashboards for them in advance.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Even if hundreds of dashboards existed, engineers might still need new queries and visualizations to answer their specific questions.&lt;/p&gt;

&lt;p&gt;For this kind of environment, I believe an &lt;strong&gt;agent-first approach&lt;/strong&gt; would make more sense.&lt;/p&gt;

&lt;p&gt;Instead of opening a dashboard and looking for the right chart, engineers could directly describe what they want to investigate.&lt;/p&gt;

&lt;p&gt;The AI agent could identify relevant data, generate queries, analyze the results, and create visualizations when needed.&lt;/p&gt;

&lt;p&gt;In fact, BMW has already introduced elements of this approach. Its MDR copilot uses natural language to generate KQL queries and can also use knowledge collected from expert interviews.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead of building dashboards for questions we can predict, we could build AI agents that help users answer questions we cannot predict.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. How Do We Choose the Right Approach?
&lt;/h2&gt;

&lt;p&gt;The choice is not mainly about company size or data volume, but &lt;strong&gt;how clearly the business scope is defined and how predictable users' questions are.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For well-defined business requirements, a dashboard combined with an AI agent is often a practical solution.&lt;/p&gt;

&lt;p&gt;For complex, open-ended data exploration, an agent-first approach may offer more flexibility.&lt;/p&gt;

&lt;p&gt;Both approaches can also exist within the same company.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Final Thoughts
&lt;/h2&gt;

&lt;p&gt;I believe AI agents will become an important part of Business Intelligence, but not every BI system needs to become agent-first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The future of BI is not about replacing dashboards, but choosing the right interface for different analytical needs.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For data professionals, this also means a shift in focus: from building individual dashboards to creating trusted, reusable data foundations that support both dashboards and AI agents.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Thanks for reading&lt;/em&gt; &lt;a href="https://dataintheageofai.substack.com/" rel="noopener noreferrer"&gt;&lt;em&gt;Data in the Age of AI&lt;/em&gt;&lt;/a&gt;&lt;em&gt;. Follow along for more thoughts on data, AI, and Business Intelligence, or connect with me on&lt;/em&gt; &lt;a href="https://www.linkedin.com/in/lucaliu-data" rel="noopener noreferrer"&gt;&lt;em&gt;LinkedIn&lt;/em&gt;&lt;/a&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Explore more
&lt;/h2&gt;


&lt;div class="ltag__user ltag__user__id__1230121"&gt;
    &lt;a href="/luca1iu" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg" alt="luca1iu image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/luca1iu"&gt;Jin&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/luca1iu"&gt;Hi, I'm Jin! 👋 A data professional exploring the future of analytics in the AI era. Writing about how AI is changing the way we work with data, make decisions, and create value.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/lucaliu-data" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Luca_DataTeam" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on X&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>businessintelligence</category>
      <category>dataanalyst</category>
    </item>
    <item>
      <title>How AI Will Change BI - From Dashboards to AI Agents</title>
      <dc:creator>Jin</dc:creator>
      <pubDate>Sun, 01 Nov 2026 05:59:36 +0000</pubDate>
      <link>https://dev.to/luca1iu/how-ai-will-change-bi-from-dashboards-to-ai-agents-3ck</link>
      <guid>https://dev.to/luca1iu/how-ai-will-change-bi-from-dashboards-to-ai-agents-3ck</guid>
      <description>&lt;p&gt;For years, Business Intelligence (BI) has followed a familiar workflow: data engineers build models, data analysts create dashboards, and then deliver them to business users.&lt;/p&gt;

&lt;p&gt;AI is changing this workflow. Instead of opening a fancy Power BI or Tableau dashboard, users could ask AI questions directly, just like chatting with ChatGPT.&lt;/p&gt;

&lt;p&gt;Thanks for reading Data in the Age of AI! Subscribe for free to receive new posts and support my work.&lt;/p&gt;

&lt;p&gt;If AI will become the primary gateway to data analysis, what does it mean to data developer?&lt;/p&gt;

&lt;h2&gt;
  
  
  A real Example from BMW: Making Complex Data Accessible to Everyone
&lt;/h2&gt;

&lt;p&gt;I recently watched an &lt;a href="https://www.youtube.com/watch?v=KpQwWNkyEsQ" rel="noopener noreferrer"&gt;interview with Microsoft’s CoreAI leadership&lt;/a&gt; that discussed an interesting example from BMW.&lt;/p&gt;

&lt;p&gt;BMW operates thousands of development vehicles that generate enormous amounts of testing data. According to &lt;a href="https://www.microsoft.com/en/customers/story/19769-bmw-ag-azure-app-service" rel="noopener noreferrer"&gt;Microsoft’s BMW case study&lt;/a&gt;, its Mobile Data Recorder system captures more than 10,000 signals per vehicle, covering measurements such as braking, engine performance, and battery behavior.&lt;/p&gt;

&lt;p&gt;In a traditional BI workflow, data engineers build pipelines and prepare datasets, then data analysts define KPIs, create dashboards, and deliver reports to end users.&lt;/p&gt;

&lt;p&gt;But imagine what happens when data becomes extremely large and complex, with hundreds of business requirements constantly changing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Making AI Understand the Data, Not Human
&lt;/h3&gt;

&lt;p&gt;What impressed me most about BMW’s approach was not the AI technology itself, but the preparation behind it.&lt;/p&gt;

&lt;p&gt;In the interview, the speaker described that BMW spent six months working with different teams to build a data dictionary and document what their data actually meant.&lt;/p&gt;

&lt;p&gt;Imagine I were one of the people working on BMW’s project. I’m sitting in a meeting where a business team is explaining some incredibly complex business rules. Throughout the meeting, I have ChatGPT’s live voice mode running on my phone, listening to the discussion.&lt;/p&gt;

&lt;p&gt;At some point, someone from the business team turns to me and asks, “Do you understand everything?”&lt;/p&gt;

&lt;p&gt;I might simply turn to my phone and ask, “ChatGPT, did &lt;strong&gt;you&lt;/strong&gt; get all that?”&lt;/p&gt;

&lt;p&gt;It sounds funny, but it reflects a fundamental shift in how we work with data. &lt;strong&gt;The goal is no longer for one engineer to understand and remember every business rule. It’s to make that knowledge understandable to AI.&lt;/strong&gt; Of course, the AI’s understanding still needs to be verified by business experts.&lt;/p&gt;

&lt;p&gt;BMW’s engineers can now ask questions in natural language, such as how many braking maneuvers were performed over the last two days, and receive results with charts and explanations. According to &lt;a href="https://www.microsoft.com/en/customers/story/25683-bmw-ag-azure" rel="noopener noreferrer"&gt;Microsoft’s follow-up case study&lt;/a&gt;, its multi-agent system has demonstrated the potential to accelerate analysis by up to 12 times.&lt;/p&gt;

&lt;h3&gt;
  
  
  From Dashboards to Semantic Models and AI Agents
&lt;/h3&gt;

&lt;p&gt;For me, BMW’s example illustrates a much broader shift in Business Intelligence.&lt;/p&gt;

&lt;p&gt;Instead of expecting AI to figure out business meaning directly from raw tables, we need a trusted layer that defines metrics, relationships, and business rules. AI agents can then use that context to answer questions consistently.&lt;/p&gt;

&lt;p&gt;This is why I believe &lt;strong&gt;semantic models connected to AI agents will become a new way of delivering BI&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of delivering individual dashboards for predefined questions, data teams can deliver a reusable, governed foundation that allows business users to explore data and generate insights on demand.&lt;/p&gt;

&lt;p&gt;BMW is already demonstrating what this kind of transformation can look like in practice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the Semantic Layer Matters More Than Ever
&lt;/h2&gt;

&lt;p&gt;If AI agents become the primary interface for data analysis, one of the biggest challenges will be translating Text into SQL and ensuring that the results are actually correct.&lt;/p&gt;

&lt;p&gt;When I talk about the &lt;strong&gt;semantic layer&lt;/strong&gt;, I don’t just mean the Gold Layer tables that feed dashboards in a traditional data architecture. I mean a broader system of business context, including semantic models, KPI definitions, data relationships, calculation rules, and the logic behind how data should be interpreted.&lt;/p&gt;

&lt;p&gt;For example, calculating a sales win rate seems simple: won opportunities divided by total opportunities. But what counts as a won opportunity? Should open or cancelled opportunities be included? Which date should determine the reporting period? AI can generate syntactically correct SQL while still producing a completely wrong business result.&lt;/p&gt;

&lt;p&gt;Traditionally, semantic models were often designed around predefined KPIs and reporting requirements, with much of the business logic understood and maintained by data engineers and analysts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;But when AI agents replace dashboards as the main entry point for exploring data, the way we design the semantic layer needs to change.&lt;/strong&gt; Instead of supporting only predefined reports, it must provide enough business context for AI to answer questions that were never anticipated during development.&lt;/p&gt;

&lt;p&gt;The semantic layer is no longer just the foundation of consistent reporting. &lt;strong&gt;It becomes the foundation of reliable AI-driven analytics.&lt;/strong&gt; Its quality directly determines how accurately AI agents interpret business questions, and those answers ultimately influence real business decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Takeaway
&lt;/h2&gt;

&lt;p&gt;The future of BI is not simply AI replacing dashboards. It is a shift from &lt;strong&gt;dashboard-centered analytics to AI-assisted, context-driven analytics&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The BMW case presents a real-world project that illustrates how AI can unlock the potential of messy data.&lt;/p&gt;

&lt;p&gt;For data teams, I believe the biggest change will be in what we deliver. Instead of building individual dashboards to answer specific business questions, we will increasingly build &lt;strong&gt;governed semantic models connected to AI agents&lt;/strong&gt;, enabling users to explore data, ask questions, and generate insights on demand.&lt;/p&gt;




&lt;h2&gt;
  
  
  Explore more
&lt;/h2&gt;


&lt;div class="ltag__user ltag__user__id__1230121"&gt;
    &lt;a href="/luca1iu" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg" alt="luca1iu image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/luca1iu"&gt;Jin&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/luca1iu"&gt;Hi, I'm Jin! 👋 A data professional exploring the future of analytics in the AI era. Writing about how AI is changing the way we work with data, make decisions, and create value.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/lucaliu-data" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Luca_DataTeam" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on X&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>semanticlayer</category>
      <category>businessintelligence</category>
    </item>
    <item>
      <title>Best AI Coding Agent for the Money: What Databricks’ Benchmark Reveals</title>
      <dc:creator>Jin</dc:creator>
      <pubDate>Sun, 18 Oct 2026 15:59:38 +0000</pubDate>
      <link>https://dev.to/luca1iu/best-ai-coding-agent-for-the-money-what-databricks-benchmark-reveals-17aa</link>
      <guid>https://dev.to/luca1iu/best-ai-coding-agent-for-the-money-what-databricks-benchmark-reveals-17aa</guid>
      <description>&lt;p&gt;Recently I read Databricks’ article, &lt;a href="https://www.databricks.com/blog/benchmarking-coding-agents-databricks-multi-million-line-codebase" rel="noopener noreferrer"&gt;Benchmarking Coding Agents on Databricks’ Multi-Million Line Codebase&lt;/a&gt;. The article is long, but one point caught my attention: the cheapest AI model is not always the cheapest coding agent.&lt;/p&gt;

&lt;p&gt;Most people compare AI coding tools by model name, subscription price, or token price. But Databricks used a more practical metric: &lt;strong&gt;cost per completed task&lt;/strong&gt;. I think this is much more useful, because coding agents do not only consume tokens. They also need context, tool calls, retries, and time.&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Cost per token can be misleading&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;A model can be cheaper per token but still more expensive in real usage. If it needs more context, more turns, or more failed attempts, the final task cost can be higher.&lt;/p&gt;

&lt;p&gt;Databricks gave an interesting example. Sonnet 5 was cheaper per token than Opus 4.8, but in their benchmark, Sonnet 5 cost &lt;strong&gt;$2.09 per task&lt;/strong&gt;, while Opus 4.8 cost &lt;strong&gt;$1.94 per task&lt;/strong&gt;. So the cheaper model was actually more expensive per finished task.&lt;/p&gt;

&lt;p&gt;That is the key point: for coding agents, token price is not the full cost.&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;GLM 5.2 was surprisingly strong&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;Another interesting result was GLM 5.2. According to Databricks, GLM 5.2 reached the top capability tier and was statistically tied with Opus 4.8 on quality, but the cost was lower.&lt;/p&gt;

&lt;p&gt;GLM 5.2 cost &lt;strong&gt;$1.28 per task&lt;/strong&gt;, compared with &lt;strong&gt;$1.94 per task&lt;/strong&gt; for Opus 4.8. Of course, this does not mean GLM 5.2 is always the best choice. This was Databricks’ benchmark, based on Databricks’ own codebase and tasks.&lt;/p&gt;

&lt;p&gt;But it does show something important: open models are becoming serious options for coding agents, not just cheap alternatives.&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;The coding tool also matters&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;Another important point is that an AI coding agent is not only the model. The tool around the model also matters. Databricks calls this the &lt;strong&gt;harness&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The harness decides things like which files to read, how much context to send, how to call tools, and how to run tests. Databricks found that the same model can have very different cost per task depending on the harness.&lt;/p&gt;

&lt;p&gt;So when we compare AI coding agents, we should not only ask which model is smarter. We should also ask which tool uses the model more efficiently.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;My takeaway&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;For me, the biggest lesson is simple: do not compare AI coding agents only by token price.&lt;/p&gt;

&lt;p&gt;A cheaper model can become expensive if it needs more attempts. An expensive model can be better value if it solves the task faster. And the tool around the model can change the final cost dramatically.&lt;/p&gt;

&lt;p&gt;So the real question is not “Which AI coding agent is the best?” The better question is: &lt;strong&gt;Which AI coding agent can complete my real coding tasks at the lowest reliable cost?&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Explore more
&lt;/h2&gt;


&lt;div class="ltag__user ltag__user__id__1230121"&gt;
    &lt;a href="/luca1iu" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg" alt="luca1iu image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/luca1iu"&gt;Jin&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/luca1iu"&gt;Hi, I'm Jin! 👋 A data professional exploring the future of analytics in the AI era. Writing about how AI is changing the way we work with data, make decisions, and create value.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/lucaliu-data" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Luca_DataTeam" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on X&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>databricks</category>
      <category>benchmark</category>
    </item>
    <item>
      <title>How to Connect Azure SQL Database in Azure Databricks with PySpark</title>
      <dc:creator>Jin</dc:creator>
      <pubDate>Wed, 12 Aug 2026 06:59:55 +0000</pubDate>
      <link>https://dev.to/luca1iu/how-to-connect-azure-sql-database-in-azure-databricks-with-pyspark-557f</link>
      <guid>https://dev.to/luca1iu/how-to-connect-azure-sql-database-in-azure-databricks-with-pyspark-557f</guid>
      <description>&lt;p&gt;In this article, I will show how to connect &lt;strong&gt;Azure SQL Database&lt;/strong&gt; from &lt;strong&gt;Azure Databricks&lt;/strong&gt;, read a SQL table or query result, and write a Spark DataFrame back to Azure SQL Database.&lt;/p&gt;

&lt;p&gt;We will use &lt;strong&gt;PySpark&lt;/strong&gt; because Azure Databricks is built for distributed data processing. PySpark can read data from external databases into Spark DataFrames, transform the data at scale, and write the result back to Azure SQL Database. Microsoft also provides Spark connector support for SQL Server and Azure SQL as input data sources and output sinks for Spark jobs.&lt;/p&gt;

&lt;h1&gt;
  
  
  Connect the Azure SQK Database
&lt;/h1&gt;

&lt;p&gt;define the Azure SQL Database connection settings.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwf75o0zdrfwkhnv9bdib.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwf75o0zdrfwkhnv9bdib.png" width="800" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Read data from Azure SQL Database
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Read a full table and Read a SQL query&lt;/strong&gt; &lt;br&gt;
To read a full table, use the &lt;code&gt;dbtable&lt;/code&gt; option. To run a SQL query against Azure SQL Database and load the result into Databricks, use the &lt;code&gt;query&lt;/code&gt; option.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz18y1wnke9ntzxdrva2y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz18y1wnke9ntzxdrva2y.png" width="675" height="807"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Databricks also supports JDBC-style reads and writes with Spark Data Source APIs, including reading from a table or pushing down a source SQL query.&lt;/p&gt;
&lt;h1&gt;
  
  
  Write Data to Azure SQL Database
&lt;/h1&gt;

&lt;p&gt;In this example, we first create a small pandas DataFrame and convert it to a Spark DataFrame.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;

&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Product&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Laptop&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mouse&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Keyboard&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Monitor&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Headset&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Webcam&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;USB Hub&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Laptop&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mouse&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Monitor&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Region&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;North&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;South&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;East&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;West&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;North&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;East&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;South&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;West&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;North&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;East&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Units_Sold&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;42&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;17&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;38&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Revenue&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;22500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1260&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2400&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1875&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;850&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1800&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;33000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1140&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;pdf&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DataFrame&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;spark&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createDataFrame&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;display&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;In Azure Databricks notebooks, &lt;code&gt;spark&lt;/code&gt; is usually available automatically. If you run the code outside Databricks, you may need to create a SparkSession manually.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;.write.format("sqlserver")&lt;/code&gt; and provide the connection options.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;write&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;sqlserver&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;options&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;SQL_OPTIONS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;dbtable&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;dbo.test_table&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;overwrite&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;#or "append"
&lt;/span&gt;  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Explore more
&lt;/h2&gt;


&lt;div class="ltag__user ltag__user__id__1230121"&gt;
    &lt;a href="/luca1iu" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg" alt="luca1iu image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/luca1iu"&gt;Jin&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/luca1iu"&gt;Hi, I'm Jin! 👋 A data professional exploring the future of analytics in the AI era. Writing about how AI is changing the way we work with data, make decisions, and create value.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/lucaliu-data" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Luca_DataTeam" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on X&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>python</category>
      <category>databricks</category>
      <category>database</category>
      <category>pyspark</category>
    </item>
    <item>
      <title>DP-750: Databricks Asset Bundles, Git, and ALM Explained and with Real Exam Questions</title>
      <dc:creator>Jin</dc:creator>
      <pubDate>Tue, 11 Aug 2026 08:00:13 +0000</pubDate>
      <link>https://dev.to/luca1iu/dp-750-databricks-asset-bundles-git-and-alm-explained-and-with-real-exam-questions-1g1a</link>
      <guid>https://dev.to/luca1iu/dp-750-databricks-asset-bundles-git-and-alm-explained-and-with-real-exam-questions-1g1a</guid>
      <description>&lt;p&gt;When preparing for &lt;strong&gt;DP-750: Microsoft Certified: Azure Databricks Data Engineer Associate&lt;/strong&gt;, you need to understand how Azure Databricks projects are deployed and managed across environments.&lt;/p&gt;

&lt;p&gt;This article focuses on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Declarative Automation Bundles, also known in many exam-style questions as Databricks Asset Bundles&lt;/li&gt;
&lt;li&gt;&lt;code&gt;databricks.yml&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;bundle targets&lt;/li&gt;
&lt;li&gt;Databricks CLI deployment&lt;/li&gt;
&lt;li&gt;Git folders&lt;/li&gt;
&lt;li&gt;Git merge&lt;/li&gt;
&lt;li&gt;merge conflicts&lt;/li&gt;
&lt;li&gt;application lifecycle management, ALM&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The related questions in your DP-750 question bank are Q12, Q62, Q66, Q67, Q73, Q80, and Q81.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Why ALM matters in Azure Databricks
&lt;/h2&gt;

&lt;p&gt;In real data engineering projects, you do not want to manually copy notebooks, jobs, pipelines, and configuration from development to production.&lt;/p&gt;

&lt;p&gt;You need a repeatable process for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;source control&lt;/li&gt;
&lt;li&gt;deployment&lt;/li&gt;
&lt;li&gt;environment-specific configuration&lt;/li&gt;
&lt;li&gt;promotion from development to production&lt;/li&gt;
&lt;li&gt;CI/CD automation&lt;/li&gt;
&lt;li&gt;rollback&lt;/li&gt;
&lt;li&gt;team collaboration&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is called &lt;strong&gt;application lifecycle management&lt;/strong&gt;, or &lt;strong&gt;ALM&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For DP-750, the common ALM pattern is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Use Git for source control.
Use Declarative Automation Bundles for deployable Databricks resources.
Use Databricks CLI to validate, deploy, and run bundles.
Use targets to parameterize environments such as dev, test, and prod.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Microsoft documentation describes Declarative Automation Bundles as the recommended approach to CI/CD on Databricks. Bundles describe resources such as jobs and pipelines as source files, can be source controlled, and can be deployed through external CI/CD automation.&lt;/p&gt;


&lt;h2&gt;
  
  
  2. What are Declarative Automation Bundles?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Declarative Automation Bundles&lt;/strong&gt; are a way to define a Databricks project as files.&lt;/p&gt;

&lt;p&gt;They were formerly known as &lt;strong&gt;Databricks Asset Bundles&lt;/strong&gt;, and many exam questions still use the older name.&lt;/p&gt;

&lt;p&gt;A bundle can include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;jobs&lt;/li&gt;
&lt;li&gt;pipelines&lt;/li&gt;
&lt;li&gt;apps&lt;/li&gt;
&lt;li&gt;notebooks&lt;/li&gt;
&lt;li&gt;Python files&lt;/li&gt;
&lt;li&gt;SQL files&lt;/li&gt;
&lt;li&gt;configuration&lt;/li&gt;
&lt;li&gt;environment-specific targets&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A bundle is usually defined with a YAML file named:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;databricks.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Microsoft documentation says bundle metadata is defined using YAML files that specify the artifacts, resources, and configuration of a Databricks project. The Databricks CLI can then validate, deploy, and run bundles using these YAML files.&lt;/p&gt;

&lt;p&gt;For DP-750, remember:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Declarative Automation Bundles = repeatable deployment of Databricks resources
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Why use bundles instead of manual workspace export/import?
&lt;/h2&gt;

&lt;p&gt;Manual export and import can work for simple cases, but it is not a strong ALM process.&lt;/p&gt;

&lt;p&gt;It is weak because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;it is manual&lt;/li&gt;
&lt;li&gt;it is hard to repeat consistently&lt;/li&gt;
&lt;li&gt;environment parameters are difficult to manage&lt;/li&gt;
&lt;li&gt;promotion between dev/test/prod is error-prone&lt;/li&gt;
&lt;li&gt;source control is weaker&lt;/li&gt;
&lt;li&gt;CI/CD integration is harder&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Bundles are better because the project is defined as code.&lt;/p&gt;

&lt;p&gt;For example, a bundle can define:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Job A
Job B
Pipeline C
App D
dev target
prod target
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Then the same project can be deployed repeatedly.&lt;/p&gt;

&lt;p&gt;For DP-750, if the requirement says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Deploy notebooks, workflows, and jobs in a consistent and repeatable way.
Parameterize the target deployment environment.
Provide source control.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;the answer should point to:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Declarative Automation Bundles in Git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. &lt;code&gt;databricks.yml&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;The main configuration file for a bundle is usually:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;databricks.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;A very small example looks like this:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;bundle&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;my_bundle&lt;/span&gt;

&lt;span class="na"&gt;targets&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;dev&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;default&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Microsoft documentation says the simplest &lt;code&gt;databricks.yml&lt;/code&gt; defines the bundle name and a target deployment.&lt;/p&gt;

&lt;p&gt;In real projects, &lt;code&gt;databricks.yml&lt;/code&gt; often contains:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;bundle&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dp750_project&lt;/span&gt;

&lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;ingestion_job&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ingestion_job&lt;/span&gt;
      &lt;span class="na"&gt;tasks&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;task_key&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ingest&lt;/span&gt;
          &lt;span class="na"&gt;notebook_task&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
            &lt;span class="na"&gt;notebook_path&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;./src/ingest.py&lt;/span&gt;

&lt;span class="na"&gt;targets&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;dev&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;default&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="na"&gt;workspace&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;host&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://adb-dev.azuredatabricks.net&lt;/span&gt;

  &lt;span class="na"&gt;prod&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;production&lt;/span&gt;
    &lt;span class="na"&gt;workspace&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;host&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://adb-prod.azuredatabricks.net&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For DP-750, you usually do not need to memorize every YAML property. You need to know what each major node is for.&lt;/p&gt;


&lt;h2&gt;
  
  
  5. Important bundle nodes
&lt;/h2&gt;

&lt;p&gt;The most important nodes for DP-750 are:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Node&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;bundle&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Defines bundle metadata, such as the bundle name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;resources&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Defines deployable resources, such as jobs, pipelines, and apps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;targets&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Defines deployment environments such as dev and prod&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;variables&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Defines reusable parameters&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;workspace&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Defines target workspace settings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;artifacts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Defines build artifacts such as Python packages&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For exam questions, the most important one is usually:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;targets
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. What are targets?
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;target&lt;/strong&gt; is an environment-specific deployment configuration.&lt;/p&gt;

&lt;p&gt;Common examples:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dev
test
prod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Targets let you deploy the same bundle to different environments with different settings.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;targets&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;dev&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;default&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="na"&gt;workspace&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;host&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://adb-dev.azuredatabricks.net&lt;/span&gt;

  &lt;span class="na"&gt;prod&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;production&lt;/span&gt;
    &lt;span class="na"&gt;workspace&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;host&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://adb-prod.azuredatabricks.net&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Microsoft documentation explains that target workspaces are defined in the &lt;code&gt;targets&lt;/code&gt; mapping of the bundle’s &lt;code&gt;databricks.yml&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Deploy same bundle to dev and prod = use targets
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. Targets for selective deployment
&lt;/h2&gt;

&lt;p&gt;Some exam questions ask something like:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You have two jobs and an app.
You need to deploy the app to both environments.
You need to deploy only one job to development.
Minimize administrative effort.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This points to target-specific configuration.&lt;/p&gt;

&lt;p&gt;The answer is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Use a targets node in databricks.yml.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Why?&lt;/p&gt;

&lt;p&gt;Because &lt;code&gt;targets&lt;/code&gt; lets you define different deployment behavior for different environments.&lt;/p&gt;

&lt;p&gt;A simplified example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;job_a&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;job_a&lt;/span&gt;

    &lt;span class="na"&gt;job_b&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;job_b&lt;/span&gt;

  &lt;span class="na"&gt;apps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;my_app&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;my_app&lt;/span&gt;

&lt;span class="na"&gt;targets&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;dev&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;job_a&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;job_a_dev&lt;/span&gt;

  &lt;span class="na"&gt;prod&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;job_a&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;job_a_prod&lt;/span&gt;
        &lt;span class="na"&gt;job_b&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;job_b_prod&lt;/span&gt;
      &lt;span class="na"&gt;apps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;my_app&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;my_app_prod&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The exact syntax depends on the project, but the concept is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;targets control environment-specific deployment behavior.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  8. Databricks CLI and bundles
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;Databricks CLI&lt;/strong&gt; is the standard tool used to work with bundles.&lt;/p&gt;

&lt;p&gt;Common commands include:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;databricks bundle validate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;databricks bundle deploy &lt;span class="nt"&gt;--target&lt;/span&gt; dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;databricks bundle run &amp;lt;job-name&amp;gt; &lt;span class="nt"&gt;--target&lt;/span&gt; dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Microsoft documentation says you use Databricks CLI bundle commands to create, validate, deploy, run, and destroy bundles.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Deploy Declarative Automation Bundles = Databricks CLI
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;not:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Jobs UI
Git folders only
Databricks SDK for Python
Azure CLI
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Those tools may be useful in other scenarios, but the standard bundle deployment tool is the Databricks CLI.&lt;/p&gt;


&lt;h2&gt;
  
  
  9. &lt;code&gt;databricks bundle deploy --target dev&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;One common exam question asks how to complete the command for deploying a bundle to the &lt;code&gt;dev&lt;/code&gt; environment.&lt;/p&gt;

&lt;p&gt;The correct command is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;databricks bundle deploy &lt;span class="nt"&gt;--target&lt;/span&gt; dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The Databricks CLI bundle command documentation says that to deploy a bundle to a specific target, you can use the &lt;code&gt;-t&lt;/code&gt; or &lt;code&gt;--target&lt;/code&gt; option.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Deploy bundle to dev&lt;/td&gt;
&lt;td&gt;&lt;code&gt;databricks bundle deploy --target dev&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Validate bundle&lt;/td&gt;
&lt;td&gt;&lt;code&gt;databricks bundle validate&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Run bundle workflow&lt;/td&gt;
&lt;td&gt;&lt;code&gt;databricks bundle run&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  10. Git folders in Azure Databricks
&lt;/h2&gt;

&lt;p&gt;Azure Databricks Git folders integrate notebooks and source files with Git repositories.&lt;/p&gt;

&lt;p&gt;They allow teams to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;clone repositories&lt;/li&gt;
&lt;li&gt;create branches&lt;/li&gt;
&lt;li&gt;commit changes&lt;/li&gt;
&lt;li&gt;push changes&lt;/li&gt;
&lt;li&gt;pull changes&lt;/li&gt;
&lt;li&gt;merge branches&lt;/li&gt;
&lt;li&gt;resolve conflicts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Microsoft documentation describes Git folders as supporting repository cloning, branch management, commits, merge conflict resolution, and Git CLI commands.&lt;/p&gt;

&lt;p&gt;For DP-750, Git folders are often tested through basic Git operations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;merge&lt;/li&gt;
&lt;li&gt;pull&lt;/li&gt;
&lt;li&gt;push&lt;/li&gt;
&lt;li&gt;rebase&lt;/li&gt;
&lt;li&gt;conflict resolution&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  11. Merge vs rebase vs pull vs push
&lt;/h2&gt;

&lt;p&gt;A common DP-750 question asks:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;From the main branch, you create Branch1 and commit changes to Branch1.
You need to incorporate the changes from Branch1 into main.
The solution must preserve commit history.
Which Git operation should you use?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The correct answer is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;merge
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Microsoft documentation says the merge function in Azure Databricks Git folders uses &lt;code&gt;git merge&lt;/code&gt; to combine the commit history from one branch into another. It also recommends merge instead of rebase for Git beginners because merge does not rewrite commit history.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Git operation&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;merge&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Combine changes from one branch into another while preserving history&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;rebase&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Replay commits on top of another branch; can rewrite history&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pull&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fetch and integrate remote changes into current branch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;push&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Send local commits to remote repository&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If the question says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;preserve commit history
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;choose:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;merge
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  12. Merge conflicts
&lt;/h2&gt;

&lt;p&gt;A merge conflict happens when Git cannot automatically combine changes.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You changed &lt;code&gt;Notebook1&lt;/code&gt; in &lt;code&gt;Branch1&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Another user changed the same part of &lt;code&gt;Notebook1&lt;/code&gt; in &lt;code&gt;main&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;You try to merge &lt;code&gt;Branch1&lt;/code&gt; into &lt;code&gt;main&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Git cannot decide which version to keep.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this case, you must resolve the conflict manually.&lt;/p&gt;

&lt;p&gt;Databricks documentation says that to manually resolve conflicts, you edit the file contents, select the lines you want to preserve, remove merge conflict markers, and mark the conflict as resolved.&lt;/p&gt;

&lt;p&gt;For DP-750, the best answer pattern is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Apply the main branch changes to Branch1 and resolve the conflicts.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This lets you include all changes from both branches before merging.&lt;/p&gt;


&lt;h2&gt;
  
  
  13. Why not clone a new repository?
&lt;/h2&gt;

&lt;p&gt;Some wrong answers suggest cloning the main branch or feature branch as a new repository.&lt;/p&gt;

&lt;p&gt;That does not solve the merge conflict.&lt;/p&gt;

&lt;p&gt;A conflict is about combining changes in the same repository history.&lt;/p&gt;

&lt;p&gt;Creating a new clone may give you another working copy, but it does not automatically integrate both sets of changes into &lt;code&gt;main&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Merge conflict = resolve conflict
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;not:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;clone a new repository
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  14. Git folders vs Declarative Automation Bundles
&lt;/h2&gt;

&lt;p&gt;Git folders and bundles are related, but they are not the same.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Git folders&lt;/td&gt;
&lt;td&gt;Source control and collaboration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Declarative Automation Bundles&lt;/td&gt;
&lt;td&gt;Define and deploy Databricks resources&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Databricks CLI&lt;/td&gt;
&lt;td&gt;Execute bundle commands such as validate/deploy/run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Targets&lt;/td&gt;
&lt;td&gt;Environment-specific deployment configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A strong production ALM pattern usually combines them:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Code and bundle files stored in Git.
Bundle defines jobs, pipelines, apps, and configuration.
Databricks CLI deploys the bundle to dev/test/prod.
CI/CD system automates the deployment.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Git alone is not enough for repeatable environment deployment.
Bundles alone without Git are weaker for source control.
Bundles in Git is the best ALM pattern.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  15. Declarative Automation Bundles vs Terraform
&lt;/h2&gt;

&lt;p&gt;Terraform can manage Databricks resources, and it can be useful for infrastructure-as-code scenarios.&lt;/p&gt;

&lt;p&gt;However, DP-750 questions about notebooks, workflows, jobs, target environment parameterization, and repeatable project deployment often expect:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Declarative Automation Bundles in Git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This is because bundles are specifically designed for Databricks project deployment and CI/CD.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Best answer pattern&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Deploy notebooks, workflows, and jobs as a project&lt;/td&gt;
&lt;td&gt;Declarative Automation Bundles&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Source control project files&lt;/td&gt;
&lt;td&gt;Git&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parameterize target environment&lt;/td&gt;
&lt;td&gt;Bundle targets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deploy bundle&lt;/td&gt;
&lt;td&gt;Databricks CLI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Manage lower-level cloud infrastructure&lt;/td&gt;
&lt;td&gt;Terraform may be relevant, but not usually the DP-750 bundle answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  16. DP-750 decision table for bundles, Git, and ALM
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario in the question&lt;/th&gt;
&lt;th&gt;Best answer pattern&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Repeatable deployment of notebooks, workflows, and jobs&lt;/td&gt;
&lt;td&gt;Declarative Automation Bundles&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Source control for Databricks project&lt;/td&gt;
&lt;td&gt;Git&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parameterize dev/test/prod&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;targets&lt;/code&gt; in &lt;code&gt;databricks.yml&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deploy bundle to dev&lt;/td&gt;
&lt;td&gt;&lt;code&gt;databricks bundle deploy --target dev&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tool used to deploy bundles&lt;/td&gt;
&lt;td&gt;Databricks CLI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bundle contains two jobs and an app with environment-specific deployment&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;targets&lt;/code&gt; node&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Preserve commit history when combining branches&lt;/td&gt;
&lt;td&gt;Merge&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Merge fails because of conflicts&lt;/td&gt;
&lt;td&gt;Apply main changes to branch and resolve conflicts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clone new repository to solve conflict&lt;/td&gt;
&lt;td&gt;Wrong&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Manual workspace export/import for ALM&lt;/td&gt;
&lt;td&gt;Weak / not preferred&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h1&gt;
  
  
  Real Exam Questions
&lt;/h1&gt;
&lt;h2&gt;
  
  
  Question 12
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks solution that was developed by multiple engineers and deployed to development, test, and production environments.&lt;/p&gt;

&lt;p&gt;You need to implement an application lifecycle management, ALM, process that meets the following requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Deploys and provides source control for Databricks notebooks, workflows, and jobs in a consistent and repeatable way.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Parameterizes the target deployment environment.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What should you include in the solution?&lt;/p&gt;

&lt;p&gt;A. the export and import of Databricks workspaces&lt;/p&gt;

&lt;p&gt;B. Databricks resources managed by using the Databricks Terraform provider&lt;/p&gt;

&lt;p&gt;C. Git folders and manual promotion&lt;/p&gt;

&lt;p&gt;D. Declarative Automation Bundles in Git ✅ Correct Answer&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 62
&lt;/h2&gt;

&lt;p&gt;You use Databricks Asset Bundles to manage two jobs and an app.&lt;/p&gt;

&lt;p&gt;You need to deploy the bundle to development and production environments.&lt;/p&gt;

&lt;p&gt;The solution must meet the following requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Deploy the app to both environments.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Deploy only one job to development.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Minimize administrative effort.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What should you use?&lt;/p&gt;

&lt;p&gt;A. separate databricks.yml files for each environment&lt;/p&gt;

&lt;p&gt;B. a variables node in a databricks.yml file&lt;/p&gt;

&lt;p&gt;C. a resources node in a databricks.yml file&lt;/p&gt;

&lt;p&gt;D. a targets node in a databricks.yml file ✅ Correct Answer&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 66
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that contains a Git folder and uses an Azure Repos Git repository.&lt;/p&gt;

&lt;p&gt;From the main branch, you create a branch named Branch1 and commit changes to Branch1.&lt;/p&gt;

&lt;p&gt;You need to incorporate the changes from Branch1 into main. The solution must preserve the commit history in the repository.&lt;/p&gt;

&lt;p&gt;Which Git operation should you use?&lt;/p&gt;

&lt;p&gt;A. rebase&lt;/p&gt;

&lt;p&gt;B. pull&lt;/p&gt;

&lt;p&gt;C. merge ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;D. push&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 67
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace named Workspace1 that uses a Git repository. The repository contains a Databricks notebook named Notebook1.&lt;/p&gt;

&lt;p&gt;From the main branch, you create a feature branch named Branch1 and commit changes to Notebook1. Another user commits changes to Notebook1 in main.&lt;/p&gt;

&lt;p&gt;When you attempt to merge Branch1 into main, the merge fails due to conflicts.&lt;/p&gt;

&lt;p&gt;You need to merge Branch1 into the main branch. The solution must ensure that Notebook1 includes all the changes from both the branches.&lt;/p&gt;

&lt;p&gt;What should you do?&lt;/p&gt;

&lt;p&gt;A. From Workspace1, clone the main branch as a new repository.&lt;/p&gt;

&lt;p&gt;B. Apply the main branch changes to Branch1 and resolve the conflicts. ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;C. From Workspace1, clone Branch1 as a new repository.&lt;/p&gt;

&lt;p&gt;D. Apply the changes directly to the main branch.&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 73
&lt;/h2&gt;

&lt;p&gt;You need to deploy Databricks Asset Bundles to a development environment. The solution must support automated and repeatable deployments across environments.&lt;/p&gt;

&lt;p&gt;What should you use?&lt;/p&gt;

&lt;p&gt;A. Git folders&lt;/p&gt;

&lt;p&gt;B. the Databricks CLI ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;C. the Databricks SDK for Python&lt;/p&gt;

&lt;p&gt;D. the Jobs UI&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 80
&lt;/h2&gt;

&lt;p&gt;You have a Declarative Automation Bundle.&lt;/p&gt;

&lt;p&gt;You plan to use the Databricks CLI to deploy the bundle to an environment named dev.&lt;/p&gt;

&lt;p&gt;How should you complete the CLI command?&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Dropdown 1&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;databricks bundle&lt;/code&gt; ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dropdown 2&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;deploy --target dev&lt;/code&gt; ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Completed command:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;databricks bundle deploy &lt;span class="nt"&gt;--target&lt;/span&gt; dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Question 81
&lt;/h2&gt;

&lt;p&gt;You need to deploy Declarative Automation Bundles to a development environment. The solution must support automated and repeatable deployments across environments.&lt;/p&gt;

&lt;p&gt;What should you use?&lt;/p&gt;

&lt;p&gt;A. the Databricks CLI ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;B. Git folders&lt;/p&gt;

&lt;p&gt;C. the Azure Developer CLI, azd&lt;/p&gt;

&lt;p&gt;D. the Azure Command-Line Interface, CLI&lt;/p&gt;


&lt;h1&gt;
  
  
  Key takeaways
&lt;/h1&gt;

&lt;p&gt;For DP-750, Databricks Asset Bundles, Git, and ALM questions usually test whether you know how to deploy Databricks projects repeatably across environments.&lt;/p&gt;

&lt;p&gt;Remember these patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Declarative Automation Bundles are the modern Databricks project deployment mechanism.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Many exam questions still call them Databricks Asset Bundles.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Bundle configuration is usually stored in &lt;code&gt;databricks.yml&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;resources&lt;/code&gt; define deployable objects such as jobs, pipelines, and apps.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;targets&lt;/code&gt; define environment-specific deployment settings.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The Databricks CLI is used to validate, deploy, and run bundles.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To deploy to dev, use &lt;code&gt;databricks bundle deploy --target dev&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Git folders provide source control and collaboration.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use &lt;code&gt;merge&lt;/code&gt; to incorporate one branch into another while preserving commit history.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If a merge conflict happens, apply the latest main branch changes to the feature branch and resolve the conflict.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Git folders alone are not the same as a full ALM deployment strategy.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Bundles in Git provide source-controlled, repeatable, environment-aware Databricks deployment.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you can separate &lt;strong&gt;source control&lt;/strong&gt;, &lt;strong&gt;deployment configuration&lt;/strong&gt;, &lt;strong&gt;environment targets&lt;/strong&gt;, and &lt;strong&gt;Git branch operations&lt;/strong&gt;, these DP-750 ALM questions become much easier.&lt;/p&gt;


&lt;h2&gt;
  
  
  Explore more
&lt;/h2&gt;


&lt;div class="ltag__user ltag__user__id__1230121"&gt;
    &lt;a href="/luca1iu" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg" alt="luca1iu image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/luca1iu"&gt;Jin&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/luca1iu"&gt;Hi, I'm Jin! 👋 A data professional exploring the future of analytics in the AI era. Writing about how AI is changing the way we work with data, make decisions, and create value.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/lucaliu-data" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Luca_DataTeam" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on X&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>azure</category>
      <category>databricks</category>
      <category>certification</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Azure Databricks: Fix “DataFrame Object Has No Attribute write”</title>
      <dc:creator>Jin</dc:creator>
      <pubDate>Tue, 11 Aug 2026 08:00:07 +0000</pubDate>
      <link>https://dev.to/luca1iu/azure-databricks-fix-dataframe-object-has-no-attribute-write-2dd6</link>
      <guid>https://dev.to/luca1iu/azure-databricks-fix-dataframe-object-has-no-attribute-write-2dd6</guid>
      <description>&lt;p&gt;While writing data from an Azure Databricks notebook to SQL Server, I encountered the following error:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AttributeError: 'DataFrame' object has no attribute 'write'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The notebook was running on &lt;strong&gt;Azure Databricks Serverless Compute&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The error occurred because the DataFrame was created with pandas, but the code attempted to use the PySpark &lt;code&gt;.write&lt;/code&gt; API.&lt;/p&gt;
&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Suppose we have a Pandas DataFrame:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;

&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Product&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Laptop&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mouse&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Keyboard&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Monitor&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Headset&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Webcam&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;USB Hub&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Laptop&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mouse&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Monitor&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Region&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;North&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;South&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;East&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;West&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;North&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;East&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;South&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;West&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;North&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;East&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Units_Sold&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;42&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;17&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;38&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Revenue&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="mi"&gt;22500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1260&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2400&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1875&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="mi"&gt;850&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1800&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;33000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1140&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4000&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DataFrame&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;We then try to write the DataFrame to SQL Server:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;write&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;sqlserver&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;options&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;SQL_OPTIONS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;dbtable&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;test_table&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;overwrite&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The operation fails with:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpvk5jl39u4e5gxtxbfit.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpvk5jl39u4e5gxtxbfit.png" width="799" height="374"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Why This Error Happens
&lt;/h2&gt;

&lt;p&gt;The variable &lt;code&gt;df&lt;/code&gt; is a &lt;strong&gt;Pandas DataFrame&lt;/strong&gt;, not a &lt;strong&gt;PySpark DataFrame&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can confirm this by checking its type:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;type&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The result will be similar to:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;class 'pandas.core.frame.DataFrame'&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Pandas and PySpark both use the name &lt;code&gt;DataFrame&lt;/code&gt;, but they are different Python classes with different APIs.&lt;/p&gt;

&lt;p&gt;A Pandas DataFrame provides writing methods such as:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_csv&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_excel&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_parquet&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_sql&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;It does not provide the Spark &lt;code&gt;.write&lt;/code&gt; property.&lt;/p&gt;

&lt;p&gt;The following syntax belongs to the PySpark DataFrame API:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;write&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(...).&lt;/span&gt;&lt;span class="nf"&gt;options&lt;/span&gt;&lt;span class="p"&gt;(...).&lt;/span&gt;&lt;span class="nf"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;(...).&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For a PySpark DataFrame, &lt;code&gt;.write&lt;/code&gt; returns a &lt;code&gt;DataFrameWriter&lt;/code&gt;, which is responsible for writing data to external storage systems and databases.&lt;/p&gt;
&lt;h2&gt;
  
  
  The Solution
&lt;/h2&gt;

&lt;p&gt;Convert the Pandas DataFrame to a PySpark DataFrame before calling &lt;code&gt;.write&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;spark&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createDataFrame&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;After the conversion, the write operation works:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;write&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;sqlserver&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;options&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;SQL_OPTIONS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;dbtable&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;test_table&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;overwrite&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;spark.createDataFrame()&lt;/code&gt; can create a PySpark DataFrame directly from a Pandas DataFrame. Spark converts the local Pandas data into a Spark DataFrame and infers the column schema when no schema is provided.&lt;/p&gt;
&lt;h2&gt;
  
  
  Complete Working Example
&lt;/h2&gt;

&lt;p&gt;Using different variable names makes it clear which DataFrame type is being used:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi20ixk7pp9n1pj8db4eo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi20ixk7pp9n1pj8db4eo.png" width="589" height="694"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;The error is caused by using a PySpark method on a Pandas DataFrame.&lt;/p&gt;


&lt;h2&gt;
  
  
  Explore more
&lt;/h2&gt;


&lt;div class="ltag__user ltag__user__id__1230121"&gt;
    &lt;a href="/luca1iu" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg" alt="luca1iu image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/luca1iu"&gt;Jin&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/luca1iu"&gt;Hi, I'm Jin! 👋 A data professional exploring the future of analytics in the AI era. Writing about how AI is changing the way we work with data, make decisions, and create value.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/lucaliu-data" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Luca_DataTeam" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on X&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>dataanalyst</category>
      <category>pandas</category>
      <category>pyspark</category>
      <category>database</category>
    </item>
    <item>
      <title>DP-750: Slowly Changing Dimensions and Data Quality Expectations Explained and with Real Exam Questions</title>
      <dc:creator>Jin</dc:creator>
      <pubDate>Mon, 10 Aug 2026 12:02:13 +0000</pubDate>
      <link>https://dev.to/luca1iu/dp-750-slowly-changing-dimensions-and-data-quality-expectations-explained-and-with-real-exam-27nj</link>
      <guid>https://dev.to/luca1iu/dp-750-slowly-changing-dimensions-and-data-quality-expectations-explained-and-with-real-exam-27nj</guid>
      <description>&lt;p&gt;When preparing for &lt;strong&gt;DP-750: Microsoft Certified: Azure Databricks Data Engineer Associate&lt;/strong&gt;, you need to understand two related but different topics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Slowly Changing Dimensions&lt;/strong&gt;, SCD&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data quality expectations&lt;/strong&gt; in Lakeflow Spark Declarative Pipelines&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;SCD is about how to model changes in dimension data over time.&lt;/p&gt;

&lt;p&gt;Data quality expectations are about validating records as they flow through a pipeline.&lt;/p&gt;

&lt;p&gt;The related questions in your DP-750 question bank are Q36, Q55, Q57, Q76, Q77, and Q78.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. What is a Slowly Changing Dimension?
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;Slowly Changing Dimension&lt;/strong&gt;, or &lt;strong&gt;SCD&lt;/strong&gt;, is a data modeling pattern used when dimension records change over time.&lt;/p&gt;

&lt;p&gt;A dimension table usually stores descriptive business data, such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;customer profile&lt;/li&gt;
&lt;li&gt;equipment metadata&lt;/li&gt;
&lt;li&gt;product information&lt;/li&gt;
&lt;li&gt;employee information&lt;/li&gt;
&lt;li&gt;supplier information&lt;/li&gt;
&lt;li&gt;IoT sensor ownership&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;equipment_id = E001
equipment_name = Turbine A
manufacturer = Contoso Energy
owner = Team West
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Over time, some values may change:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;owner = Team Central
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The question is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Should we overwrite the old value, or should we keep the full history?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is where SCD types are used.&lt;/p&gt;


&lt;h2&gt;
  
  
  2. SCD Type 1
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;SCD Type 1&lt;/strong&gt; overwrites existing values.&lt;/p&gt;

&lt;p&gt;It does not preserve historical versions.&lt;/p&gt;

&lt;p&gt;Example before update:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;equipment_id&lt;/th&gt;
&lt;th&gt;equipment_name&lt;/th&gt;
&lt;th&gt;manufacturer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;E001&lt;/td&gt;
&lt;td&gt;Turbine A&lt;/td&gt;
&lt;td&gt;Contoso Energy&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Example after correction:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;equipment_id&lt;/th&gt;
&lt;th&gt;equipment_name&lt;/th&gt;
&lt;th&gt;manufacturer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;E001&lt;/td&gt;
&lt;td&gt;Turbine Alpha&lt;/td&gt;
&lt;td&gt;Contoso Energy&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The old value, &lt;code&gt;Turbine A&lt;/code&gt;, is replaced.&lt;/p&gt;

&lt;p&gt;Use SCD Type 1 when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the old value is not needed&lt;/li&gt;
&lt;li&gt;the change is a correction&lt;/li&gt;
&lt;li&gt;the previous value was a data-entry mistake&lt;/li&gt;
&lt;li&gt;only the latest value matters&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Databricks documentation describes SCD Type 1 as history tracking off: outdated records are overwritten when they are updated or deleted in the source.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Historical values are NOT required = SCD Type 1
Data-entry mistake correction = SCD Type 1
Overwrite existing values = SCD Type 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. SCD Type 2
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;SCD Type 2&lt;/strong&gt; keeps history.&lt;/p&gt;

&lt;p&gt;Instead of overwriting the old row, it creates a new row and marks which version is current.&lt;/p&gt;

&lt;p&gt;Example before ownership change:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;sensor_id&lt;/th&gt;
&lt;th&gt;owner&lt;/th&gt;
&lt;th&gt;valid_from&lt;/th&gt;
&lt;th&gt;valid_to&lt;/th&gt;
&lt;th&gt;is_current&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;S001&lt;/td&gt;
&lt;td&gt;Team West&lt;/td&gt;
&lt;td&gt;2025-01-01&lt;/td&gt;
&lt;td&gt;null&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Example after ownership change:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;sensor_id&lt;/th&gt;
&lt;th&gt;owner&lt;/th&gt;
&lt;th&gt;valid_from&lt;/th&gt;
&lt;th&gt;valid_to&lt;/th&gt;
&lt;th&gt;is_current&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;S001&lt;/td&gt;
&lt;td&gt;Team West&lt;/td&gt;
&lt;td&gt;2025-01-01&lt;/td&gt;
&lt;td&gt;2026-03-01&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;S001&lt;/td&gt;
&lt;td&gt;Team Central&lt;/td&gt;
&lt;td&gt;2026-03-01&lt;/td&gt;
&lt;td&gt;null&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Use SCD Type 2 when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;business users need historical tracking&lt;/li&gt;
&lt;li&gt;analysts need to know what was true at a previous time&lt;/li&gt;
&lt;li&gt;ownership changes over time&lt;/li&gt;
&lt;li&gt;full history must be preserved&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Databricks documentation describes SCD Type 2 as history tracking on: the ingestion pipeline keeps the old row, adds the update as a new row, and marks the old row as inactive.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Track full history = SCD Type 2
Ownership changes over time = SCD Type 2
Keep old row and add new row = SCD Type 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. SCD Type 1 vs SCD Type 2
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;SCD type&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Correct data-entry mistakes&lt;/td&gt;
&lt;td&gt;Type 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Historical values are not required&lt;/td&gt;
&lt;td&gt;Type 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Only latest value matters&lt;/td&gt;
&lt;td&gt;Type 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Overwrite existing values&lt;/td&gt;
&lt;td&gt;Type 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Track ownership changes over time&lt;/td&gt;
&lt;td&gt;Type 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Keep full history&lt;/td&gt;
&lt;td&gt;Type 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Add a new row for each change&lt;/td&gt;
&lt;td&gt;Type 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Support historical analysis&lt;/td&gt;
&lt;td&gt;Type 2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is one of the most important DP-750 decision patterns.&lt;/p&gt;

&lt;p&gt;If the question says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Historical values are NOT required.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;choose &lt;strong&gt;Type 1&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If the question says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Analysts must track the full history.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;choose &lt;strong&gt;Type 2&lt;/strong&gt;.&lt;/p&gt;


&lt;h2&gt;
  
  
  5. SCD Type 2 and Lakeflow
&lt;/h2&gt;

&lt;p&gt;Lakeflow Spark Declarative Pipelines can support CDC and SCD patterns.&lt;/p&gt;

&lt;p&gt;Databricks documentation shows that Lakeflow SDP can create a Type 2 SCD table to track all changes, and uses &lt;code&gt;AUTO CDC ... INTO&lt;/code&gt; to apply changes into the final table.&lt;/p&gt;

&lt;p&gt;In Lakeflow SQL, SCD Type 2 can be expressed with:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="n"&gt;STORED&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;SCD&lt;/span&gt; &lt;span class="k"&gt;TYPE&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;In Python, it can be expressed with:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;stored_as_scd_type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;2&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For DP-750, you usually do not need to memorize all syntax details. The most important concept is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SCD Type 2 = persistent record-level history
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. Delta Lake time travel vs SCD Type 2
&lt;/h2&gt;

&lt;p&gt;Delta Lake time travel and SCD Type 2 are related, but they are not the same thing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Delta Lake time travel&lt;/strong&gt; lets you query earlier table versions by timestamp or version number. Databricks documentation says time travel supports querying previous table versions based on timestamp or table version recorded in the transaction log.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;customer_profiles&lt;/span&gt; &lt;span class="k"&gt;VERSION&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="k"&gt;OF&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;SCD Type 2&lt;/strong&gt; stores business history directly in the table as rows.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;customer_id&lt;/th&gt;
&lt;th&gt;status&lt;/th&gt;
&lt;th&gt;valid_from&lt;/th&gt;
&lt;th&gt;valid_to&lt;/th&gt;
&lt;th&gt;is_current&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;C001&lt;/td&gt;
&lt;td&gt;Silver&lt;/td&gt;
&lt;td&gt;2025-01-01&lt;/td&gt;
&lt;td&gt;2026-01-01&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C001&lt;/td&gt;
&lt;td&gt;Gold&lt;/td&gt;
&lt;td&gt;2026-01-01&lt;/td&gt;
&lt;td&gt;null&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Best answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Maintain persistent historical record changes&lt;/td&gt;
&lt;td&gt;SCD Type 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Query earlier Delta table versions&lt;/td&gt;
&lt;td&gt;Delta Lake time travel&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Correct wrong values without keeping history&lt;/td&gt;
&lt;td&gt;SCD Type 1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  7. What are data quality expectations?
&lt;/h2&gt;

&lt;p&gt;In Lakeflow Spark Declarative Pipelines, &lt;strong&gt;expectations&lt;/strong&gt; are data quality constraints.&lt;/p&gt;

&lt;p&gt;They validate records as data flows through the pipeline.&lt;/p&gt;

&lt;p&gt;An expectation is usually written as a Boolean condition, such as:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;amount &amp;gt; 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;or:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;transaction_id IS NOT NULL
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Databricks documentation says expectations apply quality constraints that validate data as it flows through ETL pipelines. They can provide metrics, drop invalid records, or fail updates when invalid records are detected.&lt;/p&gt;

&lt;p&gt;For DP-750, expectations usually appear in questions about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;validating records&lt;/li&gt;
&lt;li&gt;dropping invalid records&lt;/li&gt;
&lt;li&gt;failing pipeline updates&lt;/li&gt;
&lt;li&gt;collecting data quality metrics&lt;/li&gt;
&lt;li&gt;preventing bad records from being written&lt;/li&gt;
&lt;li&gt;quarantining invalid records&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  8. Expectation actions
&lt;/h2&gt;

&lt;p&gt;There are three main expectation behaviors.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Behavior&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Retain invalid records&lt;/td&gt;
&lt;td&gt;Keep records, but collect metrics&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Drop invalid records&lt;/td&gt;
&lt;td&gt;Do not write invalid records to the target&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fail on invalid records&lt;/td&gt;
&lt;td&gt;Stop the update when invalid data is detected&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In current Lakeflow documentation, expectation decorators are in the &lt;code&gt;pyspark.pipelines&lt;/code&gt; module, commonly imported as &lt;code&gt;dp&lt;/code&gt;. The exam questions may still use the older &lt;code&gt;dlt&lt;/code&gt; naming, but the behavior is the important part. Databricks documentation lists decorators such as &lt;code&gt;expect&lt;/code&gt;, &lt;code&gt;expect_or_drop&lt;/code&gt;, and &lt;code&gt;expect_or_fail&lt;/code&gt;.&lt;/p&gt;


&lt;h2&gt;
  
  
  9. &lt;code&gt;expect&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;expect&lt;/code&gt; validates data and records metrics, but it does not drop or fail invalid records.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nd"&gt;@dlt.expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;valid_amount&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;amount &amp;gt; 0&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Behavior:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Valid records are written.
Invalid records are also written.
Metrics are collected.
Pipeline continues.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Use this when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;you want to monitor data quality&lt;/li&gt;
&lt;li&gt;invalid records can remain in the target&lt;/li&gt;
&lt;li&gt;you only need metrics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Collect metrics only = expect
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  10. &lt;code&gt;expect_or_drop&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;expect_or_drop&lt;/code&gt; drops invalid records before they are written to the target.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nd"&gt;@dlt.expect_or_drop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;valid_amount&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;amount &amp;gt; 0&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Behavior:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Valid records are written.
Invalid records are dropped.
Metrics are collected.
Pipeline continues.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Databricks documentation says &lt;code&gt;expect_or_drop&lt;/code&gt; prevents further processing of invalid records, and records that violate the expectation are dropped from the target dataset.&lt;/p&gt;

&lt;p&gt;Use this when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;invalid records must not be written&lt;/li&gt;
&lt;li&gt;the pipeline should continue&lt;/li&gt;
&lt;li&gt;you want expectation metrics&lt;/li&gt;
&lt;li&gt;you do not need to preserve invalid records in the same target table&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Invalid records must NOT be written, but pipeline continues = expect_or_drop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  11. &lt;code&gt;expect_or_fail&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;expect_or_fail&lt;/code&gt; fails the update when invalid records are detected.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nd"&gt;@dlt.expect_or_fail&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;rule1&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;amount &amp;gt; 0&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Behavior:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;If invalid records are detected, the update fails.
The transaction is rolled back.
Invalid data is not committed.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Databricks documentation says &lt;code&gt;expect_or_fail&lt;/code&gt; stops execution immediately when a record fails validation. If the operation is a table update, the system atomically rolls back the transaction.&lt;/p&gt;

&lt;p&gt;Use this when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;invalid records are unacceptable&lt;/li&gt;
&lt;li&gt;the target table must not be updated&lt;/li&gt;
&lt;li&gt;the update must not be committed if invalid data exists&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Prevent update from being committed = expect_or_fail
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  12. Expectation metrics
&lt;/h2&gt;

&lt;p&gt;Lakeflow expectations can produce data quality metrics.&lt;/p&gt;

&lt;p&gt;Databricks documentation says metrics for &lt;code&gt;warn&lt;/code&gt; or &lt;code&gt;drop&lt;/code&gt; actions can be viewed from the pipeline UI, and the Data quality tab is available in the pipeline UI for pipeline datasets with expectations. It also says expectation metrics can be queried from the Lakeflow Spark Declarative Pipelines event log.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Answer pattern&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Review expectation metrics with minimal effort&lt;/td&gt;
&lt;td&gt;Pipeline Data Quality tab&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Query metrics programmatically&lt;/td&gt;
&lt;td&gt;Pipeline event log&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invalid records fail update&lt;/td&gt;
&lt;td&gt;Metrics may not be recorded because update fails&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  13. Quarantine invalid records
&lt;/h2&gt;

&lt;p&gt;A quarantine pattern means invalid records are preserved somewhere for review.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;valid_records      -&amp;gt; target table
invalid_records    -&amp;gt; quarantine table
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This is different from simply dropping invalid records.&lt;/p&gt;

&lt;p&gt;If the requirement says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Invalid records must NOT be written to Table1.
Invalid records must be preserved for review.
Pipeline must continue.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;then &lt;code&gt;expect_or_drop&lt;/code&gt; alone is not enough, because it drops invalid records and does not preserve them as reviewable records.&lt;/p&gt;

&lt;p&gt;The answer is usually to implement a quarantine pattern, such as writing invalid records to a separate quarantine table.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Drop invalid records from target + preserve invalid records = quarantine logic
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  14. Expectations vs table constraints
&lt;/h2&gt;

&lt;p&gt;Expectations and table constraints both validate data, but they are used differently.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Typical use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Lakeflow expectations&lt;/td&gt;
&lt;td&gt;Validate records during pipeline processing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;NOT NULL&lt;/code&gt; constraint&lt;/td&gt;
&lt;td&gt;Enforce non-null values at table write time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;CHECK&lt;/code&gt; constraint&lt;/td&gt;
&lt;td&gt;Enforce Boolean rule at table write time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quarantine logic&lt;/td&gt;
&lt;td&gt;Preserve invalid records for review&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;amount &amp;gt; 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;could be implemented as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;an expectation in a Lakeflow pipeline&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;a &lt;code&gt;CHECK&lt;/code&gt; constraint on a Delta table&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But the exam context matters.&lt;/p&gt;

&lt;p&gt;If the question says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Lakeflow Spark Declarative Pipelines pipeline
rule1
expectation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;then use expectation decorators.&lt;/p&gt;

&lt;p&gt;If the question says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;table-level data quality enforcement
invalid records must be rejected when written to the table
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;then use table constraints.&lt;/p&gt;


&lt;h2&gt;
  
  
  15. DP-750 decision table for SCD and expectations
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario in the question&lt;/th&gt;
&lt;th&gt;Best answer pattern&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Correct data-entry mistake&lt;/td&gt;
&lt;td&gt;SCD Type 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Historical values are not required&lt;/td&gt;
&lt;td&gt;SCD Type 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Overwrite name and address values&lt;/td&gt;
&lt;td&gt;SCD Type 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Track ownership changes over time&lt;/td&gt;
&lt;td&gt;SCD Type 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Keep full history of profile changes&lt;/td&gt;
&lt;td&gt;SCD Type 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Query earlier Delta table versions&lt;/td&gt;
&lt;td&gt;Delta Lake time travel&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Monitor data quality only&lt;/td&gt;
&lt;td&gt;&lt;code&gt;expect&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Drop invalid records and continue&lt;/td&gt;
&lt;td&gt;&lt;code&gt;expect_or_drop&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fail update when invalid data exists&lt;/td&gt;
&lt;td&gt;&lt;code&gt;expect_or_fail&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prevent table update from being committed&lt;/td&gt;
&lt;td&gt;&lt;code&gt;expect_or_fail&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Preserve invalid records for review&lt;/td&gt;
&lt;td&gt;Quarantine logic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;View expectation metrics with minimal effort&lt;/td&gt;
&lt;td&gt;Pipeline Data Quality tab&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Query expectation metrics&lt;/td&gt;
&lt;td&gt;Pipeline event log&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h1&gt;
  
  
  Real Exam Questions
&lt;/h1&gt;
&lt;h2&gt;
  
  
  Question 36
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Useful case information
&lt;/h3&gt;

&lt;p&gt;Contoso identifies the following data modeling and optimization requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Overwrite equipment metadata attributes, such as name, manufacturer, model, and commissioning date, when the attributes change. Historical values are NOT required.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Contoso also has the following governance issue:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Ownership of the IoT sensors changes over time, and analysts must track the full history of the ownership.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Occasionally, equipment manufacturers must correct data-entry mistakes in equipment names. Historical values are NOT required.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Which SCD type should you use to support the planned data modeling changes?&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Issue&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Data-entry mistakes by the equipment manufacturers&lt;/td&gt;
&lt;td&gt;Type 1 ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Changes to IoT Sensor ownership&lt;/td&gt;
&lt;td&gt;Type 2 ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  Question 55
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a managed Delta table named &lt;code&gt;Table1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Table1&lt;/code&gt; stores customer profile data.&lt;/p&gt;

&lt;p&gt;Business users must analyze how customer profile records change over time. They must also be able to query earlier versions of the table.&lt;/p&gt;

&lt;p&gt;You need to implement a solution that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Maintains persistent historical versions of customer profile records for long-term analysis.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Allows users to query earlier versions of the Delta table.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Minimizes maintenance effort.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What should you do?&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;To record historical changes&lt;/td&gt;
&lt;td&gt;Implement a Type 2 slowly changing dimension, SCD ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;To support temporal analysis&lt;/td&gt;
&lt;td&gt;Use Delta Lake time travel ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  Question 57
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a Delta table named Table1. Table1 is used as a dimension table and contains the following columns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;id&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;name&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;address&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You need to apply a Type 1 slowly changing dimension, SCD, approach when updates are processed in the name and address columns.&lt;/p&gt;

&lt;p&gt;What will occur when an update is processed?&lt;/p&gt;

&lt;p&gt;A. A new row will be added for each change to a name and address.&lt;/p&gt;

&lt;p&gt;B. The value of the id column will be updated.&lt;/p&gt;

&lt;p&gt;C. The existing name and address values will be overwritten. ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;D. Historical versions of the row and its effective dates will be retained.&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 76
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog.&lt;/p&gt;

&lt;p&gt;You have a Lakeflow Spark Declarative Pipelines, SDP, pipeline that writes numerical data to a table named Table1 by using a data quality validation rule named rule1.&lt;/p&gt;

&lt;p&gt;You need to modify rule1 to meet the following requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Ensure that amount is always greater than 0.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prevent an update to Table1 from being committed when data that violates rule1 is detected.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Which statement should you execute?&lt;/p&gt;

&lt;p&gt;A. &lt;code&gt;@dlt.expect_or_fail("rule1", "amount &amp;gt; 0")&lt;/code&gt; ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;B. &lt;code&gt;@dlt.expect("rule1", "amount &amp;gt; 0")&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;C. &lt;code&gt;@dlt.expect_all_or_drop({"rule1": "amount &amp;gt; 0"})&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;D. &lt;code&gt;@dlt.expect_or_drop("rule1", "amount &amp;gt; 0")&lt;/code&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 77
&lt;/h2&gt;

&lt;p&gt;You have a Lakeflow Spark Declarative Pipelines, SDP, pipeline in Azure Databricks. The pipeline ingests transaction data into a table named Table1.&lt;/p&gt;

&lt;p&gt;You need to ensure that in the event of an invalid record, the pipeline continues to run.&lt;/p&gt;

&lt;p&gt;The solution must meet the following requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Invalid records must NOT be written to Table1.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Invalid records must be preserved for review.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Minimize development effort.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What should you do?&lt;/p&gt;

&lt;p&gt;A. Add a CHECK constraint to Table1.&lt;/p&gt;

&lt;p&gt;B. Run WHERE clauses in downstream queries to filter out invalid records.&lt;/p&gt;

&lt;p&gt;C. Define a pipeline expectation.&lt;/p&gt;

&lt;p&gt;D. Implement advanced logic to quarantine the invalid records. ✅ Correct Answer&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 78
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog.&lt;/p&gt;

&lt;p&gt;You have a Lakeflow Spark Declarative Pipelines, SDP, pipeline that writes records to a Delta table named Table1 by using a data quality rule named rule1.&lt;/p&gt;

&lt;p&gt;You need to meet the following requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Records that violate rule1 must NOT be written to Table1, but the pipeline must continue processing valid records.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Data engineers must be able to review expectation metrics by using minimal development effort.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What should you do?&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Set action for rule1 to&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;dlt.expect_or_drop&lt;/code&gt; ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;View expectation metrics in&lt;/td&gt;
&lt;td&gt;The Data Quality tab of the pipeline ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h1&gt;
  
  
  Key takeaways
&lt;/h1&gt;

&lt;p&gt;For DP-750, SCD and expectation questions are mainly decision-pattern questions.&lt;/p&gt;

&lt;p&gt;Remember these patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;SCD Type 1&lt;/strong&gt; overwrites existing values.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;SCD Type 1&lt;/strong&gt; is used when historical values are not required.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;SCD Type 1&lt;/strong&gt; is good for correcting data-entry mistakes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;SCD Type 2&lt;/strong&gt; keeps historical versions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;SCD Type 2&lt;/strong&gt; is used when analysts must track full history.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Delta Lake time travel&lt;/strong&gt; lets users query earlier table versions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;expect&lt;/code&gt; keeps invalid records and records metrics.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;expect_or_drop&lt;/code&gt; drops invalid records and continues processing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;expect_or_fail&lt;/code&gt; fails the update and prevents the transaction from being committed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If invalid records must be preserved for review, use a quarantine pattern.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Expectation metrics can be reviewed in the pipeline Data Quality tab or queried from the event log.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In current Lakeflow documentation, the decorators use &lt;code&gt;dp&lt;/code&gt;, but many exam-style questions still show &lt;code&gt;dlt&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you can separate &lt;strong&gt;overwrite vs history&lt;/strong&gt;, and &lt;strong&gt;monitor vs drop vs fail vs quarantine&lt;/strong&gt;, these DP-750 questions become much easier.&lt;/p&gt;


&lt;h2&gt;
  
  
  Explore more
&lt;/h2&gt;


&lt;div class="ltag__user ltag__user__id__1230121"&gt;
    &lt;a href="/luca1iu" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg" alt="luca1iu image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/luca1iu"&gt;Jin&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/luca1iu"&gt;Hi, I'm Jin! 👋 A data professional exploring the future of analytics in the AI era. Writing about how AI is changing the way we work with data, make decisions, and create value.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/lucaliu-data" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Luca_DataTeam" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on X&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>azure</category>
      <category>databricks</category>
      <category>certification</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>DP-750: Delta Lake Performance Optimization Explained and with Real Exam Questions</title>
      <dc:creator>Jin</dc:creator>
      <pubDate>Thu, 06 Aug 2026 06:59:55 +0000</pubDate>
      <link>https://dev.to/luca1iu/dp-750-delta-lake-performance-optimization-explained-and-with-real-exam-questions-254p</link>
      <guid>https://dev.to/luca1iu/dp-750-delta-lake-performance-optimization-explained-and-with-real-exam-questions-254p</guid>
      <description>&lt;p&gt;When preparing for &lt;strong&gt;DP-750: Microsoft Certified: Azure Databricks Data Engineer Associate&lt;/strong&gt;, you need to understand how to keep Delta table performance stable as data grows.&lt;/p&gt;

&lt;p&gt;This article focuses on three common DP-750 performance topics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;liquid clustering&lt;/li&gt;
&lt;li&gt;deletion vectors&lt;/li&gt;
&lt;li&gt;partitioning decisions&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The related questions in your DP-750 question bank are Q9 and Q58.
&lt;/h2&gt;

&lt;h2&gt;
  
  
  1. Why Delta Lake performance optimization matters
&lt;/h2&gt;

&lt;p&gt;Delta tables often start small, but production tables can grow quickly.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;100 GB
500 GB
1 TB
10 TB
100 TB
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;As the table grows, query performance can become unstable if data is not organized well.&lt;/p&gt;

&lt;p&gt;Common symptoms include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;queries become slower over time&lt;/li&gt;
&lt;li&gt;filters scan too much data&lt;/li&gt;
&lt;li&gt;update and delete operations take too long&lt;/li&gt;
&lt;li&gt;partitioning becomes difficult to manage&lt;/li&gt;
&lt;li&gt;too many small partitions appear&lt;/li&gt;
&lt;li&gt;table maintenance becomes expensive&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For DP-750, the key question is usually:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Which Delta table optimization feature should you use for this workload?&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  2. What is data layout?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Data layout&lt;/strong&gt; means how data is physically organized in storage.&lt;/p&gt;

&lt;p&gt;Even if users query a table logically like this:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;events&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;event_time&lt;/span&gt; &lt;span class="k"&gt;BETWEEN&lt;/span&gt; &lt;span class="s1"&gt;'2026-01-01'&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="s1"&gt;'2026-01-31'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;the query engine still needs to find the relevant files in storage.&lt;/p&gt;

&lt;p&gt;If the table is organized well, Databricks can skip irrelevant files and scan less data.&lt;/p&gt;

&lt;p&gt;If the table is organized poorly, Databricks may scan too many files, which increases:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;query duration&lt;/li&gt;
&lt;li&gt;compute cost&lt;/li&gt;
&lt;li&gt;latency&lt;/li&gt;
&lt;li&gt;storage I/O&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For DP-750, data layout is mainly tested through:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;liquid clustering
partitioning
Z-ORDER, mostly as background knowledge
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. What is liquid clustering?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Liquid clustering&lt;/strong&gt; is a Delta Lake data layout optimization technique.&lt;/p&gt;

&lt;p&gt;Azure Databricks documentation describes liquid clustering as a data layout optimization technique that replaces table partitioning and ZORDER, simplifying table management and improving query performance. It is designed for tables that grow over time and need flexible layout optimization.&lt;/p&gt;

&lt;p&gt;In simple terms:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Liquid clustering organizes data based on clustering columns so that Databricks can skip more irrelevant data during queries.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;events&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;event_id&lt;/span&gt; &lt;span class="n"&gt;STRING&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;event_time&lt;/span&gt; &lt;span class="nb"&gt;TIMESTAMP&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;event_type&lt;/span&gt; &lt;span class="n"&gt;STRING&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;CLUSTER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event_time&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Or for an existing table:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;events&lt;/span&gt;
&lt;span class="k"&gt;CLUSTER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event_time&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For DP-750, if a large table is frequently filtered by a column such as &lt;code&gt;event_time&lt;/code&gt;, and the question wants to avoid over-partitioning, the answer is usually:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Liquid clustering
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Why liquid clustering is preferred over fixed partitioning
&lt;/h2&gt;

&lt;p&gt;Traditional partitioning physically separates data into directory-like groups.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/event_date=2026-01-01/
/event_date=2026-01-02/
/event_date=2026-01-03/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Partitioning can be useful, but it can also create problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;too many small partitions&lt;/li&gt;
&lt;li&gt;uneven partition sizes&lt;/li&gt;
&lt;li&gt;high metadata overhead&lt;/li&gt;
&lt;li&gt;hard-to-change layout&lt;/li&gt;
&lt;li&gt;poor performance if query patterns change&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Azure Databricks documentation now recommends liquid clustering for all new Delta tables and managed Iceberg tables, and the SQL &lt;code&gt;CLUSTER BY&lt;/code&gt; documentation recommends automatic liquid clustering and predictive optimization for Unity Catalog managed tables.&lt;br&gt;&lt;br&gt;
For DP-750, this is very important:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Large growing table + filter columns + avoid over-partitioning = liquid clustering&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  5. Liquid clustering vs partitioning
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Liquid clustering&lt;/th&gt;
&lt;th&gt;Traditional partitioning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Main purpose&lt;/td&gt;
&lt;td&gt;Flexible data layout optimization&lt;/td&gt;
&lt;td&gt;Directory-level data organization&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Good for growing tables&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Sometimes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Avoids over-partitioning&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Easy to adapt to query patterns&lt;/td&gt;
&lt;td&gt;Better&lt;/td&gt;
&lt;td&gt;Harder&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Replaces ZORDER for many use cases&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recommended for new Delta tables&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Not usually the first choice&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For DP-750, partitioning is usually wrong when the question says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;avoid over-partitioning
remain efficient as data volume grows
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This wording strongly points to &lt;strong&gt;liquid clustering&lt;/strong&gt;.&lt;/p&gt;


&lt;h2&gt;
  
  
  6. Choosing clustering columns
&lt;/h2&gt;

&lt;p&gt;A clustering column should usually be a column frequently used in filters.&lt;/p&gt;

&lt;p&gt;Examples:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;event_time&lt;/span&gt; &lt;span class="k"&gt;BETWEEN&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;CustomerId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;EventDate&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If a table is frequently queried by filtering on:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CustomerId
EventDate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;then those are strong candidates for liquid clustering.&lt;/p&gt;

&lt;p&gt;If a table is frequently queried by filtering on:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;event_time
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;then &lt;code&gt;event_time&lt;/code&gt; is a strong clustering column.&lt;/p&gt;

&lt;p&gt;For DP-750, the exact syntax is less important than the decision pattern:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Choose the layout strategy that matches common query filters.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  7. What are deletion vectors?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Deletion vectors&lt;/strong&gt; are a Delta Lake storage optimization feature that accelerates row-level table modifications.&lt;/p&gt;

&lt;p&gt;Azure Databricks documentation says deletion vectors accelerate &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, and &lt;code&gt;MERGE&lt;/code&gt; operations. Without deletion vectors, deleting a single row requires rewriting the entire Parquet file that contains the record. With deletion vectors enabled, Databricks can mark rows as modified without immediately rewriting the whole Parquet file.&lt;/p&gt;

&lt;p&gt;This matters when a table has frequent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;deletes&lt;/li&gt;
&lt;li&gt;updates&lt;/li&gt;
&lt;li&gt;merges&lt;/li&gt;
&lt;li&gt;compliance-related removal requests&lt;/li&gt;
&lt;li&gt;row-level changes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For DP-750, if the question says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Rows are frequently updated and deleted.
The solution must minimize update and deletion effort.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;then the answer is usually:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Enable deletion vectors
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  8. Why deletion vectors help with updates and deletes
&lt;/h2&gt;

&lt;p&gt;Without deletion vectors, a small update or delete can be expensive.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;One Parquet file contains 1,000,000 rows.
You delete 10 rows.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Without deletion vectors, the system may need to rewrite the file without those 10 rows.&lt;/p&gt;

&lt;p&gt;With deletion vectors, Databricks can record which rows are deleted or changed without immediately rewriting the full file.&lt;/p&gt;

&lt;p&gt;This reduces the cost of row-level operations.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Improve filtering performance as table grows&lt;/td&gt;
&lt;td&gt;Liquid clustering&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Minimize update/delete effort&lt;/td&gt;
&lt;td&gt;Deletion vectors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frequent compliance deletes&lt;/td&gt;
&lt;td&gt;Deletion vectors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Avoid over-partitioning&lt;/td&gt;
&lt;td&gt;Liquid clustering&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  9. Deletion vectors and table properties
&lt;/h2&gt;

&lt;p&gt;For Delta Lake tables, deletion vectors can be enabled with the table property:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="k"&gt;table_name&lt;/span&gt;
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;TBLPROPERTIES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'delta.enableDeletionVectors'&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Databricks documentation notes that deletion vectors are not automatically enabled for every Delta table in every situation, and that they can be enabled using the &lt;code&gt;enableDeletionVectors&lt;/code&gt; table property. Enabling deletion vectors upgrades the table protocol, so client compatibility should be considered.&lt;/p&gt;

&lt;p&gt;For DP-750, you usually do not need to worry about protocol details unless the question explicitly mentions compatibility with older clients.&lt;/p&gt;

&lt;p&gt;The exam pattern is simpler:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Frequent UPDATE / DELETE / MERGE = enable deletion vectors
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  10. Liquid clustering and deletion vectors together
&lt;/h2&gt;

&lt;p&gt;Liquid clustering and deletion vectors solve different problems.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Problem&lt;/th&gt;
&lt;th&gt;Best feature&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Query performance with filters&lt;/td&gt;
&lt;td&gt;Liquid clustering&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Growing table performance&lt;/td&gt;
&lt;td&gt;Liquid clustering&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Avoid over-partitioning&lt;/td&gt;
&lt;td&gt;Liquid clustering&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frequent row updates&lt;/td&gt;
&lt;td&gt;Deletion vectors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frequent deletes&lt;/td&gt;
&lt;td&gt;Deletion vectors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compliance delete requests&lt;/td&gt;
&lt;td&gt;Deletion vectors&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In Q9, both issues appear:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;The table is queried frequently by filtering on &lt;code&gt;CustomerId&lt;/code&gt; and &lt;code&gt;EventDate&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The table is frequently updated and deleted for compliance.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So the solution includes both:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Liquid clustering
Deletion vectors
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  11. What about OPTIMIZE?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;OPTIMIZE&lt;/code&gt; rewrites data files to improve file layout. Azure Databricks documentation says the &lt;code&gt;OPTIMIZE&lt;/code&gt; command rewrites data files to improve layout for Delta Lake and Apache Iceberg tables. For liquid clustered tables, &lt;code&gt;OPTIMIZE&lt;/code&gt; clusters the data according to the clustering columns.&lt;/p&gt;

&lt;p&gt;For DP-750, &lt;code&gt;OPTIMIZE&lt;/code&gt; is more often tested in table maintenance or retention questions.&lt;/p&gt;

&lt;p&gt;In the performance questions from this article, the correct answers focus on:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;liquid clustering
deletion vectors
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;not manual partitioning or fixed partition counts.&lt;/p&gt;


&lt;h2&gt;
  
  
  12. What about ZORDER?
&lt;/h2&gt;

&lt;p&gt;ZORDER was historically used to colocate related data and improve data skipping.&lt;/p&gt;

&lt;p&gt;However, current Azure Databricks documentation describes liquid clustering as replacing table partitioning and ZORDER for Delta table layout optimization.&lt;/p&gt;

&lt;p&gt;For DP-750, if the answer options include &lt;strong&gt;liquid clustering&lt;/strong&gt;, and the question asks for a modern data layout strategy for a growing table, liquid clustering is usually the stronger answer.&lt;/p&gt;


&lt;h2&gt;
  
  
  13. Common DP-750 traps
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Trap 1: Partition by event_time
&lt;/h3&gt;

&lt;p&gt;If the table is huge and queries filter on ranges in &lt;code&gt;event_time&lt;/code&gt;, it may seem natural to partition by &lt;code&gt;event_time&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;But if &lt;code&gt;event_time&lt;/code&gt; has high cardinality or fine granularity, partitioning can create too many partitions.&lt;/p&gt;

&lt;p&gt;If the question says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;avoids over-partitioning
remains efficient as data volume grows
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;choose liquid clustering.&lt;/p&gt;


&lt;h3&gt;
  
  
  Trap 2: Fixed number of partitions
&lt;/h3&gt;

&lt;p&gt;A fixed number of partitions based on table size sounds controlled, but it is not a query-aware layout strategy.&lt;/p&gt;

&lt;p&gt;It does not directly optimize filtering on &lt;code&gt;event_time&lt;/code&gt;, &lt;code&gt;CustomerId&lt;/code&gt;, or &lt;code&gt;EventDate&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For DP-750, if the requirement is query performance for specific filter columns, use liquid clustering.&lt;/p&gt;


&lt;h3&gt;
  
  
  Trap 3: Partition by low-value column
&lt;/h3&gt;

&lt;p&gt;If a table has only a few values in &lt;code&gt;event_type&lt;/code&gt;, partitioning by &lt;code&gt;event_type&lt;/code&gt; may not help range filters on &lt;code&gt;event_time&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;event_time&lt;/span&gt; &lt;span class="k"&gt;BETWEEN&lt;/span&gt; &lt;span class="s1"&gt;'2026-01-01'&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="s1"&gt;'2026-01-31'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Partitioning by &lt;code&gt;event_type&lt;/code&gt; does not directly align with this filter.&lt;/p&gt;

&lt;p&gt;For DP-750, match the layout to the query filter columns.&lt;/p&gt;


&lt;h3&gt;
  
  
  Trap 4: Use only deletion vectors for query filters
&lt;/h3&gt;

&lt;p&gt;Deletion vectors help with row-level modifications, not primary data layout for filtering.&lt;/p&gt;

&lt;p&gt;If the problem is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;frequent queries filter by CustomerId and EventDate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;you need liquid clustering.&lt;/p&gt;

&lt;p&gt;If the problem is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;frequent updates and deletes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;you need deletion vectors.&lt;/p&gt;

&lt;p&gt;If the question has both, use both.&lt;/p&gt;


&lt;h2&gt;
  
  
  14. DP-750 decision table for Delta performance
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario in the question&lt;/th&gt;
&lt;th&gt;Best answer pattern&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Large table grows over time&lt;/td&gt;
&lt;td&gt;Liquid clustering&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frequent filters on one or more columns&lt;/td&gt;
&lt;td&gt;Liquid clustering&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Avoid over-partitioning&lt;/td&gt;
&lt;td&gt;Liquid clustering&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Range filters on &lt;code&gt;event_time&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Liquid clustering on &lt;code&gt;event_time&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frequent filters on &lt;code&gt;CustomerId&lt;/code&gt; and &lt;code&gt;EventDate&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Liquid clustering&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frequent updates and deletes&lt;/td&gt;
&lt;td&gt;Enable deletion vectors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compliance deletes&lt;/td&gt;
&lt;td&gt;Enable deletion vectors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Minimize update/delete effort&lt;/td&gt;
&lt;td&gt;Enable deletion vectors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fixed partitions by total table size&lt;/td&gt;
&lt;td&gt;Usually wrong&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Partition by high-cardinality timestamp&lt;/td&gt;
&lt;td&gt;Risk of over-partitioning&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Partition by unrelated column&lt;/td&gt;
&lt;td&gt;Does not match filter pattern&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h1&gt;
  
  
  Real Exam Questions
&lt;/h1&gt;
&lt;h2&gt;
  
  
  Question 9
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a managed Delta table named Table1.&lt;/p&gt;

&lt;p&gt;Table1 is written by batch jobs every hour and is queried frequently by filtering two columns named CustomerId and EventDate.&lt;/p&gt;

&lt;p&gt;You expect Table1 to grow significantly over time.&lt;/p&gt;

&lt;p&gt;The rows in Table1 are frequently updated and deleted to support compliance requests.&lt;/p&gt;

&lt;p&gt;You need to keep query performance consistent as Table1 grows. The solution must minimize update and deletion effort.&lt;/p&gt;

&lt;p&gt;What should you include in the solution? To answer, select the appropriate options in the answer area.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Data layout strategy&lt;/td&gt;
&lt;td&gt;Liquid clustering ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Update and deletion optimization&lt;/td&gt;
&lt;td&gt;Enable deletion vectors ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  Question 58
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a Delta table named Table1.&lt;/p&gt;

&lt;p&gt;Table1 contains approximately 1.5 TB of data and the following columns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;event_time&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;event_type&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Queries against Table1 frequently filter on ranges in event_time.&lt;/p&gt;

&lt;p&gt;You need to implement a data layout strategy that improves query performance for filters on event_time, avoids over-partitioning, and remains efficient as the data volume grows over time.&lt;/p&gt;

&lt;p&gt;What should you do?&lt;/p&gt;

&lt;p&gt;A. Implement liquid clustering on Table1. ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;B. Create a fixed number of partitions based on the total table size.&lt;/p&gt;

&lt;p&gt;C. Partition Table1 by using the event_type column.&lt;/p&gt;

&lt;p&gt;D. Partition Table1 by using the event_time column.&lt;/p&gt;


&lt;h1&gt;
  
  
  Key takeaways
&lt;/h1&gt;

&lt;p&gt;For DP-750, Delta Lake performance optimization questions usually test whether you can identify the right feature for the right performance problem.&lt;/p&gt;

&lt;p&gt;Remember these patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Liquid clustering&lt;/strong&gt; improves data layout for query filtering.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Liquid clustering&lt;/strong&gt; is preferred for growing Delta tables.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Liquid clustering&lt;/strong&gt; helps avoid over-partitioning.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Deletion vectors&lt;/strong&gt; optimize row-level updates, deletes, and merges.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Frequent compliance deletes point to deletion vectors.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Range filters on a large timestamp-based table point to liquid clustering.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Do not choose fixed partitions just because the table is large.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Do not partition by a column that does not match the query filter.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If the question mentions both query filters and frequent deletes, use both liquid clustering and deletion vectors.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you can separate &lt;strong&gt;query layout optimization&lt;/strong&gt; from &lt;strong&gt;row-level modification optimization&lt;/strong&gt;, these DP-750 questions become much easier.&lt;/p&gt;


&lt;h2&gt;
  
  
  Explore more
&lt;/h2&gt;


&lt;div class="ltag__user ltag__user__id__1230121"&gt;
    &lt;a href="/luca1iu" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg" alt="luca1iu image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/luca1iu"&gt;Jin&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/luca1iu"&gt;Hi, I'm Jin! 👋 A data professional exploring the future of analytics in the AI era. Writing about how AI is changing the way we work with data, make decisions, and create value.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/lucaliu-data" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Luca_DataTeam" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on X&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>azure</category>
      <category>databricks</category>
      <category>certification</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>DP-750: Delta Lake Table Operations Explained and with Real Exam Questions</title>
      <dc:creator>Jin</dc:creator>
      <pubDate>Wed, 05 Aug 2026 04:59:56 +0000</pubDate>
      <link>https://dev.to/luca1iu/dp-750-delta-lake-table-operations-explained-and-with-real-exam-questions-4egk</link>
      <guid>https://dev.to/luca1iu/dp-750-delta-lake-table-operations-explained-and-with-real-exam-questions-4egk</guid>
      <description>&lt;p&gt;When preparing for &lt;strong&gt;DP-750: Microsoft Certified: Azure Databricks Data Engineer Associate&lt;/strong&gt;, you need to understand common Delta Lake and Spark table operations.&lt;/p&gt;

&lt;p&gt;This article focuses on operations that appear frequently in DP-750 questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;INSERT INTO&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;INSERT OVERWRITE&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;table constraints&lt;/li&gt;
&lt;li&gt;&lt;code&gt;NOT NULL&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;CHECK&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;INTERSECT&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;append writes&lt;/li&gt;
&lt;li&gt;PySpark null filtering&lt;/li&gt;
&lt;li&gt;&lt;code&gt;dropna&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;fillna&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The related questions in your DP-750 question bank are Q40, Q41, Q42, Q45, Q49–52, and Q53.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Why table operations matter in DP-750
&lt;/h2&gt;

&lt;p&gt;Many DP-750 questions are not about advanced Spark optimization. They test whether you understand the basic behavior of table operations.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;table2&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;table1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This preserves existing rows and adds new rows.&lt;/p&gt;

&lt;p&gt;But:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="n"&gt;OVERWRITE&lt;/span&gt; &lt;span class="n"&gt;table2&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;table1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;replaces existing data.&lt;/p&gt;

&lt;p&gt;Similarly, in PySpark:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dropna&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;subset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;order_amount&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;removes rows where &lt;code&gt;order_amount&lt;/code&gt; is null, while:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fillna&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;subset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;order_amount&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;does not remove rows. It replaces null values with &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;These details are simple, but they are very common exam traps.&lt;/p&gt;


&lt;h2&gt;
  
  
  2. &lt;code&gt;INSERT INTO&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;INSERT INTO&lt;/code&gt; inserts new rows into a table. Azure Databricks documentation describes &lt;code&gt;INSERT&lt;/code&gt; as a statement that inserts new rows into a table, using either value expressions or the result of a query.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schema1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table2&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schema1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This means:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Take rows from table1 and append them to table2.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;It does &lt;strong&gt;not&lt;/strong&gt; delete existing rows from &lt;code&gt;table2&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;INSERT INTO&lt;/code&gt; when the requirement says:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;preserve existing data&lt;/li&gt;
&lt;li&gt;add new rows&lt;/li&gt;
&lt;li&gt;append new records&lt;/li&gt;
&lt;li&gt;load current-year data into historical table&lt;/li&gt;
&lt;li&gt;daily file contains new records only&lt;/li&gt;
&lt;li&gt;minimize processing effort&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Preserve existing data + add new rows = &lt;code&gt;INSERT INTO&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  3. &lt;code&gt;INSERT OVERWRITE&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;INSERT OVERWRITE&lt;/code&gt; replaces existing data in the target table or partition.&lt;/p&gt;

&lt;p&gt;This is different from &lt;code&gt;INSERT INTO&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="n"&gt;OVERWRITE&lt;/span&gt; &lt;span class="n"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schema1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table2&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schema1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This means:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Replace the existing data in table2 with the query result.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;In DP-750, if the question says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Preserve any existing data
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;then &lt;code&gt;INSERT OVERWRITE&lt;/code&gt; is usually wrong.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;INSERT OVERWRITE&lt;/code&gt; only when the requirement is to replace existing data.&lt;/p&gt;


&lt;h2&gt;
  
  
  4. &lt;code&gt;CREATE TABLE AS SELECT&lt;/code&gt; vs &lt;code&gt;CREATE OR REPLACE TABLE AS SELECT&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;These commands are also common traps.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schema1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table2&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schema1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;creates a new table from query results.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;OR&lt;/span&gt; &lt;span class="k"&gt;REPLACE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schema1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table2&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schema1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;creates a table or replaces the existing table.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Correct pattern&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Add rows to an existing table&lt;/td&gt;
&lt;td&gt;&lt;code&gt;INSERT INTO&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Replace existing table definition and data&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CREATE OR REPLACE TABLE AS SELECT&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Create a new table from query result&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CREATE TABLE AS SELECT&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Preserve existing data&lt;/td&gt;
&lt;td&gt;Avoid &lt;code&gt;INSERT OVERWRITE&lt;/code&gt; and &lt;code&gt;CREATE OR REPLACE&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If the target table already exists and you need to preserve existing data, &lt;code&gt;INSERT INTO&lt;/code&gt; is the safest answer.&lt;/p&gt;


&lt;h2&gt;
  
  
  5. Table constraints
&lt;/h2&gt;

&lt;p&gt;Azure Databricks supports table constraints for data quality. Microsoft documentation says constraints can define and enforce data quality rules, including &lt;code&gt;NOT NULL&lt;/code&gt; and &lt;code&gt;CHECK&lt;/code&gt; constraints. &lt;code&gt;NOT NULL&lt;/code&gt; means values in specific columns cannot be null, and &lt;code&gt;CHECK&lt;/code&gt; means a specified Boolean expression must be true for each row.&lt;/p&gt;

&lt;p&gt;Common examples:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="n"&gt;transaction_id&lt;/span&gt; &lt;span class="n"&gt;STRING&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;NULL&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CHECK&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;amount&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Use constraints when the requirement says:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;table-level data quality enforcement&lt;/li&gt;
&lt;li&gt;invalid records must be rejected during writes&lt;/li&gt;
&lt;li&gt;a column must never be null&lt;/li&gt;
&lt;li&gt;a numeric value must be greater than zero&lt;/li&gt;
&lt;li&gt;enforce the rule when data is written&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Reject invalid records at table write time = table constraints&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  6. &lt;code&gt;NOT NULL&lt;/code&gt; constraint
&lt;/h2&gt;

&lt;p&gt;A &lt;code&gt;NOT NULL&lt;/code&gt; constraint prevents a column from containing null values.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;Sales&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;transaction_id&lt;/span&gt; &lt;span class="n"&gt;STRING&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;transaction_date&lt;/span&gt; &lt;span class="nb"&gt;DATE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;amount&lt;/span&gt; &lt;span class="nb"&gt;DECIMAL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If a write tries to insert a row where &lt;code&gt;transaction_id&lt;/code&gt; is null, the write fails.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;transaction_id must never be null
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;means:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Add a NOT NULL constraint to transaction_id
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. &lt;code&gt;CHECK&lt;/code&gt; constraint
&lt;/h2&gt;

&lt;p&gt;A &lt;code&gt;CHECK&lt;/code&gt; constraint requires a Boolean expression to be true.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;Sales&lt;/span&gt;
&lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="k"&gt;CONSTRAINT&lt;/span&gt; &lt;span class="n"&gt;valid_amount&lt;/span&gt; &lt;span class="k"&gt;CHECK&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;amount&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If a write tries to insert a row where &lt;code&gt;amount &amp;lt;= 0&lt;/code&gt;, the write fails.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;amount must be greater than 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;means:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Add a CHECK constraint to amount
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Do not use a view or a &lt;code&gt;WHERE&lt;/code&gt; clause if the requirement is to reject invalid records during table writes. A view only changes what users see when querying. It does not enforce the rule at write time.&lt;/p&gt;


&lt;h2&gt;
  
  
  8. &lt;code&gt;INTERSECT&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;INTERSECT&lt;/code&gt; returns rows that appear in both query results. Azure Databricks documentation describes &lt;code&gt;INTERSECT&lt;/code&gt; as one of the supported set operators used to combine query results. Both subqueries must have the same number of columns and compatible types.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;Column1&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Table1&lt;/span&gt;
&lt;span class="k"&gt;INTERSECT&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;Column2&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Table2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This returns values that appear in both result sets.&lt;/p&gt;

&lt;p&gt;Now look at this pattern:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;Column1&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Table1&lt;/span&gt;
&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;Column1&lt;/span&gt;
&lt;span class="k"&gt;HAVING&lt;/span&gt; &lt;span class="k"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="k"&gt;INTERSECT&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;Column2&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Table2&lt;/span&gt;
&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;Column2&lt;/span&gt;
&lt;span class="k"&gt;HAVING&lt;/span&gt; &lt;span class="k"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The first query returns values that appear more than once in &lt;code&gt;Table1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The second query returns values that appear more than once in &lt;code&gt;Table2&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;INTERSECT&lt;/code&gt; returns only values that appear in both results.&lt;/p&gt;

&lt;p&gt;So the final result is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Values that appear more than once in both tables.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  9. PySpark null filtering
&lt;/h2&gt;

&lt;p&gt;In PySpark, null handling is a common exam trap.&lt;/p&gt;

&lt;p&gt;To keep only rows where a column is not null, use:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;order_amount&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isNotNull&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Spark documentation says &lt;code&gt;Column.isNotNull()&lt;/code&gt; returns true if the current expression is not null.&lt;/p&gt;

&lt;p&gt;You can also use:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dropna&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;subset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;order_amount&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Spark documentation says &lt;code&gt;DataFrame.dropna()&lt;/code&gt; returns a new DataFrame omitting rows with null or NaN values.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Exclude rows where &lt;code&gt;order_amount&lt;/code&gt; is null = &lt;code&gt;isNotNull()&lt;/code&gt; or &lt;code&gt;dropna(subset=[...])&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  10. &lt;code&gt;fillna&lt;/code&gt; does not remove rows
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;fillna&lt;/code&gt; replaces null values. It does not remove rows.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fillna&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;subset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;order_amount&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If a row has:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;order_amount = null
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;then after &lt;code&gt;fillna&lt;/code&gt;, it becomes:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;order_amount = 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Spark documentation says &lt;code&gt;DataFrame.fillna()&lt;/code&gt; returns a new DataFrame where null values are filled with a new value.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Requirement: exclude rows where &lt;code&gt;order_amount&lt;/code&gt; is null&lt;br&gt;&lt;br&gt;
&lt;code&gt;fillna(0)&lt;/code&gt; = wrong&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Because replacing null with &lt;code&gt;0&lt;/code&gt; is not the same as excluding the row.&lt;/p&gt;


&lt;h2&gt;
  
  
  11. Why &lt;code&gt;df.order_amount != None&lt;/code&gt; is wrong
&lt;/h2&gt;

&lt;p&gt;This is another common Spark trap.&lt;/p&gt;

&lt;p&gt;In normal Python, you might write:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;But Spark DataFrame columns are not normal Python values. They are distributed column expressions. Null comparison in Spark SQL follows SQL null semantics, and comparisons with null do not behave like normal Boolean comparisons.&lt;/p&gt;

&lt;p&gt;So this expression is not the correct exam answer:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;order_amount&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Use:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;order_amount&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isNotNull&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;or:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dropna&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;subset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;order_amount&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Null filtering in Spark = use &lt;code&gt;isNotNull()&lt;/code&gt; or &lt;code&gt;dropna()&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  12. Writing DataFrames to Delta
&lt;/h2&gt;

&lt;p&gt;A common PySpark write pattern is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;write&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;delta&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;append&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This means:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Code&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;.format("delta")&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Write data in Delta format&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;.mode("append")&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Add rows to existing data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;.save(path)&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Save to the target path&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For DP-750, if the source is CSV and the target is an existing Delta table or Delta path, the pattern is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;spark&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;read&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;csv&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;write&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;delta&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;append&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Use append when the requirement says:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;each new CSV file must be added&lt;/li&gt;
&lt;li&gt;existing Delta table must be preserved&lt;/li&gt;
&lt;li&gt;new rows only&lt;/li&gt;
&lt;li&gt;no updates to existing rows&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  13. Append vs overwrite
&lt;/h2&gt;

&lt;p&gt;This is the same idea as &lt;code&gt;INSERT INTO&lt;/code&gt; vs &lt;code&gt;INSERT OVERWRITE&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;SQL&lt;/th&gt;
&lt;th&gt;PySpark write mode&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;INSERT INTO&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.mode("append")&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Add new rows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;INSERT OVERWRITE&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.mode("overwrite")&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Replace existing data&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For DP-750:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Preserve existing data = append
Replace existing data = overwrite
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  14. DP-750 decision table for table operations
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario in the question&lt;/th&gt;
&lt;th&gt;Best answer pattern&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Preserve existing data and add rows&lt;/td&gt;
&lt;td&gt;&lt;code&gt;INSERT INTO&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Daily file contains new records only&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;INSERT INTO&lt;/code&gt; or append mode&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Replace existing data&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;INSERT OVERWRITE&lt;/code&gt; or overwrite mode&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Create a new table from query result&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CREATE TABLE AS SELECT&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recreate existing table from query result&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CREATE OR REPLACE TABLE AS SELECT&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;transaction_id&lt;/code&gt; must never be null&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;NOT NULL&lt;/code&gt; constraint&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;amount&lt;/code&gt; must be greater than 0&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;CHECK&lt;/code&gt; constraint&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invalid records must be rejected on write&lt;/td&gt;
&lt;td&gt;Table constraints&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Values appear more than once in both tables&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;GROUP BY&lt;/code&gt; + &lt;code&gt;HAVING COUNT(*) &amp;gt; 1&lt;/code&gt; + &lt;code&gt;INTERSECT&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exclude rows where column is null&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;isNotNull()&lt;/code&gt; or &lt;code&gt;dropna(subset=[...])&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Replace nulls with zero&lt;/td&gt;
&lt;td&gt;&lt;code&gt;fillna(0)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Add new CSV data to Delta path&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.format("delta").mode("append")&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h1&gt;
  
  
  Real Exam Questions
&lt;/h1&gt;
&lt;h2&gt;
  
  
  Question 40
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a managed Delta table named Sales. Sales stores transaction data and contains the following columns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;transaction_id, string&lt;/li&gt;
&lt;li&gt;transaction_date, date&lt;/li&gt;
&lt;li&gt;amount, decimal&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You need to implement the following data quality requirements by using table-level data quality enforcement:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;amount must be greater than 0.&lt;/li&gt;
&lt;li&gt;transaction_id must never be null.&lt;/li&gt;
&lt;li&gt;Invalid records must be rejected when data is written to the Sales table.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What should you do?&lt;/p&gt;

&lt;p&gt;A. Use a SELECT statement with WHERE conditions to validate the data before querying.&lt;/p&gt;

&lt;p&gt;B. Create a view that filters out rows where transaction_id is null or amount is less than or equal to 0.&lt;/p&gt;

&lt;p&gt;C. Add a NOT NULL constraint to transaction_id and a CHECK constraint to amount. ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;D. Configure row-level security, RLS, where transaction_id is null or amount is less than or equal to 0.&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 41
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains two Delta tables named Table1 and Table2 of the same data type.&lt;/p&gt;

&lt;p&gt;Table1 contains a column named Column1. Table2 contains a column named Column2.&lt;/p&gt;

&lt;p&gt;You run the following query.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;Column1&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Table1&lt;/span&gt;
&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;Column1&lt;/span&gt;
&lt;span class="k"&gt;HAVING&lt;/span&gt; &lt;span class="k"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="k"&gt;INTERSECT&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;Column2&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Table2&lt;/span&gt;
&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;Column2&lt;/span&gt;
&lt;span class="k"&gt;HAVING&lt;/span&gt; &lt;span class="k"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;What occurs when you run the query?&lt;/p&gt;

&lt;p&gt;A. Values appear in both tables more than once. ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;B. Values appear in either table more than once.&lt;/p&gt;

&lt;p&gt;C. Values appear in Table2 but NOT Table1.&lt;/p&gt;

&lt;p&gt;D. Values appear in Table1 more than once.&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 42
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains two managed Delta tables named &lt;code&gt;sales.schema1.table1&lt;/code&gt; and &lt;code&gt;sales.schema1.table2&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sales.schema1.table1&lt;/code&gt; contains sales data from the current year. &lt;code&gt;sales.schema1.table2&lt;/code&gt; contains historical data.&lt;/p&gt;

&lt;p&gt;You need to load all the rows from &lt;code&gt;sales.schema1.table1&lt;/code&gt; into &lt;code&gt;sales.schema1.table2&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The solution must preserve any existing data in &lt;code&gt;sales.schema1.table2&lt;/code&gt; and minimize processing effort.&lt;/p&gt;

&lt;p&gt;Which command should you run?&lt;/p&gt;

&lt;p&gt;A. &lt;code&gt;INSERT OVERWRITE sales.schema1.table2 SELECT * FROM sales.schema1.table1;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;B. &lt;code&gt;CREATE TABLE sales.schema1.table2 AS SELECT * FROM sales.schema1.table1;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;C. &lt;code&gt;INSERT INTO sales.schema1.table2 SELECT * FROM sales.schema1.table1;&lt;/code&gt; ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;D. &lt;code&gt;CREATE OR REPLACE TABLE sales.schema1.table2 AS SELECT * FROM sales.schema1.table1;&lt;/code&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 45
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a Delta table named &lt;code&gt;Sales_orders&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Sales_orders&lt;/code&gt; stores historical sales data.&lt;/p&gt;

&lt;p&gt;You receive a daily CSV file daily that contains new sales records only. The file does NOT contain updates to existing rows.&lt;/p&gt;

&lt;p&gt;You need to load the daily data into &lt;code&gt;Sales_orders&lt;/code&gt;. The solution must meet the following requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Preserve the existing data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add only the new records.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Minimize processing effort.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Which command should include in the loading strategy?&lt;/p&gt;

&lt;p&gt;A. UPDATE&lt;/p&gt;

&lt;p&gt;B. INSERT OVERWRITE&lt;/p&gt;

&lt;p&gt;C. INSERT INTO ✅ Correct Answer&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 49
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a Delta table named Orders.&lt;/p&gt;

&lt;p&gt;You load the Orders table into an Apache Spark DataFrame named &lt;code&gt;df&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You need to create a DataFrame that excludes rows where the order amount is null.&lt;/p&gt;

&lt;p&gt;Solution: You run the following expression.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fillna&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;subset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;order_amount&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Does this meet the goal?&lt;/p&gt;

&lt;p&gt;A. Yes&lt;/p&gt;

&lt;p&gt;B. No ✅ Correct Answer&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 50
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a Delta table named Orders.&lt;/p&gt;

&lt;p&gt;You load the Orders table into an Apache Spark DataFrame named &lt;code&gt;df&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You need to create a DataFrame that excludes rows where the order amount is null.&lt;/p&gt;

&lt;p&gt;Solution: You run the following expression.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;order_amount&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isNotNull&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Does this meet the goal?&lt;/p&gt;

&lt;p&gt;A. Yes ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;B. No&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 51
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a Delta table named Orders.&lt;/p&gt;

&lt;p&gt;You load the Orders table into an Apache Spark DataFrame named &lt;code&gt;df&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You need to create a DataFrame that excludes rows where the order amount is null.&lt;/p&gt;

&lt;p&gt;Solution: You run the following expression.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dropna&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;subset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;order_amount&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Does this meet the goal?&lt;/p&gt;

&lt;p&gt;A. Yes ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;B. No&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 52
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a Delta table named Orders.&lt;/p&gt;

&lt;p&gt;You load the Orders table into an Apache Spark DataFrame named &lt;code&gt;df&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You need to create a DataFrame that excludes rows where the order amount is null.&lt;/p&gt;

&lt;p&gt;Solution: You run the following expression.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;order_amount&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Does this meet the goal?&lt;/p&gt;

&lt;p&gt;A. Yes&lt;/p&gt;

&lt;p&gt;B. No ✅ Correct Answer&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 53
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace.&lt;/p&gt;

&lt;p&gt;You have an Azure Data Lake Storage Gen2 account named account1.&lt;/p&gt;

&lt;p&gt;You need to use a Databricks notebook to read CSV files from account1. The data from each new CSV file must be added to an existing Delta table named customer.&lt;/p&gt;

&lt;p&gt;How should you complete the PySpark code segment?&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;basePath&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;abfss://data@storage1.dfs.core.windows.net/&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;spark&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;read&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;csv&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;header&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;true&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;basePath&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;write&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;delta&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;append&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;basePath&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;delta/customers&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;✅ Correct Answer&lt;/p&gt;


&lt;h1&gt;
  
  
  Key takeaways
&lt;/h1&gt;

&lt;p&gt;For DP-750, Delta Lake table operation questions usually test basic but important behavior.&lt;/p&gt;

&lt;p&gt;Remember these patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;INSERT INTO&lt;/code&gt; adds rows and preserves existing data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;INSERT OVERWRITE&lt;/code&gt; replaces existing data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;.mode("append")&lt;/code&gt; adds data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;.mode("overwrite")&lt;/code&gt; replaces data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;NOT NULL&lt;/code&gt; prevents null values in a column.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;CHECK&lt;/code&gt; enforces a Boolean condition such as &lt;code&gt;amount &amp;gt; 0&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Views and &lt;code&gt;WHERE&lt;/code&gt; clauses do not enforce table-level write rules.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;INTERSECT&lt;/code&gt; returns values that appear in both query results.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;fillna()&lt;/code&gt; replaces nulls; it does not remove rows.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;isNotNull()&lt;/code&gt; keeps only non-null rows.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;dropna(subset=[...])&lt;/code&gt; removes rows with nulls in the specified column.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;df.order_amount != None&lt;/code&gt; is not the correct Spark null-filtering pattern.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you understand the difference between &lt;strong&gt;append vs overwrite&lt;/strong&gt;, &lt;strong&gt;query filtering vs write enforcement&lt;/strong&gt;, and &lt;strong&gt;null replacement vs null exclusion&lt;/strong&gt;, these DP-750 table operation questions become much easier.&lt;/p&gt;


&lt;h2&gt;
  
  
  Explore more
&lt;/h2&gt;


&lt;div class="ltag__user ltag__user__id__1230121"&gt;
    &lt;a href="/luca1iu" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg" alt="luca1iu image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/luca1iu"&gt;Jin&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/luca1iu"&gt;Hi, I'm Jin! 👋 A data professional exploring the future of analytics in the AI era. Writing about how AI is changing the way we work with data, make decisions, and create value.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/lucaliu-data" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Luca_DataTeam" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on X&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>azure</category>
      <category>databricks</category>
      <category>certification</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>DP-750: Structured Streaming, Checkpointing, Schema Evolution, and Change Data Feed Explained and with Real Exam Questions</title>
      <dc:creator>Jin</dc:creator>
      <pubDate>Tue, 04 Aug 2026 04:59:55 +0000</pubDate>
      <link>https://dev.to/luca1iu/dp-750-structured-streaming-checkpointing-schema-evolution-and-change-data-feed-explained-and-3omd</link>
      <guid>https://dev.to/luca1iu/dp-750-structured-streaming-checkpointing-schema-evolution-and-change-data-feed-explained-and-3omd</guid>
      <description>&lt;p&gt;When preparing for &lt;strong&gt;DP-750: Microsoft Certified: Azure Databricks Data Engineer Associate&lt;/strong&gt;, you need to understand how Azure Databricks handles streaming and incremental data processing.&lt;/p&gt;

&lt;p&gt;This topic includes several important concepts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Apache Spark Structured Streaming&lt;/li&gt;
&lt;li&gt;checkpointing&lt;/li&gt;
&lt;li&gt;exactly-once processing&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;availableNow&lt;/code&gt; trigger&lt;/li&gt;
&lt;li&gt;schema drift and schema evolution&lt;/li&gt;
&lt;li&gt;Auto Loader schema evolution modes&lt;/li&gt;
&lt;li&gt;Delta table streaming reads and writes&lt;/li&gt;
&lt;li&gt;Change Data Feed, CDF&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The related questions in your DP-750 question bank are Q8, Q43, Q47, Q48, Q54, Q59, and Q71.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. What is Structured Streaming?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Apache Spark Structured Streaming&lt;/strong&gt; is Spark’s stream processing engine. In Azure Databricks, it is commonly used to process data continuously or incrementally from sources such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;cloud storage files&lt;/li&gt;
&lt;li&gt;Delta tables&lt;/li&gt;
&lt;li&gt;Event Hubs&lt;/li&gt;
&lt;li&gt;Kafka&lt;/li&gt;
&lt;li&gt;Auto Loader&lt;/li&gt;
&lt;li&gt;streaming tables&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In DP-750, Structured Streaming often appears in questions about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;avoiding duplicate processing after failure&lt;/li&gt;
&lt;li&gt;writing to Delta tables&lt;/li&gt;
&lt;li&gt;checkpoint locations&lt;/li&gt;
&lt;li&gt;schema changes&lt;/li&gt;
&lt;li&gt;Event Hubs ingestion&lt;/li&gt;
&lt;li&gt;streaming recovery&lt;/li&gt;
&lt;li&gt;change data capture&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For exam purposes, the most important idea is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Structured Streaming needs checkpointing to remember progress and recover after failures.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  2. What is checkpointing?
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;checkpoint&lt;/strong&gt; stores streaming query progress and metadata.&lt;/p&gt;

&lt;p&gt;For example, if a streaming job has already processed files or events, the checkpoint helps the job remember what has already been processed.&lt;/p&gt;

&lt;p&gt;A checkpoint location is usually configured like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;checkpointLocation&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;checkpoint_path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Azure Databricks documentation states that &lt;code&gt;checkpointLocation&lt;/code&gt; is required for fault tolerance and exactly-once processing guarantees, and each streaming query must use a unique checkpoint location.&lt;/p&gt;

&lt;p&gt;For DP-750, the key pattern is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Streaming job reprocesses old data after restart = missing or wrong checkpoint location.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So if the question says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;After the cluster restarts, the streaming job reprocesses previously ingested data.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;the answer is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Configure a checkpoint location for the streaming query.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Exactly-once processing
&lt;/h2&gt;

&lt;p&gt;Exactly-once processing means each record is processed into the target exactly once, even if there is a failure and restart.&lt;/p&gt;

&lt;p&gt;In Databricks, exactly-once behavior is usually achieved through:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Structured Streaming&lt;/li&gt;
&lt;li&gt;checkpointing&lt;/li&gt;
&lt;li&gt;Delta Lake transaction log&lt;/li&gt;
&lt;li&gt;idempotent writes&lt;/li&gt;
&lt;li&gt;unique checkpoint location per query&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Databricks documentation says Delta Lake is deeply integrated with Structured Streaming and that the Delta transaction log guarantees exactly-once processing when writing data into a Delta table using Structured Streaming.&lt;/p&gt;

&lt;p&gt;For DP-750, remember:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Streaming + Delta target + checkpointLocation = fault tolerance / no reprocessing
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Checkpoint location vs schema location
&lt;/h2&gt;

&lt;p&gt;When using &lt;strong&gt;Auto Loader&lt;/strong&gt;, you often see both:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cloudFiles.schemaLocation&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/cloud/schema&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;checkpointLocation&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/data/checkpoint&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;They are not the same thing.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;checkpointLocation&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Stores streaming progress and state&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cloudFiles.schemaLocation&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Stores inferred schema information for Auto Loader&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Auto Loader documentation says specifying &lt;code&gt;cloudFiles.schemaLocation&lt;/code&gt; enables schema inference and evolution. The same directory can be used for &lt;code&gt;checkpointLocation&lt;/code&gt;, but the two options serve different purposes.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;If the issue is &lt;strong&gt;reprocessing after restart&lt;/strong&gt;, choose &lt;code&gt;checkpointLocation&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If the issue is &lt;strong&gt;schema inference or schema evolution&lt;/strong&gt;, choose &lt;code&gt;cloudFiles.schemaLocation&lt;/code&gt; or schema evolution settings.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  5. Schema drift and schema evolution
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Schema drift&lt;/strong&gt; means the source data structure changes over time.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"sensor_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"S001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"temperature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;21.5&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Later, the source sends a new column:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"sensor_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"S001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"temperature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;21.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"humidity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;62&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If the pipeline cannot handle the new column, it may fail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schema evolution&lt;/strong&gt; allows the target schema to evolve when new columns appear.&lt;/p&gt;

&lt;p&gt;Databricks documentation says Auto Loader supports column changes and type widening, and schema evolution can be configured with &lt;code&gt;cloudFiles.schemaEvolutionMode&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;New columns are added to the source and pipeline writes fail = enable schema evolution.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Do not choose row filters. Row filters control which rows users can see; they do not solve schema drift.&lt;/p&gt;


&lt;h2&gt;
  
  
  6. &lt;code&gt;mergeSchema&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;When writing to Delta, &lt;code&gt;mergeSchema&lt;/code&gt; allows additive schema changes, such as adding new columns.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mergeSchema&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;true&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This is commonly used when incoming data may contain new columns that should be added to the target Delta table.&lt;/p&gt;

&lt;p&gt;In the DP-750 question bank, Q43 uses:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mergeSchema&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;true&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This means new columns from incoming JSON payloads can be added automatically to the target Delta table.&lt;/p&gt;


&lt;h2&gt;
  
  
  7. Auto Loader schema evolution mode: &lt;code&gt;failOnNewColumns&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Auto Loader has several schema evolution modes.&lt;/p&gt;

&lt;p&gt;One of them is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cloudFiles.schemaEvolutionMode&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;failOnNewColumns&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This mode can be confusing.&lt;/p&gt;

&lt;p&gt;With &lt;code&gt;failOnNewColumns&lt;/code&gt;, when Auto Loader detects new columns, the stream fails so that the schema can evolve. After restart, the evolved schema is used. Databricks documentation describes this pattern: new columns fail the stream and evolve the schema, and the stream can then be restarted with the updated inferred schema.&lt;/p&gt;

&lt;p&gt;For DP-750, if a question asks:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;When a new element is found in the source data, will the element be written successfully?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and the code uses:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cloudFiles.schemaEvolutionMode&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;failOnNewColumns&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;then the answer is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;No
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Because the stream fails when it detects the new column.&lt;/p&gt;


&lt;h2&gt;
  
  
  8. &lt;code&gt;availableNow&lt;/code&gt; trigger
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;availableNow&lt;/code&gt; trigger processes all available data as an incremental batch and then stops.&lt;/p&gt;

&lt;p&gt;It is useful when you want streaming-style incremental processing without keeping the stream running forever.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trigger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;availableNow&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For DP-750, &lt;code&gt;availableNow&lt;/code&gt; is commonly used with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Auto Loader&lt;/li&gt;
&lt;li&gt;file ingestion&lt;/li&gt;
&lt;li&gt;incremental batch processing&lt;/li&gt;
&lt;li&gt;structured streaming jobs that should process currently available data and then stop&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the exam, if the code uses:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trigger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;availableNow&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;outputMode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;append&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;then it does not mean each batch overwrites the target table. With &lt;code&gt;append&lt;/code&gt; mode, new records are appended.&lt;/p&gt;


&lt;h2&gt;
  
  
  9. Delta table as streaming target
&lt;/h2&gt;

&lt;p&gt;A common Structured Streaming write pattern is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;writeStream&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;delta&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;checkpointLocation&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;checkpoint_path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mergeSchema&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;true&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trigger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;availableNow&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;table&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw_events&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For DP-750, remember:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Code option&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Write to Delta table&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.format("delta")&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Resume after failure without reprocessing&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.option("checkpointLocation", checkpoint_path)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Add new columns automatically&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.option("mergeSchema", "true")&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Process available data and stop&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.trigger(availableNow=True)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  10. Change Data Feed, CDF
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Change Data Feed&lt;/strong&gt;, or &lt;strong&gt;CDF&lt;/strong&gt;, lets you track row-level changes from a Delta table.&lt;/p&gt;

&lt;p&gt;It is useful when downstream pipelines need to consume:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;inserts&lt;/li&gt;
&lt;li&gt;updates&lt;/li&gt;
&lt;li&gt;deletes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Databricks documentation describes Change Data Feed as a feature used to track row-level changes for Delta Lake and Apache Iceberg v3 tables.&lt;/p&gt;

&lt;p&gt;A streaming read from a Delta table’s change feed can look like this:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;spark&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;readStream&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;delta&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;readChangeFeed&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;true&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;table&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;db1.sales_orders&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For DP-750, if the requirement says:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Ingest all changes from a Delta table, including inserts, updates, and deletes.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;then the key option is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;readChangeFeed = true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  11. &lt;code&gt;skipChangeCommits&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;When streaming from Delta tables, some options control how to handle source table updates and deletes.&lt;/p&gt;

&lt;p&gt;One important option is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;skipChangeCommits&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;false&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For the DP-750 question in your bank, the correct dropdown combination is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;readChangeFeed = true
skipChangeCommits = false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This means the stream reads the change feed rather than skipping commits that contain changes.&lt;/p&gt;

&lt;p&gt;For exam purposes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Read CDF changes&lt;/td&gt;
&lt;td&gt;&lt;code&gt;readChangeFeed&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Do not skip change commits&lt;/td&gt;
&lt;td&gt;&lt;code&gt;skipChangeCommits = false&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  12. Checkpointing vs watermarking vs CDF
&lt;/h2&gt;

&lt;p&gt;These options solve different problems.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;What it solves&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Checkpointing&lt;/td&gt;
&lt;td&gt;Recovery and progress tracking&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Watermarking&lt;/td&gt;
&lt;td&gt;Late data handling in stateful aggregations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change Data Feed&lt;/td&gt;
&lt;td&gt;Read inserts, updates, and deletes from Delta table&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trigger interval&lt;/td&gt;
&lt;td&gt;How often micro-batches run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Schema evolution&lt;/td&gt;
&lt;td&gt;Handles new columns or schema changes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Reprocessing after restart → checkpointing&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;New columns causing failure → schema evolution&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Need inserts, updates, deletes → CDF&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Late arriving event-time data → watermarking&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  13. DP-750 decision table for streaming
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario in the question&lt;/th&gt;
&lt;th&gt;Best answer pattern&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Streaming job reprocesses data after restart&lt;/td&gt;
&lt;td&gt;Configure checkpoint location&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Job must resume from failure point&lt;/td&gt;
&lt;td&gt;Implement checkpointing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Need exactly-once write to Delta&lt;/td&gt;
&lt;td&gt;Structured Streaming + Delta + checkpoint&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New source columns cause write failure&lt;/td&gt;
&lt;td&gt;Enable schema evolution&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auto Loader code uses &lt;code&gt;failOnNewColumns&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;New column fails the stream initially&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code uses &lt;code&gt;mergeSchema=true&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;New columns can be added to target&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code uses &lt;code&gt;outputMode("append")&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;New data is appended, not overwritten&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Need to ingest inserts, updates, deletes from Delta&lt;/td&gt;
&lt;td&gt;Read Change Data Feed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CDF streaming option&lt;/td&gt;
&lt;td&gt;&lt;code&gt;readChangeFeed = true&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Write stream to Delta&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.format("delta")&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Failure recovery option&lt;/td&gt;
&lt;td&gt;&lt;code&gt;checkpointLocation&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Process available data then stop&lt;/td&gt;
&lt;td&gt;&lt;code&gt;availableNow=True&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h1&gt;
  
  
  Real Exam Questions
&lt;/h1&gt;
&lt;h2&gt;
  
  
  Question 8
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog.&lt;/p&gt;

&lt;p&gt;You have an Apache Spark Structured Streaming job that writes data to a Delta table.&lt;/p&gt;

&lt;p&gt;After the cluster restarts, the streaming job reprocesses previously ingested data.&lt;/p&gt;

&lt;p&gt;You need to prevent the streaming job from reprocessing the data after the cluster restarts.&lt;/p&gt;

&lt;p&gt;What should you do?&lt;/p&gt;

&lt;p&gt;A. Configure a checkpoint location for the streaming query. ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;B. Increase the trigger interval of the streaming query.&lt;/p&gt;

&lt;p&gt;C. Enable change data feed, CDF, for the target table.&lt;/p&gt;

&lt;p&gt;D. Configure a watermark for the streaming query.&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 43
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog.&lt;/p&gt;

&lt;p&gt;You plan to run the following PySpark code.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;writeStream&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;delta&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;checkpointLocation&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;CHECKPOINT_LOCATION&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;outputMode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;append&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mergeSchema&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;true&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trigger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;availableNow&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toTable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BRONZE_TABLE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For each of the following statements, select Yes if the statement is true. Otherwise, select No.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Statement&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;New columns from incoming JSON payload will be added automatically to the target Delta table.&lt;/td&gt;
&lt;td&gt;Yes ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Previously processed data will not be reprocessed if the pipeline fails.&lt;/td&gt;
&lt;td&gt;Yes ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Each new batch of telemetry data will overwrite the existing data in the target Delta table.&lt;/td&gt;
&lt;td&gt;No ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  Question 47
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a Delta table named &lt;code&gt;db1.sales_orders&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;db1.sales_orders&lt;/code&gt; is updated nightly and has change data feed, CDF, enabled.&lt;/p&gt;

&lt;p&gt;You need to ingest all the changes from the &lt;code&gt;db1.sales_orders&lt;/code&gt; table, including inserts, updates, and deletes, into a downstream pipeline.&lt;/p&gt;

&lt;p&gt;How should you complete the PySpark code segment?&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;spark&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;readStream&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;delta&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;______&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;true&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;______&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;false&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;table&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;db1.sales_orders&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;First dropdown&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;"readChangeFeed"&lt;/code&gt; ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Second dropdown&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;"skipChangeCommits"&lt;/code&gt; ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  Question 48
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that uses Unity Catalog.&lt;/p&gt;

&lt;p&gt;You have a Lakeflow Spark Declarative Pipelines, SDP, pipeline that ingests data into a managed Delta table named Table1. Table1 is used for analytics.&lt;/p&gt;

&lt;p&gt;New columns are added to the source data, causing pipeline failures during writes to Table1.&lt;/p&gt;

&lt;p&gt;You need to prevent the pipeline failures. The solution must ensure that schema changes are detected and handled.&lt;/p&gt;

&lt;p&gt;What should you do?&lt;/p&gt;

&lt;p&gt;A. Disable schema enforcement for Table1.&lt;/p&gt;

&lt;p&gt;B. Use row filters to exclude records that have new columns.&lt;/p&gt;

&lt;p&gt;C. Enable schema evolution. ✅ Correct Answer&lt;/p&gt;

&lt;p&gt;D. Create a separate table for each schema version.&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 54
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog.&lt;/p&gt;

&lt;p&gt;You plan to run the following PySpark code.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;spark&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;readStream&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cloudFiles&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cloudFiles.format&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;json&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cloudFiles.schemaLocation&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/cloud/schema&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cloudFiles.schemaEvolutionMode&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;failOnNewColumns&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/data/source&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;writeStream&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;checkpointLocation&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/data/checkpoint&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toTable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;table1&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For each of the following statements, select Yes if the statement is true. Otherwise, select No.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Statement&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;When a new element is found in the source data, the element will be written to table1 successfully.&lt;/td&gt;
&lt;td&gt;No ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The streaming process will resume from a failure without data loss.&lt;/td&gt;
&lt;td&gt;Yes ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data will be written to a JSON file.&lt;/td&gt;
&lt;td&gt;No ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  Question 59
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Useful case information
&lt;/h3&gt;

&lt;p&gt;Contoso identifies the following data ingestion and processing requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Handle schema drift for the maintenance and telemetry data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Store all the ingested data in a format that supports incremental processing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Support the continuous ingestion of telemetry data from the event hubs by using exactly-once semantics.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ensure that the Apache Spark Structured Streaming pipelines reading from the event hubs write the data into a managed Delta table named &lt;code&gt;telemetry.raw_events&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The pipelines must support schema drift and resume processing after failures without reprocessing the data.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You need to complete the PySpark code for the Spark Structured Streaming pipelines. The solution must meet the data ingestion and processing requirements.&lt;/p&gt;

&lt;p&gt;How should you complete the code segment?&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;telemetry_path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;abfss://telemetry@contosodata.dfs.core.windows.net/&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;checkpoint_path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;abfss://telemetry@contosodata.dfs.core.windows.net/checkpoints/raw_events&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;raw_events&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;analytics.telemetry.raw_events&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;spark&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;readStream&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;json&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;telemetry_path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;writeStream&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;______&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;______&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mergeSchema&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;true&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trigger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;availableNow&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;table&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw_events&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;First dropdown&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;"delta"&lt;/code&gt; ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Second dropdown&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;("checkpointLocation", checkpoint_path)&lt;/code&gt; ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  Question 71
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace.&lt;/p&gt;

&lt;p&gt;You have an Apache Spark Structured Streaming job named Job1 that processes data continuously and fails periodically due to transient errors.&lt;/p&gt;

&lt;p&gt;You need to ensure that Job1 meets the following requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Resumes processing from the point that Job1 failed&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Minimizes how long it takes to restart Job1&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Minimizes the costs to restart Job1&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What should you do?&lt;/p&gt;

&lt;p&gt;A. Decrease the retry interval.&lt;/p&gt;

&lt;p&gt;B. Increase the minimum number of nodes in the cluster.&lt;/p&gt;

&lt;p&gt;C. Add an alert and manually restart Job1.&lt;/p&gt;

&lt;p&gt;D. Implement checkpointing. ✅ Correct Answer&lt;/p&gt;


&lt;h1&gt;
  
  
  Key takeaways
&lt;/h1&gt;

&lt;p&gt;For DP-750, Structured Streaming questions are usually about &lt;strong&gt;recovery&lt;/strong&gt;, &lt;strong&gt;incremental processing&lt;/strong&gt;, and &lt;strong&gt;schema changes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Remember these patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Checkpointing&lt;/strong&gt; prevents reprocessing after restart.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;checkpointLocation&lt;/code&gt; is required for fault tolerance and exactly-once guarantees.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Each streaming query should use a unique checkpoint location.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Delta tables&lt;/strong&gt; are the normal target for reliable streaming writes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;mergeSchema=true&lt;/code&gt; allows new incoming columns to be added.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Schema evolution&lt;/strong&gt; handles new source columns.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;failOnNewColumns&lt;/code&gt; causes the stream to fail when new columns appear, so the schema can evolve.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;availableNow=True&lt;/code&gt; processes available data and then stops.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;outputMode("append")&lt;/code&gt; appends data; it does not overwrite existing records.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Change Data Feed&lt;/strong&gt; is used to ingest inserts, updates, and deletes from a Delta table.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For CDF streaming reads, use &lt;code&gt;readChangeFeed=true&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you can identify whether the issue is &lt;strong&gt;failure recovery&lt;/strong&gt;, &lt;strong&gt;schema drift&lt;/strong&gt;, &lt;strong&gt;Delta change capture&lt;/strong&gt;, or &lt;strong&gt;output behavior&lt;/strong&gt;, you can usually choose the correct DP-750 streaming answer quickly.&lt;/p&gt;


&lt;h2&gt;
  
  
  Explore more
&lt;/h2&gt;


&lt;div class="ltag__user ltag__user__id__1230121"&gt;
    &lt;a href="/luca1iu" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg" alt="luca1iu image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/luca1iu"&gt;Jin&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/luca1iu"&gt;Hi, I'm Jin! 👋 A data professional exploring the future of analytics in the AI era. Writing about how AI is changing the way we work with data, make decisions, and create value.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/lucaliu-data" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Luca_DataTeam" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on X&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>azure</category>
      <category>databricks</category>
      <category>certification</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>DP-750: Data Ingestion Patterns Explained and with Real Exam Questions</title>
      <dc:creator>Jin</dc:creator>
      <pubDate>Mon, 03 Aug 2026 06:59:56 +0000</pubDate>
      <link>https://dev.to/luca1iu/dp-750-data-ingestion-patterns-explained-and-with-real-exam-questions-111k</link>
      <guid>https://dev.to/luca1iu/dp-750-data-ingestion-patterns-explained-and-with-real-exam-questions-111k</guid>
      <description>&lt;p&gt;When preparing for &lt;strong&gt;DP-750: Microsoft Certified: Azure Databricks Data Engineer Associate&lt;/strong&gt;, you need to know how to choose the right ingestion pattern for different data sources.&lt;/p&gt;

&lt;p&gt;This is a common exam topic because Azure Databricks supports several ingestion options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Auto Loader&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;COPY INTO&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lakeflow Connect&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Apache Spark Structured Streaming&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Databricks notebooks&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lakeflow Jobs triggers&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The related questions in your DP-750 question bank are Q37, Q44, Q46, and Q56.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Why data ingestion patterns matter in DP-750
&lt;/h2&gt;

&lt;p&gt;Data ingestion means loading data from source systems into the lakehouse.&lt;/p&gt;

&lt;p&gt;In DP-750, the source system is often one of these:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Source type&lt;/th&gt;
&lt;th&gt;Typical ingestion pattern&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Files in cloud storage&lt;/td&gt;
&lt;td&gt;Auto Loader or COPY INTO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frequently arriving files&lt;/td&gt;
&lt;td&gt;Auto Loader&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Simple SQL-based file loading&lt;/td&gt;
&lt;td&gt;COPY INTO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SaaS applications or databases&lt;/td&gt;
&lt;td&gt;Lakeflow Connect&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Azure Event Hubs&lt;/td&gt;
&lt;td&gt;Spark Structured Streaming&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;REST API&lt;/td&gt;
&lt;td&gt;Databricks notebook or custom code&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The exam usually gives you requirements such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;minimize custom code&lt;/li&gt;
&lt;li&gt;handle schema drift&lt;/li&gt;
&lt;li&gt;process new files incrementally&lt;/li&gt;
&lt;li&gt;support near-real-time ingestion&lt;/li&gt;
&lt;li&gt;ingest from operational databases&lt;/li&gt;
&lt;li&gt;read streaming events&lt;/li&gt;
&lt;li&gt;preserve existing table data&lt;/li&gt;
&lt;li&gt;use Unity Catalog governance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your job is to match the requirement to the right ingestion tool.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Auto Loader
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Auto Loader&lt;/strong&gt; is one of the most important ingestion features for DP-750.&lt;/p&gt;

&lt;p&gt;Auto Loader incrementally discovers and processes new files as they arrive in cloud object storage. Databricks documentation describes Auto Loader as a way to incrementally and efficiently process new data files as they arrive in cloud storage. It can load files into Delta tables and supports both Python and SQL.&lt;/p&gt;

&lt;p&gt;Auto Loader is commonly used with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;spark.readStream.format("cloudFiles")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;spark&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;readStream&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cloudFiles&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cloudFiles.format&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;json&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/path/to/source&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Use Auto Loader when the question says:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;new files arrive frequently&lt;/li&gt;
&lt;li&gt;data must be available in near-real time&lt;/li&gt;
&lt;li&gt;minimize custom code&lt;/li&gt;
&lt;li&gt;handle large-scale file ingestion&lt;/li&gt;
&lt;li&gt;support schema drift or schema evolution&lt;/li&gt;
&lt;li&gt;ingest JSON, CSV, Parquet, or other file-based data&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  3. Auto Loader and schema drift
&lt;/h2&gt;

&lt;p&gt;Schema drift means the source data structure changes over time.&lt;/p&gt;

&lt;p&gt;For example, today’s JSON files contain:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"sensor_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"S001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"temperature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;21.5&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Tomorrow’s JSON files contain a new field:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"sensor_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"S001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"temperature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;21.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"humidity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;62&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This is common in IoT telemetry and operational logs.&lt;/p&gt;

&lt;p&gt;Auto Loader supports schema inference and schema evolution. Databricks documentation says Auto Loader can automatically detect the schema of loaded data and supports schema evolution options such as &lt;code&gt;cloudFiles.schemaEvolutionMode&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;File-based ingestion + schema drift + minimal operational effort = Auto Loader&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  4. COPY INTO
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;COPY INTO&lt;/code&gt; is a SQL command for loading files from cloud storage into a Delta table.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;COPY&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="s1"&gt;'abfss://raw@storage1.dfs.core.windows.net/orders/'&lt;/span&gt;
&lt;span class="n"&gt;FILEFORMAT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;CSV&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Databricks documentation says &lt;code&gt;COPY INTO&lt;/code&gt; can load data incrementally and idempotently from cloud storage into a Delta table. It is often used for incremental or bulk loading from cloud object storage.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;COPY INTO&lt;/code&gt; when the question says:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;load files into an existing table&lt;/li&gt;
&lt;li&gt;use SQL&lt;/li&gt;
&lt;li&gt;load incrementally&lt;/li&gt;
&lt;li&gt;minimize processing effort&lt;/li&gt;
&lt;li&gt;source is cloud object storage&lt;/li&gt;
&lt;li&gt;source files are CSV, JSON, Parquet, Avro, ORC, text, or similar&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;SQL-based incremental file loading = COPY INTO&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  5. COPY INTO vs Auto Loader
&lt;/h2&gt;

&lt;p&gt;Both Auto Loader and &lt;code&gt;COPY INTO&lt;/code&gt; can load files from cloud storage, but they are used in slightly different situations.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Better choice&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Near-real-time file ingestion&lt;/td&gt;
&lt;td&gt;Auto Loader&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frequently arriving files&lt;/td&gt;
&lt;td&gt;Auto Loader&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Large-scale file discovery&lt;/td&gt;
&lt;td&gt;Auto Loader&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Schema drift handling&lt;/td&gt;
&lt;td&gt;Auto Loader&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SQL-based incremental loading&lt;/td&gt;
&lt;td&gt;COPY INTO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Simple one-command file ingestion&lt;/td&gt;
&lt;td&gt;COPY INTO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thousands of files&lt;/td&gt;
&lt;td&gt;COPY INTO can be suitable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Millions of files or advanced ingestion&lt;/td&gt;
&lt;td&gt;Auto Loader is usually better&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Databricks documentation says &lt;code&gt;COPY INTO&lt;/code&gt; works well for data sources that contain thousands of files, while Auto Loader is recommended for loading millions of files and advanced use cases.&lt;/p&gt;

&lt;p&gt;For DP-750, if the question says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;New rows are appended frequently and must be available near-real-time.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;choose &lt;strong&gt;Auto Loader&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If the question says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Complete the SQL statement to incrementally load CSV files.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;choose &lt;strong&gt;COPY INTO&lt;/strong&gt;.&lt;/p&gt;


&lt;h2&gt;
  
  
  6. Lakeflow Connect
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Lakeflow Connect&lt;/strong&gt; is used to ingest data from systems such as SaaS applications, databases, cloud storage, and message buses.&lt;/p&gt;

&lt;p&gt;Databricks documentation describes Lakeflow Connect as a set of connectors for ingesting data from local files, enterprise applications, databases, cloud storage, message buses, and more. Managed connectors are governed by Unity Catalog, powered by serverless compute and Lakeflow Spark Declarative Pipelines, and support efficient incremental reads and writes.&lt;/p&gt;

&lt;p&gt;Use Lakeflow Connect when the question says:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ingest from an operational database&lt;/li&gt;
&lt;li&gt;ingest from SQL Server&lt;/li&gt;
&lt;li&gt;ingest from Salesforce, ServiceNow, Google Analytics, or supported applications&lt;/li&gt;
&lt;li&gt;minimize custom ingestion code&lt;/li&gt;
&lt;li&gt;use a managed connector&lt;/li&gt;
&lt;li&gt;load data into the lakehouse&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Structured operational database ingestion + managed connector = Lakeflow Connect&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  7. Lakeflow Connect vs foreign catalog
&lt;/h2&gt;

&lt;p&gt;This is an important distinction.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Correct choice&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ingest data from external system into Databricks&lt;/td&gt;
&lt;td&gt;Lakeflow Connect&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Query external database tables without copying data&lt;/td&gt;
&lt;td&gt;Foreign catalog&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data should appear in Unity Catalog but remain in source system&lt;/td&gt;
&lt;td&gt;Foreign catalog&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data should be loaded into lakehouse tables&lt;/td&gt;
&lt;td&gt;Lakeflow Connect&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In the previous article, we used &lt;strong&gt;foreign catalog&lt;/strong&gt; for read-only federation.&lt;/p&gt;

&lt;p&gt;In this article, Lakeflow Connect is about &lt;strong&gt;ingestion&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If data is copied or ingested into Databricks, think Lakeflow Connect.&lt;br&gt;&lt;br&gt;
If data is not copied and only queried externally, think foreign catalog.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  8. Azure Event Hubs ingestion
&lt;/h2&gt;

&lt;p&gt;Azure Event Hubs is used for streaming event data.&lt;/p&gt;

&lt;p&gt;In Azure Databricks, Event Hubs data can be read with Spark Structured Streaming. A common pattern is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;events&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;spark&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;readStream&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;eventhubs&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;eventhubs.connectionString&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;&amp;lt;auth_value&amp;gt;&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Event Hubs event payloads are stored in the &lt;code&gt;body&lt;/code&gt; field, so you commonly convert the body to a string:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;selectExpr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;CAST(body AS STRING) AS payload&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Microsoft documentation for Azure Event Hubs with Databricks describes using Structured Streaming to ingest Event Hubs data into raw landing tables. Databricks also documents Event Hubs as a pipeline data source for Lakeflow pipelines.&lt;/p&gt;

&lt;p&gt;For DP-750:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Event Hubs + streaming ingestion = Spark Structured Streaming&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And for the PySpark code:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Connection option = "eventhubs.connectionString"
Payload expression = "CAST(body AS STRING) AS payload"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  9. REST API ingestion
&lt;/h2&gt;

&lt;p&gt;Some data sources do not have a managed connector.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;external weather API&lt;/li&gt;
&lt;li&gt;custom business API&lt;/li&gt;
&lt;li&gt;third-party REST endpoint&lt;/li&gt;
&lt;li&gt;internal HTTP service&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In these cases, a &lt;strong&gt;Databricks notebook&lt;/strong&gt; is often the simplest answer.&lt;/p&gt;

&lt;p&gt;The notebook can:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;call the REST API&lt;/li&gt;
&lt;li&gt;parse the JSON response&lt;/li&gt;
&lt;li&gt;convert it into a DataFrame&lt;/li&gt;
&lt;li&gt;write it to a Delta table&lt;/li&gt;
&lt;li&gt;run on a schedule through Lakeflow Jobs&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For DP-750, if the source is an external REST API and no managed connector option is available, the answer is often:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A Databricks notebook&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is especially true when the question says the external data is retrieved from a REST API and written to cloud storage or Delta tables.&lt;/p&gt;


&lt;h2&gt;
  
  
  10. Incremental processing and Delta tables
&lt;/h2&gt;

&lt;p&gt;DP-750 often includes the requirement:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Store all ingested data in a format that supports incremental processing.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The answer is usually &lt;strong&gt;Delta Lake&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Delta tables support:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ACID transactions&lt;/li&gt;
&lt;li&gt;scalable metadata&lt;/li&gt;
&lt;li&gt;time travel&lt;/li&gt;
&lt;li&gt;streaming reads and writes&lt;/li&gt;
&lt;li&gt;change data feed&lt;/li&gt;
&lt;li&gt;incremental processing patterns&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For ingestion questions, this means the target should usually be a &lt;strong&gt;Delta table&lt;/strong&gt;, especially a managed Delta table when Unity Catalog is enabled.&lt;/p&gt;


&lt;h2&gt;
  
  
  11. DP-750 decision table for ingestion patterns
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario in the question&lt;/th&gt;
&lt;th&gt;Best answer pattern&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ingest new files from cloud storage with minimal effort&lt;/td&gt;
&lt;td&gt;Auto Loader&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Files arrive frequently and near-real-time is required&lt;/td&gt;
&lt;td&gt;Auto Loader&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;File-based telemetry with schema drift&lt;/td&gt;
&lt;td&gt;Auto Loader&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maintenance logs with unstructured files&lt;/td&gt;
&lt;td&gt;Auto Loader&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Simple SQL command to load CSV files incrementally&lt;/td&gt;
&lt;td&gt;COPY INTO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Complete SQL statement: &lt;code&gt;[?] table [?] path FILEFORMAT = CSV&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;COPY INTO table FROM path&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Operational database ingestion&lt;/td&gt;
&lt;td&gt;Lakeflow Connect managed connector&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SQL Server ingestion into lakehouse&lt;/td&gt;
&lt;td&gt;Lakeflow Connect&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;External database query without copying data&lt;/td&gt;
&lt;td&gt;Foreign catalog&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;External REST API&lt;/td&gt;
&lt;td&gt;Databricks notebook&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Azure Event Hubs streaming&lt;/td&gt;
&lt;td&gt;Spark Structured Streaming&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Event Hubs authentication option&lt;/td&gt;
&lt;td&gt;&lt;code&gt;"eventhubs.connectionString"&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Event Hubs payload column&lt;/td&gt;
&lt;td&gt;&lt;code&gt;"CAST(body AS STRING) AS payload"&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h1&gt;
  
  
  Real Exam Questions
&lt;/h1&gt;
&lt;h2&gt;
  
  
  Question 37
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Useful case information
&lt;/h3&gt;

&lt;p&gt;Contoso ingests the following operational and business data:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Telemetry data: More than 40,000 IoT sensors across 28 sites emit JSON telemetry events every few seconds. Each site sends the events to the nearest event hub, which writes the data into the corresponding Data Lake Storage Gen2 account. These files frequently experience schema drift.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Maintenance logs: Maintenance systems generate historical repair logs, daily incremental updates, technician notes, and unstructured attachments that are stored in the Data Lake Storage Gen2 accounts.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Operational maintenance data: Structured operational maintenance data is stored on the Azure Database for PostgreSQL server.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;External weather data: Hourly weather forecasts are retrieved from a REST API and written to the Data Lake Storage Gen2 accounts.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Contoso identifies the following data ingestion and processing requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Auto-scale ingestion pipelines to handle bursty workloads.&lt;/li&gt;
&lt;li&gt;Handle schema drift for the maintenance and telemetry data.&lt;/li&gt;
&lt;li&gt;Ingest file-based telemetry data by using minimal operational effort.&lt;/li&gt;
&lt;li&gt;Store all the ingested data in a format that supports incremental processing.&lt;/li&gt;
&lt;li&gt;Support the ingestion of the structured maintenance data from the Azure Database for PostgreSQL server.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Which ingestion option should you recommend for each data source?&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Data source&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Telemetry Data&lt;/td&gt;
&lt;td&gt;Auto Loader ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Operational maintenance data&lt;/td&gt;
&lt;td&gt;Lakeflow Connect managed connector ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maintenance logs&lt;/td&gt;
&lt;td&gt;Auto Loader ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;External weather data&lt;/td&gt;
&lt;td&gt;A Databricks notebook ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  Question 44
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog.&lt;/p&gt;

&lt;p&gt;You plan to ingest data from CSV files stored in Azure Data Lake Storage Gen2. New rows are appended frequently.&lt;/p&gt;

&lt;p&gt;You need to implement a data ingestion solution that meets the following requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;New data must be available in near-real-time, NRT.&lt;/li&gt;
&lt;li&gt;The data must be stored in managed Delta tables.&lt;/li&gt;
&lt;li&gt;The solution must minimize custom code and maintenance effort.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What should you include in the solution?&lt;/p&gt;

&lt;p&gt;A. scheduled Apache Spark batch jobs&lt;br&gt;
B. an Azure Data Factory pipeline&lt;br&gt;
C. Auto Loader ✅ Correct Answer&lt;br&gt;
D. an external table that references the CSV files&lt;/p&gt;


&lt;h2&gt;
  
  
  Question 46
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace.&lt;/p&gt;

&lt;p&gt;You need to ingest streaming data from Azure Event Hubs by using Apache Spark Structured Streaming. The solution must authenticate to Event Hubs and read the event payload.&lt;/p&gt;

&lt;p&gt;How should you complete the PySpark code segment?&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;events&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;spark&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;readStream&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;eventhubs&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;______&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;&amp;lt;auth_value&amp;gt;&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;selectExpr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;______&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;First dropdown&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;"eventhubs.connectionString"&lt;/code&gt; ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Second dropdown&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;"CAST(body AS STRING) AS payload"&lt;/code&gt; ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  Question 56
&lt;/h2&gt;

&lt;p&gt;You have an Azure Databricks workspace that is enabled for Unity Catalog.&lt;/p&gt;

&lt;p&gt;You need to ingest data from the CSV files stored in an external Azure Data Lake Storage Gen2 container into a managed Delta table. The solution must meet the following requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Load data incrementally as new files arrive.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Minimize custom code and operational effort.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;How should you complete the SQL statement?&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Dropdown&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;

&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Dropdown&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="s1"&gt;'abfss://raw@storage1.dfs.core.windows.net/orders/'&lt;/span&gt;

&lt;span class="n"&gt;FILEFORMAT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;CSV&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Dropdown 1&lt;/td&gt;
&lt;td&gt;COPY INTO ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dropdown 2&lt;/td&gt;
&lt;td&gt;FROM ✅ Correct Answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Completed statement:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;COPY&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="s1"&gt;'abfss://raw@storage1.dfs.core.windows.net/orders/'&lt;/span&gt;
&lt;span class="n"&gt;FILEFORMAT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;CSV&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Key takeaways
&lt;/h1&gt;

&lt;p&gt;For DP-750, ingestion questions are mostly about matching the source and requirement to the right tool.&lt;/p&gt;

&lt;p&gt;Remember these patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Auto Loader&lt;/strong&gt; is best for incremental cloud file ingestion, especially near-real-time ingestion and schema drift.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;COPY INTO&lt;/strong&gt; is a SQL-based way to load files incrementally into Delta tables.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Lakeflow Connect&lt;/strong&gt; is used for managed ingestion from databases and enterprise applications.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Foreign catalog&lt;/strong&gt; is for querying external databases without copying data, not ingestion.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Databricks notebooks&lt;/strong&gt; are useful for custom ingestion, especially REST APIs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Azure Event Hubs&lt;/strong&gt; streaming ingestion uses Spark Structured Streaming.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Event Hubs payload is in the &lt;code&gt;body&lt;/code&gt; column.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use &lt;code&gt;"eventhubs.connectionString"&lt;/code&gt; for the Event Hubs connection option.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use &lt;code&gt;"CAST(body AS STRING) AS payload"&lt;/code&gt; to extract the event payload.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you can identify whether the source is &lt;strong&gt;cloud files&lt;/strong&gt;, &lt;strong&gt;operational database&lt;/strong&gt;, &lt;strong&gt;Event Hubs&lt;/strong&gt;, or &lt;strong&gt;REST API&lt;/strong&gt;, you can usually choose the correct DP-750 ingestion pattern quickly.&lt;/p&gt;


&lt;h2&gt;
  
  
  Explore more
&lt;/h2&gt;


&lt;div class="ltag__user ltag__user__id__1230121"&gt;
    &lt;a href="/luca1iu" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230121%2F2521cc84-ad7d-458c-99e5-b4d82f625a88.jpg" alt="luca1iu image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/luca1iu"&gt;Jin&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/luca1iu"&gt;Hi, I'm Jin! 👋 A data professional exploring the future of analytics in the AI era. Writing about how AI is changing the way we work with data, make decisions, and create value.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Thank you for taking the time to explore data-related insights with me. I appreciate your engagement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/lucaliu-data" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Luca_DataTeam" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Connect with me on X&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>azure</category>
      <category>databricks</category>
      <category>certification</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
