Databricks Data Engineer AssociateReadable course · exam version of May 4, 2026 · v2, transcript-audited
0 of 22 quizzes passed

Pass mark per quiz: 70%, same as the real exam. Scores are saved in this browser only.

Module 0 · Video 0:00:00 Introduction

The exam and how to use this course

This course turns Andrew Brown's 7.5-hour freeCodeCamp video into text you can read at your own pace. It also adds the topics the current exam tests that the video does not cover.

Where this content comes from

  • The video: Databricks Data Engineer Associate Certification Course, Pass the Exam! (freeCodeCamp, published September 17, 2025, 7 h 28 min). Modules 0 to 17, 19 and 20 follow its 20 chapters in order. Module 18 is new material for the current exam.
  • The official exam guide: Databricks Certified Data Engineer Associate Exam Guide (exam published May 4, 2026; guide updated August 6, 2026).
Important: the exam changed after the video

The video was recorded for the exam version that was live in 2025. On May 4, 2026 Databricks published a new version with seven sections, including dedicated CI/CD and Troubleshooting sections and more on Lakeflow Jobs and governance. Content tagged New exam in this course covers those additions. Check the exam guide on Databricks' site two weeks before your exam date, as Databricks itself recommends.

How this course was built

Version 1 was built from the video's chapter list and the exam guide. Version 2 was then audited line by line against the full video transcript (about 100,000 words, 710 items inventoried): everything the video teaches that was missing has been added in a "From the video" block at the end of the relevant module. The Video coverage map lists every item with its timestamp so you can check it yourself. Where the video is outdated or imprecise, the course says so.

Exam facts

ItemDetail
Questions45 scored multiple-choice questions, plus up to 10 unscored questions you cannot identify
Time90 minutes (already includes time for unscored items)
FeeUSD 200 plus local taxes
DeliveryOnline proctored or test center. No test aids allowed.
LanguagesEnglish, Japanese, Brazilian Portuguese, Korean
PrerequisitesNone. Six months of hands-on Databricks experience is recommended.
Validity2 years. Recertify with the Renewal Exam or the current full exam.
Passing scoreThe guide does not state one. The widely cited figure is 70%, so this course uses 70% as the pass mark for every quiz.

Exam day logistics the video mentions

  • Provider: Databricks exams are delivered by Kryterion through its Webassessor portal (the same provider Google Cloud uses). Online exams are proctored by humans with AI-assisted monitoring, so expect the camera and screen to be watched throughout.
  • Seat time: the exam itself is 90 minutes, but plan about 120 minutes of seat time for check-in: accepting the NDA, showing your room and desk, and the post-exam review. Do not book anything tight before or after.
  • Format: single-answer multiple choice. The video reports no multiple-select questions. There is no penalty for wrong answers, so never leave a question blank.
  • Margin: with 45 scored questions and a 70% pass mark, you can miss about 13 (32 of 45 is 71%). This is arithmetic, not an official figure, because Databricks does not publish the passing score in the guide.
  • Question style: practical over conceptual. Many questions show SQL or PySpark code and ask what it does or which line fixes it. Practise reading code, not just definitions.
  • Scoring scale: the video guesses the exam is scored out of 1,000. Databricks does not state this. Ignore it.

The exam as it was in the video

The video was recorded for the 2025 exam guide, which had five domains. Use this table to map what Andrew says to the current seven sections. The 10% for the platform domain is stated in the video; the other 2025 weights are given for reference and should be checked against the archived guide.

2025 domain (video)2025 weightWhere it lives in the 2026 exam
Databricks Intelligence Platform10%1. Databricks Intelligence Platform (6%)
Development and Ingestion30% (verify)2. Data Ingestion and Loading; 5. Implementing CI/CD
Data Processing and Transformations (PySpark, medallion)31% (verify)3. Data Transformation and Modeling
Productionizing Data Pipelines18% (verify)4. Working with Lakeflow Jobs; 6. Troubleshooting, Monitoring, Optimization
Data Governance and Quality (security, masking)11% (verify)7. Governance and Security

The video mentions knowing how to use RDDs. The current exam focuses on the DataFrame API and Spark SQL (Module 10, Module 12); RDDs are background knowledge only.

The seven exam sections

6%1. Databricks Intelligence Platform
21%2. Data Ingestion and Loading
22%3. Data Transformation and Modeling
16%4. Working with Lakeflow Jobs
10%5. Implementing CI/CD
10%6. Troubleshooting, Monitoring, Optimization
15%7. Governance and Security

With 45 questions, 1% is roughly half a question. Sections 2 and 3 together are about 19 questions. Section 1 is only about 3.

Where each exam section is taught

Exam sectionModules
1. Platform5 Intro to Databricks, 6 Compute, 9 Delta Lake
2. Ingestion4 Data sources, 13 File formats, 14 Streaming, 15 Auto Loader, COPY INTO and Lakeflow Connect
3. Transformation2 Data models, 3 Data integrity, 10 DataFrame API, 11 Tables and views, 12 SQL, 16 Declarative Pipelines
4. Lakeflow Jobs17 Lakeflow Jobs
5. CI/CD8 Git folders and Declarative Automation Bundles
6. Troubleshooting18 Monitoring, troubleshooting, optimization
7. Governance19 Unity Catalog, 20 Access control

Names that changed

Databricks renames products often, and exam questions use the current names. Learn both.

Current name (used on the exam)Older name you may see in the video or blogs
Lakeflow JobsDatabricks Workflows, Jobs
Lakeflow Declarative Pipelines (also Spark Declarative Pipelines)Delta Live Tables (DLT)
Declarative Automation BundlesDatabricks Asset Bundles (DABs)
Git foldersDatabricks Repos
Lakeflow Connect(new) managed ingestion connectors
Data Intelligence PlatformLakehouse Platform
Standard access mode / Dedicated access modeShared access mode / Single user access mode
AUTO CDCAPPLY CHANGES INTO

Study plan

  1. Read one module, then take its quiz without looking back. Under 70% means reread before moving on.
  2. Get a free Databricks Free Edition workspace and type out the code examples. The exam rewards people who have actually clicked through the UI.
  3. Finish with the Final mock exam module, which includes the ten official sample questions.
Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Instructor's advice from the video
  • Time budget: about 20 hours if you are new to Databricks, 10 hours if experienced, 15 hours on average. Spend roughly 60% of it hands-on with SQL and PySpark. A pace of 1 to 2 hours a day for 14 days works.
  • Labs do not always work as documented. Some features need a paid tier, an admin setting or a sales contact (the video hit this when demonstrating transactions). When that happens, read the documented behaviour and move on.
  • Certification path: Andrew recommends the Data Engineer Associate, then the Data Engineer Professional. Databricks also offers free "fundamentals" accreditations, which are short courses, not certifications; use them only to fill gaps.
  • Real talk: the certification does not prove programming, diagramming or code management skills. Data engineering jobs also need SQL, a programming language, Linux, networking, developer tools and some computer science fundamentals.
Module 1 · Video 0:11:21 Data Basics

Data basics

The vocabulary every later module relies on: kinds of data, where data is stored, and the systems that store it.

Data, information, and the data engineer's job

Data is raw recorded facts: a sensor reading, a click, an order row. Information is data that has been processed into something useful, such as "revenue per region last week". A data engineer builds and runs the systems that move data from where it is created to where it is useful, reliably, at scale, with governance. Data analysts query the result and data scientists build models on it.

Three shapes of data

ShapeWhat it looks likeExamples
StructuredFixed schema of rows and columns with typesSQL tables, CSV with a known header, Parquet
Semi-structuredSelf-describing, flexible, can be nestedJSON, XML, Avro, log lines with key=value pairs
UnstructuredNo tabular schemaImages, PDFs, audio, video, free text

Databricks handles all three. Structured and semi-structured data go into Delta tables. Unstructured files usually live in a Unity Catalog volume (Module 19) and can be read with the binaryFile format.

Common data types

Spark SQL types you will meet: STRING, INT, BIGINT, DOUBLE, DECIMAL(p,s) (exact, use for money), BOOLEAN, DATE, TIMESTAMP, BINARY, and the complex types ARRAY<T>, MAP<K,V>, STRUCT<a:T,...>. Databricks also has a VARIANT type for storing semi-structured JSON efficiently.

Storage systems

SystemOptimized forWeakness
Relational database (OLTP)Many small, fast reads and writes; transactions. Example: an e-commerce order system.Not built for scanning billions of rows for analytics
Data warehouse (OLAP)Analytical SQL on structured, cleaned data; BIExpensive, proprietary formats, poor for unstructured data and ML
Data lakeCheap storage of any file in cloud object storage (S3, ADLS, GCS)No transactions, no schema enforcement, easily becomes a "data swamp"
LakehouseLake storage costs plus warehouse reliability and performanceNeeds a table format layer such as Delta Lake
The lakehouse idea

Keep data in open file formats in your own cloud storage, and add a transaction log on top (Delta Lake) so that you get ACID transactions, schema enforcement, versioning, and fast queries. One copy of data then serves BI, data engineering, streaming and ML. This is Databricks' core architectural claim.

OLTP vs OLAP

  • OLTP (online transaction processing): row-oriented, normalized, many concurrent small transactions, current state.
  • OLAP (online analytical processing): column-oriented, denormalized for reads, large scans and aggregations, history.

Column-oriented storage (Parquet, Delta) is fast for analytics because a query reads only the columns it needs and similar values compress well.

Scale words

The "3 Vs" (sometimes 5): Volume (how much), Velocity (how fast it arrives), Variety (how many shapes), plus Veracity (how trustworthy) and Value. Spark was built for volume, Structured Streaming for velocity, and Delta for veracity.

Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Note on the video's foundation chapters

The video's chapters on data basics, models, integrity and sources are reused from an Azure fundamentals course, so the examples name Azure SQL, Azure Data Lake, Synapse Analytics, Stream Analytics, Event Hubs, Cosmos DB and Power BI. The concepts are general. The Databricks equivalents are shown in these modules.

Data types, schemas and data sets

A data type tells the engine how a single value is meant to be used: how it is stored, compared and computed. Names differ by language, so map them:

General conceptSpark SQL type
32-bit integer (int32)INT
64-bit integer (int64)BIGINT
Float (approximate decimal)FLOAT, DOUBLE
Exact decimalDECIMAL(p,s)
Character / stringSTRING (also CHAR(n), VARCHAR(n))
Array, hash/dictionary, recordARRAY, MAP, STRUCT
Enumeration (enum)No enum type. Use a STRING with a CHECK (col IN (...)) constraint.

A schema is the formal description of the structure of data: the blueprint of tables, columns, types, views and other objects. Schemaless stores (key-value, document, wide-column, graph) still have structure, but each record can hold different fields and types, so you skip upfront modeling and interpret structure when reading (schema on read). In Databricks, Delta tables enforce a schema on write; semi-structured payloads can be kept flexible with the VARIANT type or a JSON string column, and Auto Loader can capture unexpected fields in a rescued data column (Module 15).

A data set is a logical grouping of closely related data that shares a structure. Having a structure does not make data "structured": a set of JSON or XML files is semi-structured. Well-known public data sets include MNIST (handwritten digits), COCO (labelled images, JSON annotations) and the IMDb reviews set (sentiment analysis). For practice in Databricks, use the built-in samples catalog (for example samples.nyctaxi.trips) and the files under /databricks-datasets.

Module 2 · Video 0:23:04 Data Models Processing

Data models and processing

How data is shaped (modeling) and how it moves (processing patterns). The medallion architecture here appears all over the exam.

Batch, streaming, and incremental

PatternMeaningDatabricks tools
BatchProcess a bounded set of data at once, usually on a schedulespark.read, SQL, scheduled Lakeflow Jobs
StreamingProcess an unbounded, continuously arriving data setStructured Streaming, Auto Loader, streaming tables
IncrementalEach run processes only data that is new since the last runAuto Loader, COPY INTO, streaming with availableNow trigger, materialized views with incremental refresh

Incremental batch is the most common real pattern: a job runs every hour, picks up only new files, then stops. You get streaming-style bookkeeping (checkpoints) at batch cost.

ETL vs ELT

  • ETL (Extract, Transform, Load): transform before loading into the target. Classic warehouse pattern.
  • ELT (Extract, Load, Transform): land raw data first, then transform inside the platform. This is the lakehouse pattern, because storage is cheap and raw data is kept for replay.

The medallion architecture

LayerContentsTypical operations
Bronze (raw)Data as ingested, append-only, often with metadata such as file name and ingestion timeAuto Loader, COPY INTO, Lakeflow Connect
Silver (cleaned)Validated, deduplicated, typed, joined, conformedClean nulls, cast types, dedupe, quality checks, MERGE
Gold (curated)Business-level aggregates and models for BI and MLAggregations, star schemas, materialized views
Exam focus

Know which layer an operation belongs to. "Read bronze, clean nulls, standardize types, write silver" is an explicit exam objective. Gold objects for BI (views, materialized views, streaming tables, tables) are another (Module 11).

Data modeling

Normalization

Normalization splits data into many tables to remove redundancy (1NF, 2NF, 3NF). It suits OLTP. Analytics prefers denormalized models to avoid many joins.

Dimensional modeling (Kimball)

  • Fact table: measurable events (sales, clicks) with foreign keys and numeric measures. Long and narrow.
  • Dimension table: descriptive context (customer, product, date). Short and wide.
  • Star schema: one fact table surrounded by denormalized dimensions. Snowflake schema: dimensions further normalized into sub-dimensions.

Slowly changing dimensions (SCD)

  • SCD Type 1: overwrite the old value. No history.
  • SCD Type 2: keep history by adding a new row with validity columns such as __START_AT / __END_AT or a current flag.

Declarative Pipelines implement both with AUTO CDC ... STORED AS SCD TYPE 1|2 (Module 16).

Data Vault and One Big Table

Data Vault (hubs, links, satellites) is used in some silver layers. "One big table" is a fully denormalized gold table. You only need to recognize the terms.

Change data capture (CDC)

CDC means capturing inserts, updates and deletes from a source system, typically as a feed of change rows with an operation type and a sequence or timestamp. You apply them to a target with MERGE INTO or AUTO CDC. Delta tables can also produce a change feed (Change Data Feed, Module 9).

Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Queries and query languages

A query is a request to read data (a read) or to change it with INSERT, UPDATE, DELETE (a write). Queries can also run maintenance, for example ANALYZE TABLE ... COMPUTE STATISTICS or OPTIMIZE. The result is usually tabular but can be JSON or XML. A query language is the format of the request: SQL is the main one; GraphQL and vendor languages exist. In Databricks you submit queries from the SQL editor, notebooks, the CLI, JDBC/ODBC clients or the SQL Statement Execution API.

Batch vs streaming trade-offs

BatchStreaming
When it runsOn a schedule (for example daily at 1 p.m.) or on demandContinuously, as each record arrives
LatencyNot real time; results after the batch completesNear real time
CostGenerally cheaper; compute runs only during the batchGenerally more expensive; compute stays on
Best forVery large processing workloads, reportsReal-time analytics, alerting, live dashboards

In a streaming system, producers write events to a stream (Kafka topic, Kinesis stream, Event Hubs) and consumers read them. The stream keeps events for a retention period, so several consumers can read the same data independently. The Azure path in the video (Event Hubs to Stream Analytics to Cosmos DB to Power BI) maps in Databricks to: Kafka or Event Hubs, then Structured Streaming or a streaming table, then Delta tables, then AI/BI dashboards.

Pivot tables

A pivot table summarizes a larger table by rotating row values into columns and aggregating them (sum, average, min, max) by dimensions such as year, month or day. Excel popularized it; in Databricks SQL you write it with the PIVOT clause (Module 12).

Relational objects and their Databricks equivalents

Classic RDBMS objectMeaningIn Databricks
TableRows and columnsDelta table
ViewSaved query, a virtual table with no stored data. (The video says "stored in memory"; more precisely, it is recomputed each time it is read.)CREATE VIEW, temp views (Module 11)
Materialized viewQuery result stored on diskCREATE MATERIALIZED VIEW (Module 11)
IndexSorted redundant copy of some columns, usually a B-tree (balanced tree, not a binary tree), for faster reads at the cost of storage. Example: CREATE INDEX idx_phone ON addresses (phone_number); in PostgreSQL.No B-tree indexes. Delta uses file-level min/max statistics (data skipping), Z-ordering and liquid clustering (Module 9).
ConstraintRule checked on writesNOT NULL and CHECK enforced; PRIMARY KEY, FOREIGN KEY informational only (Module 3)
TriggerFunction fired on a table event, for example generating a UUID after an insertNo DML triggers. Use identity columns (GENERATED ALWAYS AS IDENTITY), uuid() in the write, or job triggers on file arrival or table update (Module 17).
Primary / foreign keyPK uniquely identifies a row (often id); FK holds another table's PK (often othertable_id)Declared, not enforced

Relationship types

  • One-to-one: a country has one capital.
  • One-to-many: a store has many customers; a book has many pages.
  • Many-to-many: a book has many authors and an author writes many books.
  • Many-to-many through a join (junction) table: students and classes linked through an enrollments table that holds both foreign keys. This is how many-to-many is physically stored in a relational model.

Non-relational (NoSQL) data models

ModelStructureGood for
Key-valueEach value retrieved by a unique keySimple, very fast lookups at scale
DocumentJSON-like documents (a document store is a key-value store whose values are documents)Flexible, nested records
Wide-column / columnarTable-like, stored by column familiesHuge sparse data sets
GraphNodes and edgesData where relationships matter most

Some services are multi-model, for example Azure Cosmos DB and Amazon DynamoDB (key-value and document). Note: the video calls column stores "basically NoSQL". Today columnar formats such as Parquet and Delta power mainstream SQL analytics, including Databricks SQL.

The medallion architecture is also called the multi-hop architecture. Each layer is a set of persisted tables: the same data is stored three times at three levels of refinement, not just passed through a pipeline. Bronze keeps the raw history so you can archive, reprocess and validate (no schema needed at landing); silver defines, enforces and evolves the schema and gives the most flexibility; gold is the most refined, built for specific business use cases (KPIs, facts and dimensions for BI).

Exam focus

"Multi-hop" and "medallion" mean the same thing. If a question asks why you keep bronze after building silver, the answer is reprocessing: you can rebuild silver and gold from the raw data when logic changes or a bug is found.

Module 3 · Video 0:36:38 Data Integrity

Data integrity

Integrity means data stays accurate, consistent and trustworthy from ingestion to report. This module introduces the mechanisms. Later modules show them in Delta and pipelines.

ACID transactions

PropertyGuaranteeIn Delta Lake
AtomicityA write fully succeeds or fully failsA commit to the transaction log is all or nothing. A failed job leaves no partial files visible.
ConsistencyData moves from one valid state to anotherSchema enforcement and constraints reject invalid writes
IsolationConcurrent transactions do not see each other's partial workOptimistic concurrency control. Readers see a snapshot. Conflicting writers retry or fail.
DurabilityCommitted data survives failuresData and log live in durable cloud object storage

Kinds of integrity

  • Entity integrity: each row is uniquely identifiable (primary key). In Databricks, PRIMARY KEY and FOREIGN KEY constraints on Unity Catalog tables are informational only: they are not enforced, but they help the optimizer and BI tools.
  • Referential integrity: foreign keys point to rows that exist.
  • Domain integrity: values are valid for their column (type, range, allowed set).

Enforced constraints in Delta

-- NOT NULL is enforced
ALTER TABLE silver.orders ALTER COLUMN order_id SET NOT NULL;

-- CHECK constraints are enforced; a violating write fails as a whole
ALTER TABLE silver.orders ADD CONSTRAINT valid_qty CHECK (quantity > 0);
ALTER TABLE silver.orders DROP CONSTRAINT valid_qty;

Adding a CHECK constraint fails if existing rows already violate it.

Schema enforcement and schema evolution

Schema enforcement (schema on write): Delta rejects appends whose columns or types do not match the table. Schema evolution lets you allow additive changes deliberately:

df.write.mode("append").option("mergeSchema", "true").saveAsTable("bronze.events")

Overwriting a table's schema entirely uses .option("overwriteSchema", "true") with mode("overwrite").

Data quality dimensions

Accuracy, completeness (no missing values), consistency (same value everywhere), timeliness (fresh enough), validity (conforms to rules), uniqueness (no duplicates). Tools on Databricks: Delta constraints, pipeline expectations (Module 16), deduplication (Module 10), and data quality monitoring on Unity Catalog tables.

Idempotency

An operation is idempotent if running it twice has the same effect as running it once. It matters because jobs get retried. COPY INTO and Auto Loader are idempotent (they track loaded files). MERGE on a key is idempotent. A plain INSERT INTO is not: rerunning duplicates rows.

Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Data corruption and how integrity is protected

Data corruption is data that is not in its intended state, causing data loss or misinformation. It comes from hardware failures, human input errors, malicious changes, or code with unforeseen side effects. Validation alone does not guarantee integrity; integrity covers the whole life cycle.

Technique (video)Databricks mechanism
Well-defined, documented data modelTable schemas, comments and tags in Unity Catalog
Logical constraintsNOT NULL, CHECK, pipeline expectations
Redundant versions to compare and restoreDelta time travel and RESTORE TABLE (Module 9)
Human reviewData quality monitoring, dashboards, alerts
Hash functions to detect tampering (for example an MD5 checksum on a download)md5(), sha2() SQL functions to fingerprint rows or files
Principle of least privilegeGrant only the Unity Catalog privileges a role needs (Module 20)

Normalized vs denormalized

NormalizedDenormalized
Little or no redundant dataRedundant data is common
Integrity maintained by designIntegrity needs extra work
Many tables, more joinsFewer, wider tables, faster reads
Storage-efficientUses more storage
Typical of OLTP and silver layersTypical of NoSQL and gold layers

Consistency models

  • Strongly consistent: every read returns the latest committed data, possibly after waiting a defined time. Never stale.
  • Eventually consistent: a read may briefly return stale data, in exchange for faster responses. Wait and it converges.

Delta Lake gives readers a consistent snapshot: a query sees one committed table version, never a half-written one. Cloud object stores used by Databricks (S3 since December 2020, ADLS, GCS) provide strong read-after-write consistency.

Synchronous vs asynchronous replication

SynchronousAsynchronous
TimingGuaranteed; data is readable only once the transfer completesNo guarantee; readable any time
ConsistencyGuaranteed (strong)May return an older version or an empty placeholder
SpeedSlowerFaster
Typical useStandby backup database that must not lose any dataRead replica for heavy analytical reports
Module 4 · Video 0:43:24 Data Sources

Data sources

Where data comes from and the ingestion pattern each source usually needs.

SourceExamplesTypical Databricks ingestion
Files in cloud object storageCSV, JSON, Parquet drops in S3, ADLS Gen2, GCSAuto Loader, COPY INTO, read_files
Local filesA CSV on your laptopUI "Create or modify table" upload, or upload to a volume
Operational databasesSQL Server, PostgreSQL, MySQL, OracleLakeflow Connect managed database connectors (CDC), JDBC reads, Lakehouse Federation (query in place)
SaaS applicationsSalesforce, Workday, ServiceNow, Google AnalyticsLakeflow Connect managed connectors, partner tools such as Fivetran
Message buses / event streamsApache Kafka, Amazon Kinesis, Azure Event Hubs, Google Pub/SubStructured Streaming source, streaming tables
REST APIsVendor HTTP APIsPython requests in a notebook, landing JSON to a volume or table, scheduled by Lakeflow Jobs
Other Databricks / partnersData shared by another companyDelta Sharing, Marketplace

Push vs pull

  • Pull: Databricks reads from the source on a schedule (JDBC query, API call, listing files).
  • Push: the source sends data (to Kafka, to a storage bucket). Databricks reacts with a stream or a file arrival trigger.

Reading a database with JDBC

df = (spark.read.format("jdbc")
      .option("url", "jdbc:postgresql://host:5432/shop")
      .option("dbtable", "public.orders")
      .option("user", dbutils.secrets.get("shop-scope", "pg-user"))
      .option("password", dbutils.secrets.get("shop-scope", "pg-pass"))
      .load())
df.write.mode("append").saveAsTable("main.bronze.orders")
Exam focus

Never hardcode credentials. Use secrets: dbutils.secrets.get(scope, key). Secret values are redacted (shown as [REDACTED]) in notebook output. Secret scopes are created with the Databricks CLI or API.

Reading from a REST API

import requests, json
resp = requests.get("https://api.example.com/v1/rates", timeout=30)
resp.raise_for_status()
dbutils.fs.put("/Volumes/main/raw/landing/rates_2026-11-17.json", resp.text, overwrite=True)

Land the raw response to a volume, then let Auto Loader pick it up into bronze. That keeps ingestion replayable.

Audit logs as a data source

Databricks itself produces data, such as audit logs and system tables. The official sample question tests this: audit logs delivered to your storage bucket are JSON files, typically delivered within 15 minutes of the event, and a later delivery can overwrite an existing file. Pipelines reading them must tolerate overwrites. Today most teams query the system.access.audit system table instead.

Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Data stores, databases, warehouses and marts

BI and ETL tools connect to many sources and extract data in one of three ways: on demand when a report runs, on a schedule, or as a continuous stream. The mechanism differs by source.

TermWhat it meansTraits to remember
Data storeAny repository that persistently stores and manages data. Broad term; usually implies unstructured or semi-structured data.A database is a subset. Can be flat files, email, distributed storage, directory services.
DatabaseA data store for structured or semi-structured data that needs formal design and modelingRelational (row or column oriented) or non-relational. "Database" usually means a relational row store such as MySQL, SQL Server, PostgreSQL, MariaDB.
Data warehouseStore designed for analytics, generally column oriented, for terabytes and millions of rowsOptimized for aggregations; "hot" (fast answers) but queried for periodic reports rather than real time; fed by ETL from operational databases; essentially read-only (load, then read; not transactional).
Data martA subset of a warehouse focused on one business area or teamSmaller (a common rule of thumb is under 100 GB), read-only, cheaper and faster to query, so accessed more often.

In a lakehouse, a "data mart" is usually a gold schema per domain (for example main.gold_finance) with its own Unity Catalog grants, rather than a separate system.

Module 5 · Video 0:52:56 Introduction to Databricks Exam §1

Introduction to Databricks

What Databricks is, how its architecture is split between Databricks and your cloud account, and the main components you will be tested on.

What Databricks is

Databricks is a unified data and AI platform built on open source projects its founders created: Apache Spark (distributed processing), Delta Lake (table format), and MLflow (ML lifecycle). It runs on AWS, Azure and Google Cloud. The current branding is the Data Intelligence Platform: a lakehouse plus AI features that understand your data's semantics (Genie, AI/BI dashboards, Databricks Assistant).

Architecture: control plane and compute plane

PlaneManaged byContains
Control planeDatabricks, in Databricks' cloud accountWeb application, notebooks' source, job scheduler, cluster manager, Unity Catalog metadata, REST APIs
Classic compute planeRuns in your cloud account and networkVMs for all-purpose and job clusters, classic SQL warehouses
Serverless compute planeRuns in Databricks' cloud account, isolated per workspaceServerless SQL warehouses, serverless notebooks, jobs and pipelines

Your data stays in cloud object storage (your S3 bucket, ADLS container or GCS bucket), with Unity Catalog managing access to it.

Account, workspace, metastore

  • Account: the top level. Holds users, groups, service principals, workspaces and Unity Catalog metastores. Managed in the account console.
  • Workspace: an environment where teams work (notebooks, jobs, clusters, SQL). A company has several, for example dev, test, prod.
  • Metastore: the top-level Unity Catalog container, one per region, attached to one or more workspaces.

Core components

ComponentRole
Apache SparkDistributed engine for batch and streaming, in Python (PySpark), SQL, Scala, R
PhotonDatabricks' vectorized native (C++) query engine. Speeds up SQL and DataFrame workloads with no code change. Always on in SQL warehouses and serverless.
Delta LakeDefault table format: Parquet files plus a transaction log, giving ACID, time travel, schema enforcement (Module 9)
Unity CatalogUnified governance: access control, lineage, auditing, discovery across workspaces (Modules 19, 20)
LakeflowData engineering suite: Lakeflow Connect (ingestion), Lakeflow Declarative Pipelines (transformation), Lakeflow Jobs (orchestration)
Databricks SQLSQL warehouses, SQL editor, AI/BI dashboards, alerts, Genie spaces
Mosaic AI / MLflowML and generative AI (not on this exam beyond recognition)
Delta SharingOpen protocol for sharing live data with other organizations

Storage: DBFS and volumes

DBFS (Databricks File System) is a legacy abstraction over storage with paths like dbfs:/. The DBFS root and mounts are now deprecated for storing data. The current way to hold files is a Unity Catalog volume, with paths like /Volumes/<catalog>/<schema>/<volume>/path/file.csv. Volumes are governed by Unity Catalog permissions.

Why the lakehouse beats lake plus warehouse

The official sample question here asks for a strategy giving fast iteration, reliable rollback after bad ingests, audit trails, and one source of truth for AI and BI. The answer is Delta Lake ACID transactions and time travel, governed by Unity Catalog. Wrong answers rely on CSVs with manual versioning, raw object storage with ad hoc SQL, or in-memory DataFrames.

Getting a workspace

Databricks Free Edition gives you a free serverless workspace for learning. It replaced the older Community Edition. Some features, such as classic clusters and some admin settings, are not available there, so read the UI sections of this course even if you cannot click them.

Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Ways to get Databricks

  • Databricks directly (databricks.com): free trial with Express setup (Databricks manages the cloud infrastructure, serverless) or use an existing cloud account (you control compute and storage in your own AWS, Azure or GCP account).
  • Through a cloud marketplace: AWS Marketplace and Google Cloud Marketplace list Databricks; billing then goes through your cloud bill.
  • Azure Databricks: a first-party Azure service, jointly offered by Microsoft and Databricks, created from the Azure portal (workspace name, region, pricing tier, managed resource group). It integrates with Azure Data Factory (batch), Event Hubs, IoT Hub and Kafka (streaming), and Blob Storage and ADLS (storage).

Pricing tiers: Premium and Enterprise on AWS and GCP; Azure has offered Standard and Premium plus a 14-day trial with free DBUs. Role-based access control and Unity Catalog features need Premium or higher. An empty workspace costs nothing; you pay when compute runs. Older material says "Databricks SQL Analytics": that is today's Databricks SQL.

Terminology: older material calls the compute plane the data plane. Same idea: the control plane runs the interface and orchestration, the data (compute) plane runs your data processing.

Creating a workspace

Workspaces are created in the account console (top-right workspace menu, Manage account, then Workspaces, Create workspace). Each workspace lives in one cloud region, so data residency, sovereignty and latency are common reasons to run several workspaces (for example a separate prod workspace in Tokyo for Japanese data), alongside dev/test/prod separation.

  • Classic workspace: linked to your own cloud account (credentials, storage, network). Supports classic clusters.
  • Serverless workspace: serverless compute with Databricks-managed default storage; fewer settings to configure.

A workspace has no DBU cost while nothing runs in it, though a classic workspace can still incur cloud charges in your account. Switch between workspaces with the workspace dropdown in the top bar.

Module 6 · Video 1:19:32 Cluster Types Exam §1

Compute and cluster types

The exam asks you to pick the right compute for a workload, considering characteristics, limitations, and cost. This module is that decision table.

How a Spark cluster is built

A cluster has one driver node (runs your notebook code, plans work, collects results) and zero or more worker nodes, each running an executor that processes tasks in parallel. A single-node cluster has a driver and no workers; Spark runs locally on the driver.

The compute types

ComputeUse it forKey traits
All-purpose (interactive) clusterInteractive development in notebooks, shared by several usersCreated manually, can be restarted, stays up until auto-termination. Highest DBU rate. Do not use for production jobs.
Job clusterScheduled production jobsCreated by Lakeflow Jobs when a run starts and terminated when it ends. Cannot be restarted. Lower DBU rate. Isolates each run.
SQL warehouseSQL queries, BI tools, dashboards, analystsTypes: Serverless, Pro, Classic. Photon always on. Sized in T-shirt sizes (2X-Small to 4X-Large). Scales by adding clusters for concurrency.
Serverless compute for notebooks, jobs and pipelinesMost new workloadsNo cluster configuration, starts in seconds, autoscaling managed by Databricks, billed only while running. You cannot set most Spark configs or install init scripts.
Instance poolsFaster startup of classic clustersKeep idle, ready VMs. Databricks charges no DBUs for idle pool instances, but the cloud provider still bills the VMs.
Exam pattern
  • Many analysts running ad hoc SQL, fast startup, concurrency, controlled cost: serverless SQL warehouse with autoscaling (official sample question).
  • Nightly scheduled ETL notebook: job compute (or serverless jobs), not an all-purpose cluster.
  • Team exploring data in notebooks together: all-purpose cluster or serverless notebook compute.
  • Small single-user experimentation, ML on one machine: single node.

SQL warehouse types

TypeStartupFeatures
ServerlessSecondsPhoton, Predictive I/O, Intelligent Workload Management, fastest autoscaling. Recommended.
ProMinutesPhoton, Predictive I/O, runs in your account
ClassicMinutesPhoton only, entry level

A warehouse has a size (power per cluster, affects single-query speed) and min/max clusters (scaling for many concurrent queries). Queries queue when all clusters are busy.

Configuration options on classic clusters

  • Access mode: Standard (formerly Shared): many users, user isolation, Unity Catalog enforced, Python and SQL (Scala supported on recent runtimes). Dedicated (formerly Single user): assigned to one user or one group, supports all languages and features like RDD APIs and ML runtimes. No isolation shared is legacy and has no Unity Catalog support.
  • Databricks Runtime (DBR): the image of Spark plus libraries. Prefer an LTS (long-term support) version for production. ML runtime adds ML libraries. Photon is a checkbox.
  • Autoscaling: min and max workers. Spark adds workers when tasks back up and removes idle ones.
  • Auto termination: stop an all-purpose cluster after N idle minutes. Saves the most money for interactive clusters.
  • Instance types: general purpose, memory optimized (large joins, caching), compute optimized, storage optimized (disk caching), GPU (deep learning).
  • Spot instances for workers: much cheaper, can be reclaimed by the cloud. Keep the driver on-demand.
  • Cluster policies: admin-defined rules limiting what users can configure (max size, allowed types, required tags). Used for cost control and governance.
  • Init scripts: shell scripts run on each node at startup (install system packages). A failing init script makes the cluster fail to start.
  • Libraries: install PyPI, Maven or wheel libraries on the cluster, or notebook-scoped with %pip install.

Cost model

You pay in DBUs (Databricks Units), a normalized unit of processing per hour. The DBU rate depends on compute type: jobs compute is cheaper than all-purpose; SQL and serverless have their own rates. For classic compute you also pay your cloud provider for VMs. For serverless, the DBU price includes the infrastructure. Track spend with the system.billing.usage system table, and attribute it with tags on clusters, jobs and warehouses.

Cluster lifecycle facts

  • Restarting a cluster clears all variables and cached data, and detaches notebooks' state.
  • Terminated clusters keep their configuration and can be started again. All-purpose cluster configurations are kept for 30 days after termination unless pinned.
  • Permissions on a cluster: Can Attach To, Can Restart, Can Manage.
Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Default compute policies

The buttons "Create with Personal Compute" and similar simply pre-select a compute policy (cluster policy). Policies work like IAM policies for compute: they restrict node types, Databricks Runtime versions, number of workers, access mode, pools and tags. Default policy families:

PolicyWhat it gives
UnrestrictedEvery option available (admins, or users with the unrestricted cluster creation entitlement)
Personal ComputeSingle node (0 workers), one user, minimal configuration. For small to medium data and libraries like pandas and scikit-learn
Power User ComputeSingle user, multi-node with autoscaling, for heavier individual work
Shared ComputeMulti-node, several users of a workspace, standard (shared) access mode
Legacy Shared ComputeOlder shared mode without Unity Catalog, kept for compatibility

Restart vs terminate vs delete

ActionEffectUse it when
RestartReboots driver and workers, clears variables and cache, keeps configuration, reinstalls cluster librariesBroken library state or runtime errors, after changing libraries or Spark config
TerminateStops all VMs, ends all sessions and running commands, stops DBU and VM billing, keeps configurationWork is finished or the cluster is idle (auto termination does this for you)
DeleteRemoves the cluster and its configuration permanentlyYou will not use it again

A running but idle classic cluster still bills DBUs and VM time. A terminated cluster does not bill compute.

Cost details in the UI

  • The create compute form shows an estimated DBU/hour (for example 0.75 DBU/h for an Azure DS3_v2 node, 1 DBU/h for an AWS i3.xlarge). That is a number of units, not dollars. Cost = DBUs x price per DBU (depends on compute type, tier and cloud) + the cloud VM price on classic compute.
  • The default SQL warehouse in a new workspace is the Serverless Starter Warehouse; its edit page shows its DBU/h for the chosen size.
  • DSU (Databricks Storage Unit) is the billing unit for Databricks-managed storage, the storage counterpart of the DBU.
  • Databricks publishes a pricing calculator on its pricing page.
  • Account console > Usage: the usage dashboard (an AI/BI dashboard on system billing tables, imported into a workspace) replaces the legacy Consumption page.
  • Budgets (account console): name, workspace scope, optional tags, amount in USD, email recipients (comma separated). An email is sent when spend reaches the amount. Budgets alert only; they do not stop compute.

Runtime and cluster pages

  • Pin the same Databricks Runtime version across clusters and jobs for reproducibility. Special runtimes exist for ML (the Genomics runtime in older material is retired).
  • Cluster tabs: Configuration, Libraries (install from Workspace, Volumes, PyPI, Maven and more, then restart if needed), Event log (created, running, terminated due to inactivity, resized), Spark UI, Driver logs, Metrics (CPU, memory).
  • Advanced options include cluster log delivery path and init scripts. The JSON view shows the API definition, for example "data_security_mode": "DATA_SECURITY_MODE_AUTO", "kind": "CLASSIC_PREVIEW", and Photon enabled.
  • Visibility: the Compute list shows only clusters you have permission on; filter by "Created by me", all, running or terminated.
  • Photon is on by default in new compute forms but raises the DBU rate on classic compute and does not speed up every workload (for example Python UDF-heavy or RDD code).
Exam pattern

The SQL editor, dashboards and alerts run on SQL warehouses, not on all-purpose clusters. Notebooks attach to all-purpose clusters, serverless compute or SQL warehouses (SQL cells only). Databricks Connect lets an IDE such as VS Code run Spark code on a Databricks cluster or serverless compute.

Serverless limits worth knowing

  • Languages: serverless notebooks and jobs are built for Python and SQL. R is not supported, and Scala support arrived late (check the current docs). If a cell fails with "not supported by serverless compute", run it on a classic cluster.
  • Environment panel: serverless notebooks pick an environment version and list dependencies in the Environment side panel instead of cluster libraries.
  • Serverless jobs performance: standard mode accepts a few minutes of startup latency for lower cost; performance-optimized mode starts quickly. A simple job taking several minutes on serverless is usually startup time, not your code.

Instance pools in more detail

  • A pool is a set of idle, ready-to-use cloud instances. Clusters attached to the pool take nodes from it, so cluster start and autoscaling are faster.
  • If the pool has no idle instance, it expands by requesting a new instance from the cloud provider. When a cluster releases an instance, it returns to the pool for another cluster to use.
  • Only clusters attached to a pool can use its idle instances.
  • Idle instances cost cloud VM fees but no DBUs.
  • If the workload supports serverless compute, Databricks recommends serverless instead of pools.

Photon in more detail

  • Enabled by default on compute running Databricks Runtime 9.1 LTS and above, and always on for SQL warehouses and serverless notebooks, jobs and pipelines. On classic clusters it is the Photon acceleration checkbox (Compute, Create compute).
  • Speeds up scans, joins (it uses hash joins in place of sort-merge joins), aggregations, and Delta and Parquet writes. Benefits Spark SQL and DataFrame code, with no code change.
  • It has some unsupported operations, which simply fall back to the standard Spark engine.
Module 7 · Video 1:51:53 Databricks Web Application

The Databricks workspace UI

The longest hands-on chapter of the video, about one hour in the web app. Here is everything in it you need to know, and how notebooks work.

The left sidebar

ItemWhat it holds
WorkspaceFolders, notebooks, files, Git folders. Personal folder under /Users/<you>; shared area under /Workspace/Shared.
Catalog (Catalog Explorer)Browse catalogs, schemas, tables, views, volumes, functions, models. See schema, sample data, history, lineage, permissions.
Jobs & PipelinesLakeflow Jobs and Lakeflow Declarative Pipelines, plus ingestion
ComputeAll-purpose clusters, job compute, SQL warehouses, pools, policies
SQL Editor, Queries, Dashboards, Genie, AlertsDatabricks SQL tools for analysts
Data ingestion / Marketplace / Partner ConnectUpload files, Lakeflow Connect connectors, partner integrations
Experiments, Models, ServingMachine learning (out of scope)

Notebooks

A notebook is a list of cells with a default language (Python, SQL, Scala, R). Attach it to compute to run it. Notebooks autosave and keep a revision history. They can be exported as source files (.py, .sql), .ipynb, HTML, or .dbc archives.

Magic commands

CommandEffect
%python, %sql, %scala, %rRun this cell in another language
%mdMarkdown documentation cell
%run ./other_notebookRuns another notebook inline, in the same session: its functions and variables become available. Used to share setup code.
%pip install pkgNotebook-scoped Python library. Put it at the top; it restarts the Python process.
%shShell command on the driver only
%fs ls /Volumes/...Shorthand for dbutils.fs

Languages share data through tables and temporary views, not variables. A Python variable is not visible in a %sql cell, but a temp view created with df.createOrReplaceTempView("v") is.

dbutils

dbutils.fs.ls("/Volumes/main/raw/landing")       # list files
dbutils.fs.cp(src, dst, recurse=True)              # copy
dbutils.fs.rm(path, recurse=True)                  # delete
dbutils.secrets.get(scope="kv", key="api-token")   # read a secret
dbutils.widgets.text("run_date", "2026-01-01")     # create a parameter widget
dbutils.widgets.get("run_date")                    # read it
dbutils.notebook.run("./child", 600, {"p": "1"})   # run as a separate job, returns exit value
dbutils.notebook.exit("done")                      # return a value to the caller
dbutils.jobs.taskValues.set("rows", 1200)          # pass values between job tasks
dbutils.library.restartPython()                    # restart Python after installs
display(df)                                        # rich table and chart output
%run vs dbutils.notebook.run

%run includes the other notebook in the current context, so you get its variables, and it cannot take dynamic parameters easily. dbutils.notebook.run launches the notebook as a separate ephemeral run with its own context, passes parameters as widgets, has a timeout, and returns only the string passed to dbutils.notebook.exit.

Widgets and parameters

Widgets (text, dropdown, combobox, multiselect) parameterize notebooks. When a notebook runs as a job task, task parameters fill the widgets with the same names. In SQL, reference parameters with :param_name (named parameter markers).

Other workspace features

  • Databricks Assistant: AI helper for writing, explaining and fixing code.
  • Files in the workspace: you can store .py modules next to notebooks and import them.
  • Catalog Explorer table page: Overview (columns, comments, tags), Sample data, Details, Permissions, History (Delta versions), Lineage, Insights.
  • Add data UI: upload a CSV, JSON or Parquet file to create a table or to a volume.
  • Visualizations: from display() output or SQL results, build charts; add them to an AI/BI dashboard.
  • Admin settings: workspace admins manage users, groups, feature previews and workspace settings.
Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Notebook UI facts

  • Databricks notebooks are Jupyter-like but are their own format; they import and export .ipynb.
  • Shift+Enter runs the cell and moves to the next one (creating a new cell at the end). Interrupt stops a running cell.
  • Typing a magic command such as %sql on the first line switches the cell's language selector.
  • The Schedule button in a notebook creates a job that runs that notebook.
  • You can also develop locally with the Databricks extension for VS Code (Databricks Connect) and run code on remote compute.
  • Result limits: display() renders the first 10,000 rows; the SQL editor applies a 1,000-row limit by default. Add your own LIMIT when exploring big tables.

%fs and %run gotchas

  • %fs takes space-separated arguments, no parentheses and no quotes: %fs mkdirs /Volumes/main/default/my_volume/new_folder. Writing %fs mkdirs("x") fails.
  • Relative %fs paths resolve against dbfs:/, not your notebook folder, and writing to the DBFS root may be blocked. Use full /Volumes/... paths.
  • %sh works on the driver's local filesystem; %sh pwd shows the notebook's folder (for example /Workspace/Users/you). A folder made with %fs does not appear there.
  • %run takes a relative (./child, ../lib/setup) or absolute workspace path, no extension, no quotes, and must be the only command in its cell.

More dbutils.fs commands

dbutils.fs.mkdirs("/Volumes/main/raw/landing/2026")   # note the plural
dbutils.fs.mv(src, dst)                               # move or rename
dbutils.fs.head(path, 1024)                           # first bytes of a file
dbutils.fs.put(path, "text", overwrite=True)          # write a small file
dbutils.fs.mount(...) / unmount(...)                  # legacy, use volumes instead
dbutils.fs.help()                                     # list all commands

information_schema

Every Unity Catalog catalog has an information_schema schema with views describing its objects (tables, columns, schemata, table_privileges, tags and more), for example SELECT * FROM main.information_schema.tables WHERE table_schema = 'sales'.

  • Databricks Assistant in the SQL editor and notebooks: generate or edit DDL from a prompt, and use Diagnose error (or /fix) to explain and fix a failing cell. The video stresses the exam expects you to know the Assistant can debug errors.
  • Saved queries: naming a SQL editor tab saves it as a query you can reopen or move to a folder.

Listing files in SQL

LIST 's3://acme-landing/orders/';             -- needs READ FILES on the external location covering the path
LIST '/Volumes/main/raw/landing/';            -- needs READ VOLUME on the volume

LIST takes a path URL, not the name of an external location. A path without a scheme is resolved against DBFS, which gives errors such as "Public DBFS root is disabled" in Unity Catalog workspaces.

The Add data page can also create a table from files in cloud storage: pick an external location, select files, preview, and create the table.

Module 8 · Video 2:51:02 Version Control Exam §5, 10% New exam: bundles and CLI

Version control and CI/CD

The video covers Git folders. The current exam adds a full 10% section on CI/CD with Declarative Automation Bundles and the Databricks CLI, covered in the second half.

Git folders (formerly Repos)

A Git folder is a workspace folder linked to a remote Git repository: GitHub, GitLab, Azure DevOps, Bitbucket, AWS CodeCommit and others. You authenticate with a personal access token or a Databricks GitHub App, set under User settings, Linked accounts.

What you can do in the UI

  • Clone a remote repo into a Git folder.
  • Create a branch and switch branches from the Git dialog (branch name button at the top of a notebook or folder).
  • See changed files, write a message, commit and push in one step.
  • Pull remote changes. Resolve merge conflicts in the UI.
  • Merge and rebase branches; reset to discard local changes.
  • Create a pull request: the Git dialog links to the Git provider, where the PR is opened, reviewed and merged. Code review happens in the provider, not Databricks.
Exam focus

The development workflow: create a feature branch in a Git folder, edit notebooks, commit and push, open a PR in the Git provider, merge to main, then CI/CD deploys. Notebooks are stored in Git as source files (.py with # Databricks notebook source header, or .ipynb), so diffs are readable.

Typical layout: each developer has their own Git folder under their user folder for development. Production code is deployed by automation, not edited by hand in production.

Declarative Automation Bundles New exam

Declarative Automation Bundles (formerly Databricks Asset Bundles, DABs) define your project as code: source files plus YAML describing resources such as jobs, pipelines, dashboards, schemas and volumes. The same bundle deploys to dev, test and prod with environment-specific settings. This is Databricks' recommended CI/CD approach.

Anatomy of databricks.yml

bundle:
  name: sales_etl

include:
  - resources/*.yml

variables:
  catalog:
    description: Target catalog
    default: dev_catalog
  db_password:
    description: Database password, supplied at deploy time

resources:
  jobs:
    daily_sales:
      name: daily_sales
      tasks:
        - task_key: ingest
          notebook_task:
            notebook_path: ./src/ingest.py
            base_parameters:
              catalog: ${var.catalog}
        - task_key: transform
          depends_on:
            - task_key: ingest
          pipeline_task:
            pipeline_id: ${resources.pipelines.sales_pipeline.id}

targets:
  dev:
    mode: development
    default: true
    workspace:
      host: https://dev-workspace.cloud.databricks.com
  prod:
    mode: production
    workspace:
      host: https://prod-workspace.cloud.databricks.com
    variables:
      catalog: prod_catalog
    run_as:
      service_principal_name: 6f1c...-sp

Key concepts

  • Targets: named environments (dev, test, prod). Settings under a target override the top-level settings for that target only.
  • Variables: declared in variables, used as ${var.name}. Values can come from (highest priority first): the --var="name=value" CLI option, an environment variable BUNDLE_VAR_name, a target's variables override, the variable's default. Lookups such as lookup: cluster_policy: "Prod policy" resolve an object name to its ID.
  • Substitutions: ${bundle.target}, ${workspace.current_user.userName}, ${resources.jobs.x.id}.
  • mode: development: prefixes resource names with [dev <user>], pauses schedules and triggers, deploys to the user's own folder so developers do not collide.
  • mode: production: validates production best practices, such as requiring run_as a service principal and not allowing development-only settings.
  • Templates: databricks bundle init starts from a template (default Python, default SQL, pipelines, custom).
Secrets in bundles (official sample question)

Do not hardcode a password in databricks.yml or the notebook. Declare a variable and supply its value through an environment variable named BUNDLE_VAR_<variable_name>, for example from your CI system's secret store. There is no bundle encrypt command. At runtime, code should read credentials from Databricks secrets.

The Databricks CLI

databricks auth login --host https://my-workspace.cloud.databricks.com   # OAuth login, saves a profile
databricks bundle init                  # create a bundle from a template
databricks bundle validate -t dev       # check YAML and resolve variables
databricks bundle deploy -t dev         # upload files and create/update resources
databricks bundle run -t dev daily_sales   # run a job or pipeline defined in the bundle
databricks bundle summary -t prod       # show deployed resources and links
databricks bundle destroy -t dev        # delete deployed resources and files
databricks bundle deployment bind ...   # link an existing workspace resource to the bundle
databricks bundle generate job --existing-job-id 123   # create bundle YAML from an existing job

Other CLI groups manage workspace assets directly: databricks jobs, databricks clusters, databricks secrets create-scope / put-secret, databricks fs, databricks workspace, databricks repos. Profiles live in ~/.databrickscfg. In CI, authenticate as a service principal (OAuth machine-to-machine) using environment variables such as DATABRICKS_HOST, DATABRICKS_CLIENT_ID, DATABRICKS_CLIENT_SECRET.

A CI/CD flow

  1. Developer works on a feature branch in a Git folder and deploys with bundle deploy -t dev to test.
  2. They push and open a pull request.
  3. CI (for example GitHub Actions) runs bundle validate and unit tests, and deploys to the test target for integration tests.
  4. After merge to main, CD runs bundle deploy -t prod as a service principal.

The same code is promoted unchanged; only target settings and variables differ.

Distractors to reject

Using notebook revision history as versioning, models in Unity Catalog to represent ETL jobs, or wheels in volumes alone are not the answer when a question asks for a modular way to deploy, version and orchestrate pipelines with CI/CD. The answer is bundles, versioned in Git.

Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Setting up a Git folder in practice

  • Create one from Workspace, Create, Git folder (or New, Git folder). Git folders can live anywhere in the workspace; there is no longer a separate top-level Repos area to look in.
  • Paste the repository's HTTPS URL. Private repositories need authentication: link GitHub through the Databricks GitHub App or a personal access token.
  • Sparse checkout clones only selected subdirectories of a large repository.
  • Error "GitHub account does not have access" for an organization repository: the Databricks GitHub App must be installed on that organization or repository by someone with admin rights on it.
  • Git is attached at the folder level. To version an existing notebook, move it into the Git folder, then commit and push from the Git dialog.
  • "Save now" in a notebook creates a revision in its version history, not a Git commit.

Git vocabulary you should know

Git is a distributed version control system: every clone holds the full history, so you can commit locally and exchange commits with a remote.

TermMeaning
RepositoryThe container for a codebase and its full history
CommitA recorded set of changes (one or many files) with a message
BranchAn independent line of development for isolated changes. The default branch is usually main (formerly master)
RemoteA named reference to a copy of the repo hosted elsewhere (GitHub, GitLab, Azure DevOps) used to exchange commits
CloneCreate a full local copy of a remote repo, including history
CheckoutSwitch to another branch or commit
Stage (add)Select which changes go into the next commit. In a Databricks Git folder you tick the changed files in the Git dialog
FetchDownload remote commits without changing your branch
PullFetch and merge remote changes into your current branch
PushUpload your local commits to the remote
MergeCombine the histories of two branches
ResetDiscard or undo local changes

Git folders vs notebook revision history

The video reports at least one exam question comparing Databricks Repos (now Git folders) with "native notebook versioning". In Databricks this means the revision history every notebook keeps automatically.

Git foldersNotebook revision history
ScopeWhole project (notebooks, .py files, configs) in a remote Git repoOne notebook at a time
BranchingCreate, switch, merge, rebase branchesNone, a single linear list of saved versions
CollaborationCommit, push, pull; pull requests and review in the Git providerRestore an earlier version, add comments to a version
CI/CDIntegrates with CI/CD tools (GitHub Actions, Azure DevOps) and bundlesNo CI/CD integration
StorageRemote Git provider, versioned outside the workspaceInside the workspace only
Exam framing

Choose Git folders whenever a question mentions branches, pull requests, code review, CI/CD or deploying the same code to several environments. Features such as fork, star, watch and issues belong to the Git provider (for example GitHub), not to Databricks. Authenticate with a scoped personal access token or the Databricks GitHub App, and revoke tokens you no longer need.

Developing locally: VS Code extension and Databricks Connect

Databricks Connect is a client library for the Databricks Runtime. You write Spark code in your IDE (VS Code, PyCharm, IntelliJ, RStudio Desktop, notebook servers, custom apps) in Python, R or Scala, and it runs on Databricks compute (a cluster or serverless). It is built on open source Spark Connect: a decoupled client-server architecture where the client sends DataFrame operations as unresolved logical plans to a remote Spark cluster.

The Databricks extension for Visual Studio Code bundles Databricks Connect, authentication, bundle projects and remote runs.

What the video lab does

  1. Install the Databricks extension from the VS Code Extensions view.
  2. Create a configuration: host = your workspace URL (copy it from the browser, remove the trailing slash), then choose OAuth (user-to-machine) or Personal access token, and name the profile (for example dev). Profiles are saved in ~/.databrickscfg.
  3. In the video, OAuth failed twice in VS Code even though the browser said "authenticated". The fix was to generate a personal access token (User settings, Developer, Access tokens) and use that. Never share tokens, and revoke them when finished.
  4. Create a project: the extension runs the bundle init flow. Template default-python, project name with letters, numbers and underscores only, include the stub notebook and Python package, use serverless compute. If it nests a folder inside your folder, move it up one level.
  5. Select the target (dev) and the compute (serverless in the video).
  6. Open src/<project>/main.py and click Run on Databricks. The run shows up under the job runs, and the output (5 rows of the NYC taxi sample read with spark.read.table) comes back to VS Code. It took about 1 min 23 s on serverless.
  7. Notebooks in the project can also be run on Databricks as a workflow; each cell's output is visible in the run.
from databricks.connect import DatabricksSession
spark = DatabricksSession.builder.serverless().getOrCreate()   # or .profile("dev")
spark.read.table("samples.nyctaxi.trips").show(5)
Module 9 · Video 3:03:32 Delta Lake Exam §1, §3, §6

Delta Lake

Two hours of the video. Delta Lake is the storage layer under every table in Databricks, and its commands appear across several exam sections.

How Delta works

A Delta table is a directory containing Parquet data files and a _delta_log/ folder. Every write adds a numbered JSON commit file (00000000000000000000.json, ...01.json) that records which files were added and removed. Every 10 commits (by default) Delta writes a checkpoint Parquet file summarizing the state, so readers do not replay every JSON file.

  • A reader reads the log to find the current set of files, then reads only those. That snapshot gives isolation.
  • Updates and deletes do not modify Parquet files in place. They write new files and mark old ones as removed (copy-on-write), or use deletion vectors to mark deleted rows without rewriting files (faster writes).
  • Old files stay on storage until VACUUM, which makes time travel possible.

Creating and writing tables

CREATE TABLE main.silver.customers (
  id BIGINT NOT NULL, name STRING, country STRING, updated_at TIMESTAMP
);                                               -- Delta is the default format

CREATE OR REPLACE TABLE main.silver.orders AS   -- CTAS: schema from the query
SELECT * FROM main.bronze.orders WHERE order_id IS NOT NULL;

INSERT INTO main.silver.customers VALUES (1, 'Ada', 'UK', current_timestamp());
INSERT OVERWRITE main.silver.daily SELECT ...;  -- replace all data, keep table and history
UPDATE main.silver.customers SET country = 'GB' WHERE country = 'UK';
DELETE FROM main.silver.customers WHERE id = 1;
CommandBehavior
CREATE OR REPLACE TABLE ... AS SELECTReplaces data and schema; keeps history (new version)
INSERT OVERWRITEReplaces data; the new data must match the existing schema
DROP TABLE then CREATELoses history; avoid

MERGE (upsert)

MERGE INTO main.silver.customers AS t
USING updates AS s
ON t.id = s.id
WHEN MATCHED AND s.op = 'DELETE' THEN DELETE
WHEN MATCHED THEN UPDATE SET *
WHEN NOT MATCHED THEN INSERT *
WHEN NOT MATCHED BY SOURCE THEN DELETE;   -- optional: delete rows missing from source

MERGE fails if multiple source rows match the same target row, so deduplicate the source first. MERGE is the standard way to apply CDC and avoid duplicate inserts.

Time travel

DESCRIBE HISTORY main.silver.customers;          -- versions, timestamps, operation, user
SELECT * FROM main.silver.customers VERSION AS OF 3;
SELECT * FROM main.silver.customers TIMESTAMP AS OF '2026-11-01';
SELECT * FROM main.silver.customers@v3;          -- shorthand
RESTORE TABLE main.silver.customers TO VERSION AS OF 3;   -- roll back; creates a new version
spark.read.option("versionAsOf", 3).table("main.silver.customers")

Time travel works only while the old data files still exist (VACUUM) and the log entries are retained (delta.logRetentionDuration, default 30 days).

Maintenance

CommandPurpose
OPTIMIZE tCompacts many small files into larger ones (bin-packing). Fixes the "small files problem".
OPTIMIZE t ZORDER BY (col)Legacy: co-locates related values in files to improve data skipping on filter columns. Not compatible with liquid clustering.
VACUUM t [RETAIN n HOURS]Deletes data files no longer referenced by the table and older than the retention threshold. Default 7 days (168 hours). After vacuum you cannot time travel before that point.
ANALYZE TABLE t COMPUTE STATISTICS FOR ALL COLUMNSCollects statistics for the optimizer
DESCRIBE DETAIL tLocation, format, number of files, size, partitioning, clustering columns
DESCRIBE EXTENDED tColumns plus metadata such as Type (MANAGED or EXTERNAL), Location, Owner

Vacuuming with less than 7 days requires disabling a safety check (spark.databricks.delta.retentionDurationCheck.enabled = false) and risks breaking long-running readers. VACUUM ... DRY RUN lists files it would delete.

Data layout: partitioning, Z-order, liquid clustering

  • Partitioning (PARTITIONED BY (date)) splits data into folders. Only useful for very large tables on low-cardinality columns. Over-partitioning creates tiny files.
  • Data skipping: Delta stores min/max statistics per file for the first 32 columns, and skips files that cannot match a filter.
  • Liquid clustering (CLUSTER BY (col1, col2)) replaces partitioning and Z-order for new tables. Keys can be changed later without rewriting all data. Clustering happens incrementally on OPTIMIZE. CLUSTER BY AUTO lets Databricks pick keys from query patterns (needs predictive optimization). Details in Module 18.
CREATE TABLE main.gold.events (...) CLUSTER BY (customer_id, event_date);
ALTER TABLE main.gold.events CLUSTER BY (event_date);   -- change keys
ALTER TABLE main.gold.events CLUSTER BY NONE;           -- remove
OPTIMIZE main.gold.events;                              -- cluster new data
OPTIMIZE main.gold.events FULL;                         -- recluster everything

Other Delta features

  • Schema enforcement and evolution: see Module 3. ALTER TABLE t ADD COLUMNS (c STRING). Column mapping enables rename and drop of columns.
  • Generated columns: event_date DATE GENERATED ALWAYS AS (CAST(ts AS DATE)). Identity columns: id BIGINT GENERATED ALWAYS AS IDENTITY.
  • Change Data Feed: ALTER TABLE t SET TBLPROPERTIES (delta.enableChangeDataFeed = true), then read row-level changes with table_changes('t', 2) (columns _change_type, _commit_version, _commit_timestamp).
  • Clones: CREATE TABLE t2 DEEP CLONE t copies data and metadata (independent copy, good for backups). SHALLOW CLONE copies only metadata and points at the source files (cheap, good for testing).
  • Table properties: TBLPROPERTIES such as delta.deletedFileRetentionDuration, delta.logRetentionDuration, delta.enableDeletionVectors.
  • Uniform / Iceberg: Delta tables can be read as Apache Iceberg by other engines, and Unity Catalog supports managed Iceberg tables.
Most tested Delta facts
  • Transaction log = source of truth; ACID; optimistic concurrency.
  • Time travel syntax, RESTORE, DESCRIBE HISTORY.
  • VACUUM default 7 days and its effect on time travel.
  • OPTIMIZE for small files; liquid clustering preferred over partitioning and Z-order.
  • CTAS vs INSERT OVERWRITE vs CREATE OR REPLACE; MERGE syntax.
Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Multi-statement transactions

Every single Delta write (INSERT, UPDATE, DELETE, MERGE) is already an ACID transaction. Grouping several statements so they commit or roll back together uses the classic syntax:

BEGIN TRANSACTION;
UPDATE main.bank.accounts SET balance = balance - 100 WHERE id = 1;
UPDATE main.bank.accounts SET balance = balance + 100 WHERE id = 2;
COMMIT;      -- or ROLLBACK; a failing statement aborts the whole transaction

In Databricks, multi-statement transactions are a newer capability for Unity Catalog managed tables and are not enabled in every workspace. If you see "Multi-statement transactions are not enabled for this workspace", run the statements individually. Verify the current status in the docs before relying on it.

Keys, defaults and DDL gotchas

CREATE TABLE main.todos.projects (
  id   BIGINT GENERATED ALWAYS AS IDENTITY NOT NULL,
  name STRING,
  CONSTRAINT projects_pk PRIMARY KEY (id)
);
CREATE TABLE main.todos.completions (
  id         BIGINT GENERATED ALWAYS AS IDENTITY NOT NULL,
  project_id BIGINT NOT NULL,
  created_at TIMESTAMP DEFAULT current_timestamp(),
  CONSTRAINT completions_pk PRIMARY KEY (id),
  CONSTRAINT completions_project_fk FOREIGN KEY (project_id) REFERENCES main.todos.projects (id)
) TBLPROPERTIES ('delta.feature.allowColumnDefaults' = 'supported');

INSERT INTO main.todos.completions (project_id) VALUES (1);  -- list columns explicitly
  • An identity column is not a primary key by itself. Declare PRIMARY KEY explicitly; its columns must be NOT NULL.
  • A FOREIGN KEY can only reference columns that carry a PRIMARY KEY constraint.
  • PK and FK are informational: inserting a project_id that does not exist succeeds. Only NOT NULL and CHECK reject writes.
  • Column DEFAULT needs the table feature delta.feature.allowColumnDefaults = 'supported'.
  • On an existing table you cannot add a column with a default or with NOT NULL in one step: ALTER TABLE t ADD COLUMN c TIMESTAMP, then ALTER TABLE t ALTER COLUMN c SET DEFAULT current_timestamp().
  • ALTER COLUMN is not supported on identity columns; recreate the table instead.
  • Reset scripts: DROP TABLE IF EXISTS t does not fail when the table is missing; CREATE TABLE IF NOT EXISTS skips creation when it exists.
Exam trap

"A foreign key constraint will stop orphan rows" is false in Databricks. Use CHECK, NOT NULL, pipeline expectations or a join-based validation if you must reject them.

Delta outside Databricks (optional)

Delta Lake is open source and runs on plain Apache Spark. Spark 4.x needs Java 17 or later and pairs with Delta 4.x built for Scala 2.13 (artifact io.delta:delta-spark_2.13; before Delta 3.0 it was called delta-core).

pyspark --packages io.delta:delta-spark_2.13:4.0.0 \
  --conf "spark.sql.extensions=io.delta.sql.DeltaSparkSessionExtension" \
  --conf "spark.sql.catalog.spark_catalog=org.apache.spark.sql.delta.catalog.DeltaCatalog"

# the shell (like a Databricks notebook) already provides the SparkSession as spark
spark.range(0, 5).write.format("delta").save("/tmp/delta-table")
spark.read.format("delta").load("/tmp/delta-table").show()
spark.range(5, 10).write.format("delta").mode("overwrite").save("/tmp/delta-table")

from delta.tables import DeltaTable
DeltaTable.forPath(spark, "/tmp/delta-table").update("id % 2 = 0", {"id": "id + 100"})

The local Spark UI (port 4040) shows the same Jobs, Stages, Storage and Environment tabs you open from a Databricks cluster.

Versions and DESCRIBE HISTORY output

Every committed write creates exactly one new version, whatever the number of rows. One INSERT with ten rows is one version; ten separate INSERT statements are ten versions. Schema changes (SET TBLPROPERTIES, CHANGE COLUMN) are versions too.

DESCRIBE HISTORY columns you should recognize: version, timestamp, userName, operation (WRITE, MERGE, DELETE, OPTIMIZE, RESTORE, CREATE TABLE...), operationParameters, notebook, clusterId, readVersion, operationMetrics (rows and files added or removed).

RESTORE TABLE main.hr.employee TO VERSION AS OF 1;
RESTORE TABLE main.hr.employee TO TIMESTAMP AS OF '2026-11-01T00:00:00';
RESTORE TABLE main.hr.employee TO TIMESTAMP AS OF current_timestamp() - INTERVAL 1 HOUR;
Valid time travel and RESTORE syntax

The two clause forms are VERSION AS OF n and TIMESTAMP AS OF expr, used after the table name in SELECT and after TO in RESTORE TABLE t TO .... Expect a "which statement is valid" question.

OPTIMIZE and Z-order guidance

  • OPTIMIZE bin-packs small files toward a target of about 1 GB per file.
  • OPTIMIZE t WHERE date >= '2026-11-01' limits compaction to a subset (partition columns only).
  • Z-order on high-cardinality columns used in filters (many distinct values, such as customer_id). Partition only on low-cardinality columns (such as date) of very large tables.
  • The video advises keeping ZORDER BY to 4 columns or fewer, because each extra column dilutes the effect.
  • Manual maintenance practice: run OPTIMIZE as a separate scheduled job (daily or weekly), on compute-optimized workers. On Unity Catalog managed tables, predictive optimization does this automatically (Module 18).
  • Run VACUUM regularly and after heavy DELETE, UPDATE or MERGE activity to control storage cost.

Write gotchas seen in the labs

  • CREATE TABLE OR REPLACE is a syntax error. The order is CREATE OR REPLACE TABLE.
  • Without a column list, INSERT ... VALUES must supply every column in order ("not enough data columns: target has 3, inserted 2"). Name the columns: INSERT INTO tasks (project_id, name) VALUES (1, 'x').
  • An id BIGINT GENERATED ALWAYS AS IDENTITY column rejects explicit values; omit it. GENERATED BY DEFAULT AS IDENTITY accepts explicit values.
  • INSERT OVERWRITE truncates then inserts: a 20 row table overwritten with 9 rows has 9 rows.
  • MERGE does not allow a column list on an alias: USING (VALUES ...) AS s(id, name) fails. Put the column names inside a subquery, or use a table or temporary view as the source:
    MERGE INTO main.app.tasks t
    USING (SELECT * FROM VALUES (1, 'Plan sprint') AS v(project_id, name)) s
    ON t.name = s.name AND t.project_id = s.project_id
    WHEN MATCHED THEN UPDATE SET *
    WHEN NOT MATCHED THEN INSERT (project_id, name) VALUES (s.project_id, s.name);
  • CREATE TABLE t2 LIKE t copies the definition only, no data. CREATE TABLE t (...) USING ICEBERG creates a managed Iceberg table in Unity Catalog.

Other Delta statements

StatementWhat it does
CONVERT TO DELTA parquet.`/path`Converts an existing Parquet table or directory to Delta in place (writes a transaction log, no data copy)
FSCK REPAIR TABLE tRemoves log entries for data files that no longer exist in storage (for example, deleted manually)
GENERATE symlink_format_manifest FOR TABLE tWrites manifest files so engines such as Presto or Athena can read the table. Legacy; UniForm is the current interoperability option
REORG TABLE t APPLY (PURGE)Rewrites files to physically remove soft-deleted data: rows marked by deletion vectors and columns dropped with ALTER TABLE DROP COLUMN
CACHE SELECT * FROM t WHERE ...Preloads the selected data into the disk cache on the workers' local SSDs
Delta statements reported on the exam

The video author reports seeing GENERATE, OPTIMIZE, RESTORE and VACUUM. Know what each does and the RESTORE ... TO VERSION AS OF / TIMESTAMP AS OF syntax.

DELETE FROM t without a WHERE clause deletes every row (a new table version; time travel still works until VACUUM).

INSERT OVERWRITE DIRECTORY '/Volumes/main/exports/out/orders'
USING PARQUET
SELECT * FROM main.silver.orders;           -- writes files, not a table

LOAD DATA INPATH ... INTO TABLE exists only for legacy Hive SerDe tables. Use COPY INTO or Auto Loader instead.

Use table names, not paths

Databricks recommends referring to Delta tables by their fully qualified name (catalog.schema.table) rather than by file path. Names go through Unity Catalog permissions, lineage and auditing; paths bypass the table abstraction. Tables in other formats lack Delta's transactional guarantees and optimizations.

Module 10 · Video 5:04:23 Spark DataFrame API Exam §3, 22% New exam: tuning parameters

Spark DataFrame API

The exam now tests PySpark transformations directly: cleaning, joins, column and row manipulation, deduplication, aggregation, and basic tuning parameters.

How Spark executes code

  • A DataFrame is an immutable, distributed table with a schema. Each transformation returns a new DataFrame.
  • Transformations (select, filter, join, groupBy) are lazy: they build a plan. Actions (count, collect, show, display, write) trigger execution.
  • The Catalyst optimizer turns the plan into physical steps. See it with df.explain().
  • An action creates a job. A job is split into stages at each shuffle boundary. A stage runs as tasks, one per data partition, on executor cores.
  • Narrow transformations (filter, select, withColumn) work within a partition. Wide ones (groupBy, join, distinct, orderBy) need a shuffle, moving data across the network. Shuffles are the main cost.

Reading and writing

df = spark.read.table("main.bronze.orders")              # or spark.table(...)
df = spark.sql("SELECT * FROM main.bronze.orders")
df = (spark.read.format("csv").option("header", True)
      .option("inferSchema", True).load("/Volumes/main/raw/landing/orders/"))
df.write.mode("overwrite").saveAsTable("main.silver.orders")   # modes: append, overwrite, ignore, error/errorifexists (default)

Cleaning bronze into silver

from pyspark.sql import functions as F

silver = (spark.read.table("main.bronze.orders")
  .filter(F.col("order_id").isNotNull())                   # drop rows missing the key
  .withColumn("amount", F.col("amount").cast("decimal(10,2)"))   # standardize types
  .withColumn("order_ts", F.to_timestamp("order_ts", "yyyy-MM-dd HH:mm:ss"))
  .withColumn("country", F.upper(F.trim("country")))
  .fillna({"channel": "unknown", "discount": 0})          # replace nulls per column
  .dropDuplicates(["order_id"]))
silver.write.mode("overwrite").saveAsTable("main.silver.orders")
Null handlingEffect
df.na.drop() / dropna(how="any")Drop rows with any null. how="all": only rows where all columns are null. subset=[...] limits columns. thresh=n keeps rows with at least n non-null values.
df.na.fill(0) / fillna({...})Replace nulls (value type must match column type)
F.coalesce(a, b, F.lit(0))First non-null value
col.isNull(), isNotNull()Filter on nulls. col == None does not work: comparisons with null return null.

Column and row manipulation

df.select("id", F.col("name").alias("customer_name"))
df.withColumn("total", F.col("qty") * F.col("price"))      # add or replace a column
df.withColumnRenamed("cust_nm", "customer_name")
df.withColumnsRenamed({"a": "x", "b": "y"})
df.drop("tmp_col", "other")
df.filter((F.col("country") == "FR") & (F.col("amount") > 100))   # same as .where(); use & | ~
df.withColumn("parts", F.split("full_name", " "))           # string -> array
  .withColumn("first", F.col("parts")[0])                   # or F.split(...).getItem(0)
df.withColumn("item", F.explode("items"))                   # one row per array element; drops null/empty arrays
df.withColumn("item", F.explode_outer("items"))             # keeps rows with null/empty arrays
df.select("order.id", "order.customer.name")               # struct fields with dot notation
df.withColumn("status", F.when(F.col("amt") > 0, "paid").otherwise("free"))
df.orderBy(F.col("amount").desc()).limit(10)

Combining DataFrames

orders.join(customers, on="customer_id", how="inner")         # default how is inner
orders.join(customers, on=["customer_id", "region"], how="left")   # multiple keys
orders.join(customers, orders.cust == customers.id, "left")   # different key names
orders.join(F.broadcast(countries), "country_code")          # broadcast join hint
sizes.crossJoin(colors)                                      # cartesian product
df1.union(df2)            # by POSITION, keeps duplicates (like SQL UNION ALL)
df1.unionByName(df2, allowMissingColumns=True)   # by column NAME
df1.union(df2).distinct() # like SQL UNION
Join typeReturns
innerRows with a match on both sides
left / left_outerAll left rows; right columns null when no match
right, full / outerAll right rows; all rows from both
left_semiLeft rows that have a match (no right columns). Like WHERE EXISTS.
left_antiLeft rows with no match. Like WHERE NOT EXISTS. Good for finding new records.
crossEvery combination (rows = left × right)

Broadcast join: Spark copies a small table to every executor so the large table does not need to be shuffled. Spark does it automatically when a side is smaller than spark.sql.autoBroadcastJoinThreshold (default 10 MB). A broadcast that is too big can cause driver or executor out-of-memory errors.

Deduplication and aggregation

df.distinct()                                  # full-row duplicates
df.dropDuplicates(["order_id"])                # duplicates on key columns (keeps an arbitrary row)

# keep the latest row per key
from pyspark.sql.window import Window
w = Window.partitionBy("order_id").orderBy(F.col("updated_at").desc())
latest = df.withColumn("rn", F.row_number().over(w)).filter("rn = 1").drop("rn")

(df.groupBy("country")
   .agg(F.count("*").alias("orders"),
        F.countDistinct("customer_id").alias("customers"),
        F.approx_count_distinct("customer_id").alias("customers_approx"),  # HyperLogLog, much faster
        F.sum("amount").alias("revenue"),
        F.avg("amount").alias("avg_amount"),      # mean
        F.max("order_ts").alias("last_order")))

df.describe("amount").show()     # count, mean, stddev, min, max
df.summary().show()              # adds 25%, 50%, 75% percentiles
df.count()                       # number of rows (action)

F.count("col") skips nulls; F.count("*") counts every row. approx_count_distinct trades a small error (default max 5%) for speed on large data.

User-defined functions

from pyspark.sql.types import StringType
@F.udf(returnType=StringType())
def mask_email(e): return None if e is None else e[0] + "***@" + e.split("@")[1]
df.withColumn("email_masked", mask_email("email"))

spark.udf.register("mask_email", mask_email)     # make it callable from SQL

Python UDFs are slow (row-by-row serialization between JVM and Python). Prefer built-in functions; if you need Python, prefer pandas UDFs (@F.pandas_udf), which are vectorized with Apache Arrow.

Basic tuning parameters New exam

ParameterDefaultWhat it controls
spark.sql.shuffle.partitions200Number of partitions after a shuffle in DataFrame/SQL operations (joins, groupBy). Too high: many tiny tasks. Too low: huge partitions, spills, skew pain. Adaptive Query Execution (AQE, on by default) coalesces shuffle partitions automatically; you can also set it to auto on Databricks.
spark.default.parallelismTotal executor coresDefault number of partitions for RDD operations (e.g. parallelize). Does not affect DataFrame shuffles.
spark.executor.memory / spark.driver.memorySet by node typeHeap memory per executor or driver. Raise (or choose larger or memory-optimized nodes) for OOM and spill. Set in cluster config, not at runtime.
spark.sql.autoBroadcastJoinThreshold10 MBMax size of a table to broadcast automatically. -1 disables auto broadcast.
spark.conf.set("spark.sql.shuffle.partitions", 64)
spark.conf.set("spark.sql.autoBroadcastJoinThreshold", 50 * 1024 * 1024)
spark.conf.get("spark.sql.shuffle.partitions")

Method the exam expects: change one parameter, re-run and re-measure (wall time, stage times in the Spark UI), keep it only if it helps. Serverless compute manages most of these for you and does not allow setting many of them.

Other tools: df.repartition(n, "col") (full shuffle, can increase partitions), df.coalesce(n) (reduce partitions without a full shuffle), df.cache() / persist() for reused DataFrames.

Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Spark building blocks

Spark is made of libraries on top of one engine. Spark Core is the engine and low-level API (Python, SQL, Scala, Java, R). Spark SQL adds DataFrames and SQL. Structured Streaming handles streams (it replaced the legacy DStream "Spark Streaming"). MLlib is the machine learning library and GraphX the graph library. The old "100x faster than Hadoop in memory" figure is a historical benchmark, not something the exam tests.

PySpark is the Python API for Spark. A PySpark DataFrame looks like pandas but is distributed across the cluster, and you can mix it with SQL through spark.sql(...).

RDDs

An RDD (Resilient Distributed Dataset) is Spark's original low-level, immutable distributed collection. DataFrames are built on top of it and are optimized by Catalyst, so prefer DataFrames. RDD functions you may see in options: map, flatMap, filter, distinct, reduce, reduceByKey, count, first, take, countByValue, sortBy, groupBy.

rdd = spark.sparkContext.textFile("/Volumes/main/raw/landing/book.txt")
counts = (rdd.flatMap(lambda line: line.split(" "))
             .map(lambda w: (w, 1))
             .reduceByKey(lambda a, b: a + b))

RDD APIs are not supported on serverless compute or on Standard (shared) access mode clusters.

Dates, strings and regex

-- SQL
SELECT year(order_ts), month(order_ts), dayofmonth(order_ts),
       regexp_extract(email, '@(.*)$', 1) AS domain
FROM main.silver.orders;
# PySpark: same function names
df.select(F.year("order_ts"), F.month("order_ts"), F.dayofmonth("order_ts"),
          F.regexp_extract("email", r"@(.*)$", 1).alias("domain"))

Spark cache statements (SQL)

StatementEffect
CACHE [LAZY] TABLE t [OPTIONS ('storageLevel' 'MEMORY_ONLY')] [AS SELECT ...]Caches a table or query result. Caching a query creates a temp view named t. Avoids re-scanning source files.
UNCACHE TABLE [IF EXISTS] tRemoves one table or view from the cache
CLEAR CACHERemoves every cached table and view
REFRESH TABLE tInvalidates cached data and metadata for t. The cache is refilled lazily the next time t is queried. Use it when files under a table changed outside Spark.
REFRESH 'path'Invalidates cached data for every dataset whose source path starts with that prefix
REFRESH FUNCTION fInvalidates the cached entry of a permanent function (not temporary ones)
Exam pattern

The video author got one caching question, most likely on REFRESH TABLE: it invalidates the cache, which is then repopulated lazily. Serverless compute and SQL warehouses manage caching automatically, so these statements mainly apply to classic clusters.

explode adds rows (one per array element, or one per key/value for a map). flatten turns an array of arrays into one array and keeps the row count. Both are built-in Spark SQL functions. Other array helpers: sort_array(a), element_at(a, 1) (1-based; negative counts from the end).

Module 11 · Video 5:15:53 Table and Views Exam §3, §7

Tables and views

Which object to create for which purpose, from raw tables to gold-layer objects for BI teams.

The three-level namespace

Every Unity Catalog object is addressed as catalog.schema.object, for example main.sales.orders. USE CATALOG main; USE SCHEMA sales; sets defaults. Schema and database are synonyms (CREATE SCHEMA = CREATE DATABASE). The legacy per-workspace metastore appears as the catalog hive_metastore.

Managed vs external tables (summary)

ManagedExternal
Data locationUnity Catalog's managed storage for the metastore, catalog or schemaA path you give with LOCATION, inside a registered external location
DROP TABLEDeletes metadata and data (data recoverable with UNDROP for 7 days)Deletes metadata only; files remain
FormatsDelta (or Iceberg)Delta, Parquet, CSV, JSON, Avro, ORC, text
OptimizationPredictive optimization, automatic featuresYou manage maintenance
RecommendedYes, the defaultWhen other tools must read the same path or data must stay in a given location
CREATE TABLE main.sales.orders (id BIGINT, amount DECIMAL(10,2));            -- managed
CREATE TABLE main.sales.orders_ext (id BIGINT, amount DECIMAL(10,2))
  LOCATION 's3://acme-data/sales/orders';                                  -- external

Conversions between them are covered in Module 19.

Views

ObjectStores data?Lifetime and scope
View CREATE VIEWNo. Saved query, recomputed at each read.Permanent object in a schema, governed by Unity Catalog
Temporary view CREATE TEMP VIEW, df.createOrReplaceTempViewNoCurrent Spark session only (one notebook). Not registered in the catalog.
Global temporary view CREATE GLOBAL TEMP VIEWNoAll notebooks on the same cluster, until the cluster restarts. Read via global_temp.view_name. Not supported on serverless.
Materialized view CREATE MATERIALIZED VIEWYes, precomputed resultsPermanent. Refreshed on a schedule or by a pipeline, incrementally when possible. Runs on serverless.
Streaming table CREATE STREAMING TABLEYesPermanent Delta table fed by a stream; processes each input row once. Ideal for append-only ingestion.
CREATE OR REPLACE VIEW main.gold.v_revenue AS
SELECT country, SUM(amount) AS revenue FROM main.silver.orders GROUP BY country;

CREATE MATERIALIZED VIEW main.gold.mv_daily_revenue
  SCHEDULE EVERY 1 HOUR
AS SELECT order_date, SUM(amount) AS revenue FROM main.silver.orders GROUP BY order_date;
REFRESH MATERIALIZED VIEW main.gold.mv_daily_revenue;

CREATE OR REFRESH STREAMING TABLE main.bronze.raw_events
  SCHEDULE EVERY 15 MINUTES
AS SELECT * FROM STREAM read_files('/Volumes/main/raw/events/', format => 'json');

Choosing a gold-layer object New exam

NeedChoose
Always-current logic, cheap to compute, or a security layer over a tableView
Expensive aggregation or join read often by dashboards; fresh within a refresh intervalMaterialized view
Continuous append of new events with low latency, each record processed onceStreaming table
Full control of writes (MERGE, custom jobs), or results produced by a jobTable
Key distinctions
  • A view stores nothing, so it always shows current data but costs compute at each query.
  • A materialized view stores results and can be stale until refreshed. Updates and deletes in the source are reflected at refresh (it recomputes, incrementally when possible).
  • A streaming table assumes append-only sources. Updates or deletes in the source do not flow through automatically.

Useful inspection commands

SHOW CATALOGS; SHOW SCHEMAS IN main; SHOW TABLES IN main.sales; SHOW VIEWS IN main.gold;
DESCRIBE TABLE EXTENDED main.sales.orders;    -- includes Type: MANAGED / EXTERNAL
SHOW CREATE TABLE main.sales.orders;
COMMENT ON TABLE main.sales.orders IS 'One row per order';
ALTER TABLE main.sales.orders SET TAGS ('domain' = 'sales');
Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

DESCRIBE SCHEMA EXTENDED main.todos;      -- schema metadata (owner, location, properties); does NOT list tables
SHOW TABLES IN main.todos;                -- list tables
SHOW TABLE EXTENDED IN main.todos LIKE 'comp*';   -- details for every table matching a pattern
SHOW CREATE TABLE main.todos.completions; -- reveals identity, defaults and constraints

If a statement fails with "the operation attempted to use Hive metastore, which is disabled", no current catalog is set and the workspace has legacy Hive metastore access turned off. Run USE CATALOG main; or fully qualify names.

"Unmanaged table" is the older Hive term for an external table. In Unity Catalog a table's storage is either managed or external.

Tables over files and comments

CREATE TABLE main.raw.orders_csv (id INT, amount DOUBLE)
USING CSV
OPTIONS (header 'true', delimiter ',')
LOCATION 's3://acme-data/raw/orders/';      -- external, non-Delta: no ACID, no time travel

CREATE TABLE main.sales.tx (
  id BIGINT COMMENT 'Transaction id',
  amount DECIMAL(10,2) COMMENT 'Amount in EUR'
) COMMENT 'Financial transactions by id';
ALTER TABLE main.sales.tx ALTER COLUMN amount COMMENT 'Amount in EUR, tax included';

Comments appear in Catalog Explorer and help discovery and governance.

Generated columns gotcha

Delta generated columns (GENERATED ALWAYS AS (expr)) are always computed on write and stored. There is no VIRTUAL or STORED keyword in Databricks, and the expression must be deterministic, so current_date() cannot be used (an "age" column cannot be generated).

Foreign tables and catalog types

Besides standard catalogs, Unity Catalog has foreign catalogs (Lakehouse Federation) and shared catalogs (Delta Sharing, Module 19). A foreign catalog (Lakehouse Federation) mirrors a database in an external system such as PostgreSQL or Snowflake. Its tables are foreign tables: read-only from Databricks.

ManagedExternalForeign
Data lives inUC managed storageYour cloud pathThe external system
Read/write from DatabricksRead and writeRead and writeRead only
Automatic optimizationYes (predictive optimization)No, you manage itNo

Each Unity Catalog-enabled workspace has a default catalog (set by an admin). Unqualified names resolve to it unless you run USE CATALOG.

Metric views

A metric view defines reusable business metrics (measures and dimensions, for example revenue by region) once, centrally, in Unity Catalog, so every dashboard, Genie space and query uses the same definition.

Module 12 · Video 5:26:27 SQL Commands and Logic Exam §2, §3

SQL commands and logic

Spark SQL features that appear in exam questions: conditional logic, CTEs, nested and array data, higher-order functions, window functions, SQL UDFs, and loading commands.

Conditional logic and CTEs

WITH recent AS (
  SELECT * FROM main.silver.orders WHERE order_date >= current_date() - INTERVAL 30 DAYS
)
SELECT customer_id,
       CASE WHEN SUM(amount) > 1000 THEN 'gold'
            WHEN SUM(amount) > 100  THEN 'silver'
            ELSE 'bronze' END AS tier,
       COUNT_IF(status = 'returned') AS returns,
       COALESCE(MAX(coupon), 'none') AS last_coupon
FROM recent
GROUP BY customer_id
HAVING COUNT(*) >= 2;
  • COUNT(*) counts rows; COUNT(col) ignores nulls; COUNT(DISTINCT col); approx_count_distinct(col).
  • WHERE filters rows before grouping; HAVING filters groups. QUALIFY filters on window function results.
  • Null comparisons: col = NULL is never true; use IS NULL. <=> is null-safe equality.
  • try_cast(x AS INT) returns null instead of failing on bad values.

Semi-structured and nested data

-- JSON stored as a STRING column: colon syntax
SELECT raw:customer.name, raw:items[0].sku, raw:total::double FROM bronze.events;

-- parse JSON string into a STRUCT
SELECT from_json(raw, schema_of_json('{"id":1,"tags":["a"]}')) AS parsed FROM bronze.events;

-- STRUCT fields: dot notation; expand all fields with .*
SELECT parsed.id, parsed.* FROM t;

-- arrays
SELECT order_id, explode(items) AS item FROM orders;      -- one row per element
SELECT size(items), array_contains(tags, 'vip'), array_distinct(tags), flatten(nested_arrays),
       collect_list(sku), collect_set(sku) FROM ...;     -- collect_* aggregate rows into arrays

-- VARIANT type
SELECT parse_json(raw) AS v FROM bronze.events;          -- then v:customer.name

Higher-order functions

They apply a lambda to every array element without exploding:

SELECT
  FILTER(items, i -> i.qty > 0)                     AS valid_items,
  TRANSFORM(items, i -> i.price * 1.2)             AS prices_with_vat,
  EXISTS(items, i -> i.sku = 'X1')                 AS has_x1,
  AGGREGATE(items, 0D, (acc, i) -> acc + i.price)  AS total     -- also called REDUCE
FROM orders;

Window functions

SELECT *,
  ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_ts DESC) AS rn,
  SUM(amount)  OVER (PARTITION BY customer_id ORDER BY order_ts
                     ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS running_total,
  LAG(amount)  OVER (PARTITION BY customer_id ORDER BY order_ts) AS prev_amount
FROM main.silver.orders
QUALIFY rn = 1;      -- latest order per customer

ROW_NUMBER gives unique numbers; RANK leaves gaps after ties; DENSE_RANK does not.

PIVOT and set operations

SELECT * FROM (SELECT country, quarter, amount FROM sales)
PIVOT (SUM(amount) FOR quarter IN ('Q1', 'Q2', 'Q3', 'Q4'));

SELECT id FROM a UNION SELECT id FROM b;      -- removes duplicates
SELECT id FROM a UNION ALL SELECT id FROM b;  -- keeps duplicates
SELECT id FROM a INTERSECT SELECT id FROM b;
SELECT id FROM a EXCEPT SELECT id FROM b;     -- in a, not in b

SQL user-defined functions

CREATE OR REPLACE FUNCTION main.util.vat(price DOUBLE)
RETURNS DOUBLE
RETURN price * 1.2;

SELECT main.util.vat(amount) FROM orders;
DESCRIBE FUNCTION EXTENDED main.util.vat;

SQL UDFs are stored in Unity Catalog (governed with EXECUTE privilege), are optimized like built-in SQL, and are the basis of row filters and column masks (Module 20). Python UDFs can also be registered in Unity Catalog with LANGUAGE PYTHON.

Loading and querying files from SQL

SELECT * FROM json.`/Volumes/main/raw/landing/events/`;           -- direct query of files
SELECT * FROM read_files('/Volumes/main/raw/landing/orders/',
                         format => 'csv', header => true);        -- schema inference, options

COPY INTO main.bronze.orders
FROM '/Volumes/main/raw/landing/orders/'
FILEFORMAT = CSV
FORMAT_OPTIONS ('header' = 'true', 'inferSchema' = 'true')
COPY_OPTIONS ('mergeSchema' = 'true');

COPY INTO is covered in depth in Module 15.

Parameters and variables

DECLARE VARIABLE run_date DATE DEFAULT current_date();
SET VAR run_date = DATE'2026-11-01';
SELECT * FROM orders WHERE order_date = run_date;
SELECT * FROM orders WHERE order_date = :run_date;     -- named parameter from a job, widget or dashboard
SELECT * FROM IDENTIFIER(:table_name);                  -- parameterized object name
Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

SET vs SET VAR

SET x = 1 sets a Spark configuration, not a SQL variable. Referencing x later fails with "Configuration x is not available". Declare the variable, then assign it with SET VAR (or SET VARIABLE); a scalar subquery is allowed:

DECLARE VARIABLE project_id BIGINT;
SET VAR project_id = (SELECT id FROM main.app.projects ORDER BY id LIMIT 1);
INSERT INTO main.app.tasks (name, project_id) VALUES ('Write tests', project_id);

Variables work in notebooks and in the SQL editor. Legacy ${var} substitution is deprecated in favor of named parameter markers (:param).

Joins in SQL

SELECT o.order_id, o.customer_name, p.amount
FROM orders o
LEFT JOIN payments p ON o.order_id = p.order_id;      -- all orders, amount null if unpaid

SELECT * FROM customers c LEFT SEMI JOIN orders o ON c.id = o.customer_id;  -- customers with orders
SELECT * FROM customers c LEFT ANTI JOIN orders o ON c.id = o.customer_id;  -- customers without orders
SELECT * FROM sizes CROSS JOIN colors;                                      -- Cartesian product

CASE WHEN works in SELECT, WHERE and ORDER BY.

Gotcha: COUNT(age IS NULL) counts every row because the boolean is never null. Use COUNT_IF(age IS NULL) or COUNT(*) - COUNT(age).

UNPIVOT

SELECT * FROM sales_wide
UNPIVOT (amount FOR quarter IN (q1, q2, q3, q4));    -- wide to long

Hashing with a SQL UDF

CREATE OR REPLACE FUNCTION main.util.hash_email(email STRING)
RETURNS STRING
RETURN sha2(lower(email), 256);
SELECT main.util.hash_email(email) FROM main.silver.customers;

Hashing is one-way, not encryption: you cannot get the email back.

DESCRIBE commands

CommandReturns
DESCRIBE CATALOG [EXTENDED] mainName, comment, owner, type; EXTENDED adds properties, created by/at
DESCRIBE SCHEMA [EXTENDED] main.sales (= DATABASE)Name, comment, location, properties
DESCRIBE TABLE [EXTENDED] tColumns; EXTENDED adds type, location, owner, properties
DESCRIBE VOLUME vVolume type (MANAGED or EXTERNAL) and storage location
DESCRIBE EXTERNAL LOCATION locName, URL (cloud path), storage credential, owner
DESCRIBE CREDENTIAL cName, owner, cloud identity it wraps
DESCRIBE CONNECTION cFederation connection: type, URL/host, owner, options
DESCRIBE FUNCTION [EXTENDED] fSignature, class, usage; EXTENDED adds body or examples
DESCRIBE QUERY SELECT ...Output columns and types of a query (no data)
DESCRIBE SHARE / RECIPIENT / PROVIDER xDelta Sharing objects: share contents and owner; recipient auth type and activation link; provider auth type, cloud, region, metastore id
Exam pattern

"Where is this data stored?" Table: DESCRIBE DETAIL or DESCRIBE TABLE EXTENDED (Location). External location: DESCRIBE EXTERNAL LOCATION (URL). Volume: DESCRIBE VOLUME. The video author got the external location question on the real exam.

Module 13 · Video 5:39:38 File Handling and Formats Exam §2

File handling and formats

A short chapter in the video. Know each format's strengths and how to read it.

FormatTypeSchemaNotes
DeltaColumnar (Parquet + log)EnforcedDefault for tables. ACID, time travel.
ParquetColumnar, binaryEmbedded in fileCompressed, column pruning, predicate pushdown. Base of Delta.
ORCColumnar, binaryEmbeddedHadoop/Hive ecosystem
AvroRow-based, binaryEmbedded, supports evolutionCommon in Kafka and streaming
CSVRow-based textNone (header optional)Needs options: header, delimiter (sep), quote, escape, inferSchema. Everything is string unless inferred or given a schema.
JSONText, semi-structuredInferredNested data. One object per line by default; use multiLine for pretty-printed files.
TextLinesSingle value columnLogs
binaryFileWhole filepath, modificationTime, length, contentImages, PDFs, unstructured data
XMLTextInferredNative support with rowTag option

Reading with options and explicit schemas

schema = "order_id BIGINT, amount DECIMAL(10,2), order_ts TIMESTAMP"   # DDL string
df = (spark.read.format("csv")
      .schema(schema)                     # explicit: faster and safer than inferSchema
      .option("header", "true")
      .option("sep", ";")
      .option("mode", "PERMISSIVE")       # PERMISSIVE (default), DROPMALFORMED, FAILFAST
      .option("rescuedDataColumn", "_rescued_data")
      .load("/Volumes/main/raw/landing/orders/*.csv"))

df_json = spark.read.option("multiLine", True).json("/Volumes/main/raw/landing/api/")
df_bin  = spark.read.format("binaryFile").option("pathGlobFilter", "*.pdf").load("/Volumes/main/raw/docs/")

Inferring a schema requires an extra pass over data, so give an explicit schema in production. Malformed CSV rows go to _corrupt_record in PERMISSIVE mode, or to the rescued data column if configured.

File metadata

df.select("*", "_metadata.file_path", "_metadata.file_modification_time")

The hidden _metadata column gives the source file of each row. Add it in bronze for lineage and debugging. (input_file_name() is the older function.)

Paths

  • Volume: /Volumes/catalog/schema/volume/dir/file (recommended).
  • Cloud URI: s3://bucket/path, abfss://container@account.dfs.core.windows.net/path, gs://bucket/path, accessed through Unity Catalog external locations.
  • Workspace files: /Workspace/Users/you/.... Legacy: dbfs:/.

Writing files

df.write.mode("overwrite").partitionBy("country").parquet("/Volumes/main/exports/out/orders")
df.coalesce(1).write.mode("overwrite").option("header", True).csv("/Volumes/main/exports/out/one_file")

Spark writes a directory of part files, one per partition, plus marker files (_SUCCESS, _committed_*).

Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

INSERT OVERWRITE DIRECTORY

Writes query results out to files; it does not load files into a table.

INSERT OVERWRITE DIRECTORY '/Volumes/main/app/exports/tasks'
USING JSON
SELECT * FROM main.app.tasks;      -- also PARQUET, CSV, TEXT, ...

To load files into a table, use COPY INTO, Auto Loader, or read_files.

Files or folders, and querying by format prefix

A path to a file reads that file. A path to a directory reads every file in it, no wildcard needed. Directory reads suit daily drops, partitioned data sets and logs.

SELECT * FROM parquet.`/Volumes/main/raw/landing/orders/`;
SELECT * FROM csv.`/Volumes/main/raw/landing/file.csv`;    -- no options: prefer read_files for CSV
SELECT * FROM json.`/Volumes/main/raw/landing/events/`;
SELECT * FROM delta.`s3://acme-data/tables/orders`;        -- path-based Delta read

The path goes in backticks, not quotes.

Module 14 · Video 5:41:24 Structured Streaming Exam §2

Structured Streaming

Spark's streaming engine. It treats a stream as a table that keeps growing, and processes new rows incrementally with exactly-once guarantees.

The model

Write a query as if over a static table. Spark runs it repeatedly in micro-batches over new input only. Progress (which input has been processed) is stored in a checkpoint directory, which makes the stream fault tolerant: after a failure or restart it resumes where it stopped.

(spark.readStream.table("main.bronze.events")           # Delta table as a streaming source
   .filter("event_type IS NOT NULL")
   .writeStream
   .option("checkpointLocation", "/Volumes/main/chk/silver_events")
   .outputMode("append")
   .trigger(availableNow=True)
   .toTable("main.silver.events"))

Sources and sinks

  • Sources: Delta tables, Auto Loader (cloudFiles), Kafka, Kinesis, Event Hubs (Kafka API), Pub/Sub, rate (testing).
  • Sinks: Delta tables (toTable), Kafka, foreachBatch (run any batch code, e.g. a MERGE, per micro-batch), memory/console (testing).
  • A Delta table used as a streaming source must be append-only. Updates or deletes in the source break the stream unless you set skipChangeCommits (or read its change data feed).

Output modes

ModeWritesUse with
append (default)Only new rowsNon-aggregated streams; aggregations with a watermark
completeThe whole result table every triggerAggregations (rewrites everything)
updateOnly rows changed since last triggerAggregations into sinks that support upserts (e.g. via foreachBatch)

Triggers

TriggerBehavior
Default (none)Next micro-batch starts as soon as the previous finishes (about every 500 ms when idle)
processingTime="1 minute"Micro-batch at fixed intervals; continuous running
availableNow=TrueProcess all available data in one or more batches, then stop. Incremental batch. Ideal on a schedule with job compute.
once=TrueDeprecated: single batch of all data. Use availableNow.
continuous="1 second"Experimental low-latency mode; limited operations

Exactly-once and checkpoints

  • Exactly-once end-to-end requires a replayable source, a checkpoint, and an idempotent sink (Delta is).
  • Each stream must have its own checkpoint location. Deleting the checkpoint makes the stream start over from the beginning.
  • Changing a query's logic significantly may need a new checkpoint.

Watermarks and stateful operations

(events.withWatermark("event_time", "10 minutes")
   .groupBy(F.window("event_time", "5 minutes"), "device_id")
   .count())

Aggregations, joins and dropDuplicates on streams keep state. A watermark tells Spark how late data can arrive, so old state can be dropped and append mode can emit finished windows. Data later than the watermark is ignored.

Monitoring a stream

query.status, query.lastProgress (rows per second, batch duration), query.stop(), query.awaitTermination(). In a notebook, display() on a streaming DataFrame shows a live dashboard. The Spark UI has a Structured Streaming tab.

Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Triggered vs continuous

TriggeredContinuous
ExecutionProcesses available data, then stops; runs on a scheduleKeeps running and processes data as it arrives
LatencyHigher, depends on the scheduleLow, near real time
CostLower: compute starts and stopsHigher: compute always on
Typical useBatch loads, periodic reportsReal-time dashboards, alerts
Streaming triggeravailableNow=True (or a schedule)Default or processingTime micro-batches

A continuous pipeline still uses micro-batches. Do not confuse it with the experimental trigger(continuous=...) mode.

Module 15 · Video 5:44:42 Auto Loader Exam §2, 21% New exam: Lakeflow Connect, choosing a method

Auto Loader, COPY INTO, and Lakeflow Connect

An hour of the video covers Auto Loader. The current exam builds its largest objective list around ingestion, including when to choose each method.

Auto Loader

Auto Loader incrementally and efficiently processes new files as they arrive in cloud storage. It is a Structured Streaming source called cloudFiles. It remembers which files it has processed (in the checkpoint, using RocksDB), so each file is loaded exactly once, and it scales to millions of files.

(spark.readStream.format("cloudFiles")
   .option("cloudFiles.format", "json")                         # json, csv, parquet, avro, orc, text, binaryFile, xml
   .option("cloudFiles.schemaLocation", "/Volumes/main/chk/orders_schema")   # where inferred schema is tracked
   .option("cloudFiles.inferColumnTypes", "true")               # otherwise JSON/CSV columns are strings
   .option("cloudFiles.schemaEvolutionMode", "addNewColumns")
   .load("/Volumes/main/raw/landing/orders/")
   .select("*", F.col("_metadata.file_path").alias("source_file"),
           F.current_timestamp().alias("ingested_at"))
 .writeStream
   .option("checkpointLocation", "/Volumes/main/chk/orders")
   .option("mergeSchema", "true")
   .trigger(availableNow=True)                                  # incremental batch
   .toTable("main.bronze.orders"))

In SQL (Databricks SQL and pipelines), the equivalent is a streaming table over STREAM read_files(...).

Schema inference and evolution

Without a provided schema, Auto Loader samples files (up to 50 GB or 1000 files) to infer it and stores it in cloudFiles.schemaLocation. By default JSON and CSV columns are inferred as strings unless inferColumnTypes is true. cloudFiles.schemaHints fixes types for specific columns.

cloudFiles.schemaEvolutionModeWhen a new column appears
addNewColumns (default when no schema is provided)The stream fails with an UnknownFieldException, the new column is added to the stored schema, and the stream works after a restart. Run it in a job with retries so restarts are automatic.
rescueSchema never evolves; new columns go into _rescued_data. Stream does not fail.
failOnNewColumnsStream fails and does not update the schema until you change it.
none (default when a schema is provided)New columns are ignored. Data is not rescued unless rescuedDataColumn is set.

The _rescued_data column collects data that does not match the schema (wrong type, new column, case mismatch) as JSON, so nothing is silently lost. Schema enforcement on the target table still applies.

File detection modes

ModeHowUse when
Directory listing (default)Lists the input directory to find new files. No extra cloud setup.Most cases; moderate file volumes
File notification (cloudFiles.useNotifications = true)Uses cloud events and queues (SNS/SQS, Event Grid, Pub/Sub) to learn about new files without listing. With Unity Catalog, managed file events on the external location set this up for you.Very large directories, high file volumes, lower latency

Both modes work with any trigger, including batch-style availableNow runs.

COPY INTO

CREATE TABLE IF NOT EXISTS main.bronze.orders;     -- schemaless placeholder is allowed

COPY INTO main.bronze.orders
FROM 's3://acme-landing/orders/'
FILEFORMAT = CSV
FORMAT_OPTIONS ('header' = 'true', 'inferSchema' = 'true')
COPY_OPTIONS ('mergeSchema' = 'true');           -- 'force' = 'true' reloads already-loaded files
  • SQL command, idempotent: files already loaded are skipped on rerun.
  • Re-scans the source directory each run; suited to thousands of files, not millions.
  • Options: PATTERN = '*.csv', FILES = ('a.csv','b.csv'), VALIDATE ALL (dry run).
  • Source can be a volume or a cloud path governed by an external location.
Auto LoaderCOPY INTO
InterfacePython / streaming tables in SQLSQL command
ScaleMillions of files, efficient discoveryThousands of files
Schema evolutionRich (modes, rescued data, hints)mergeSchema
Continuous / streamingYesNo, batch only
RecommendationDefault choice for file ingestionSimple, ad hoc or SQL-only loads

Lakeflow Connect New exam

Lakeflow Connect is Databricks' ingestion family. It has two kinds of connectors:

KindWhat it isExamples
Standard connectorsBuilding blocks you configure in your own pipeline or job codeAuto Loader and cloud storage, COPY INTO, Kafka, Kinesis, Event Hubs, Pub/Sub, Pulsar, SFTP, file upload
Managed connectorsFully managed, point-and-click (or API/bundle) ingestion from enterprise apps and databases. Databricks handles authentication, incremental reads, CDC, schema changes and retries. Runs on serverless and lands data in Unity Catalog streaming tables.SaaS: Salesforce, Workday, ServiceNow, Google Analytics, SharePoint, others. Databases: SQL Server, PostgreSQL, MySQL, Oracle and more.

How a managed connector is set up

  1. Create a Unity Catalog connection holding the source credentials (needs CREATE CONNECTION).
  2. Create an ingestion pipeline in the UI ("Data ingestion" page), with an API, or in a bundle. Pick source objects (tables, reports) and a destination catalog and schema.
  3. Database connectors also need an ingestion gateway: a pipeline on classic compute that reads the change log (CDC) continuously and stages changes in a volume. The ingestion pipeline (serverless) applies them to the destination tables.
  4. Schedule the ingestion pipeline with a Lakeflow Job, or a schedule on the pipeline.

Destination tables are streaming tables; SCD Type 1 (default) or Type 2 history can be configured. Nested and semi-structured fields from SaaS APIs (JSON objects, arrays) land as structs, arrays, or strings that you parse in silver.

Other ingestion paths

  • Partner Connect / partner tools (Fivetran, Qlik, others) for sources without a native connector.
  • JDBC/ODBC or REST in notebooks, scheduled by Lakeflow Jobs, landing data in volumes or directly in tables.
  • Lakehouse Federation: query an external database in place through a foreign catalog, without copying data.
  • File upload UI for small local files.

Choosing an ingestion method

SituationChoose
Files landing in cloud storage, growing to millions, need schema evolutionAuto Loader
SQL-only team, a few thousand files, idempotent loadsCOPY INTO
Salesforce, Workday, ServiceNow, or CDC from SQL Server, with minimal code and maintenanceLakeflow Connect managed connector
Kafka or other event bus with low latencyStructured Streaming / streaming table (standard connector)
Source has no native connector but a partner has onePartner connector (Partner Connect)
Custom API with paging and auth logicPython in a notebook, scheduled by Lakeflow Jobs, land then Auto Loader
Occasional analysis of operational data without copyingLakehouse Federation
A one-off CSV from your laptopUI upload
Decision factors named in the guide

Data volume, ingestion frequency, data types (structured vs semi- vs unstructured), and governance needs in Unity Catalog. Managed connectors and Auto Loader both land in Unity Catalog-governed tables; a managed connector removes custom code and maintenance.

Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

COPY INTO sources are Unity Catalog volumes or cloud storage paths governed by an external location. Put sample files in a volume rather than a workspace folder.

New and existing files

On its first run Auto Loader processes the files already in the input directory as well as new ones (cloudFiles.includeExistingFiles defaults to true; set it to false to ingest only files that arrive after the stream starts). The option only has effect on the first run of a stream.

Supported sources: Amazon S3 (s3://), ADLS Gen2 (abfss://), Azure Blob Storage (wasbs://), Google Cloud Storage (gs://), and Unity Catalog volumes (/Volumes/...). The JSON format expects one object per line (JSON Lines) by default; add .option("multiLine", "true") for pretty-printed files.

(spark.readStream.format("cloudFiles")
   .option("cloudFiles.format", "json")
   .schema("order_id BIGINT, price DOUBLE, in_stock BOOLEAN")   # explicit schema: no inference
   .load("s3://acme-landing/orders/"))
Fixing all-string columns

Python cloudFiles infers JSON and CSV columns as strings by default. Fix types with an explicit schema, cloudFiles.schemaHints, or cloudFiles.inferColumnTypes = true. cloudFiles.schemaLocation only stores and tracks the inferred schema, it does not change types. In SQL, read_files infers column types by default.

Why file notification scales better: directory listing must list the whole input path on every micro-batch, which gets slower and costs more cloud API calls as the directory grows. File notification reads events from a queue instead, but needs cloud permissions to create the notification and queue resources (or managed file events on the external location).

Module 16 · Video 6:44:35 Delta Live Table Exam §3

Lakeflow Declarative Pipelines

Formerly Delta Live Tables (DLT). You declare the tables you want and the quality rules; Databricks works out the dependency graph, orchestration, retries, and infrastructure.

Core idea

In a normal job you write imperative steps ("read, transform, write, in this order"). In a declarative pipeline you define datasets, and the pipeline builds a DAG from their references, runs them in the right order, manages checkpoints, and records lineage and quality metrics.

DatasetUse
Streaming tableIncremental, append-style processing (ingestion with Auto Loader or Kafka, bronze and silver)
Materialized viewResults of a query, refreshed (incrementally where possible); joins and aggregates (silver and gold)
Temporary viewIntermediate step inside the pipeline, not published
SinkWrite a stream to Kafka, Event Hubs or an external Delta table

SQL syntax

CREATE OR REFRESH STREAMING TABLE orders_bronze
COMMENT "Raw orders"
AS SELECT *, _metadata.file_path AS source_file
FROM STREAM read_files('/Volumes/main/raw/landing/orders/', format => 'json');

CREATE OR REFRESH STREAMING TABLE orders_silver (
  CONSTRAINT valid_id     EXPECT (order_id IS NOT NULL) ON VIOLATION DROP ROW,
  CONSTRAINT valid_amount EXPECT (amount >= 0)          ON VIOLATION FAIL UPDATE,
  CONSTRAINT has_country  EXPECT (country IS NOT NULL)
)
AS SELECT order_id, CAST(amount AS DECIMAL(10,2)) AS amount, country
FROM STREAM(orders_bronze);

CREATE OR REFRESH MATERIALIZED VIEW revenue_by_country
AS SELECT country, SUM(amount) AS revenue FROM orders_silver GROUP BY country;

Use STREAM(table) (or STREAM table) to read a dataset incrementally. Reading without STREAM is a batch read.

Python syntax

from pyspark import pipelines as dp        # older code: import dlt, @dlt.table
from pyspark.sql import functions as F

@dp.table(comment="Raw orders")
def orders_bronze():
    return (spark.readStream.format("cloudFiles")
            .option("cloudFiles.format", "json")
            .load("/Volumes/main/raw/landing/orders/"))

@dp.table
@dp.expect_or_drop("valid_id", "order_id IS NOT NULL")
@dp.expect_or_fail("valid_amount", "amount >= 0")
@dp.expect("has_country", "country IS NOT NULL")
def orders_silver():
    return spark.readStream.table("orders_bronze").withColumn("amount", F.col("amount").cast("decimal(10,2)"))

@dp.materialized_view
def revenue_by_country():
    return spark.read.table("orders_silver").groupBy("country").agg(F.sum("amount").alias("revenue"))

A function returning spark.readStream... under @dp.table makes a streaming table; returning a batch DataFrame makes a materialized view.

Expectations (data quality)

ActionSQLPythonEffect on bad rows
Warn (default)EXPECT (cond)@dp.expectKept in the target; violation counted in metrics
Drop... ON VIOLATION DROP ROW@dp.expect_or_dropRemoved from the target; counted
Fail... ON VIOLATION FAIL UPDATE@dp.expect_or_failThe update fails; the transaction rolls back; manual fix needed

@dp.expect_all, expect_all_or_drop, expect_all_or_fail take a dictionary of several rules. To quarantine bad rows instead of losing them, write a second table with the inverted condition. Quality metrics appear in the pipeline UI and the event log.

CDC with AUTO CDC

CREATE OR REFRESH STREAMING TABLE customers;

CREATE FLOW customers_cdc AS AUTO CDC INTO customers
FROM STREAM(customers_changes)
KEYS (customer_id)
APPLY AS DELETE WHEN op = 'DELETE'
SEQUENCE BY change_ts
COLUMNS * EXCEPT (op, change_ts)
STORED AS SCD TYPE 2;          -- or SCD TYPE 1 (default)

Python: dp.create_auto_cdc_flow(target=..., source=..., keys=[...], sequence_by=..., stored_as_scd_type=2). Older name: APPLY CHANGES INTO / dlt.apply_changes. SEQUENCE BY handles out-of-order events. SCD Type 2 adds __START_AT and __END_AT columns.

Pipeline settings and modes

  • Source code: one or more notebooks or files (SQL and Python can be mixed across files). The Lakeflow Pipelines Editor is the multi-file IDE for pipelines.
  • Target: default catalog and schema for published datasets.
  • Compute: serverless (recommended) or classic with enhanced autoscaling.
  • Triggered mode: process available data, then stop (schedule it). Continuous mode: keep running for low latency, higher cost.
  • Development mode: reuses the cluster between updates and does not retry, for fast iteration. Production mode: restarts the cluster on recoverable errors and retries.
  • Full refresh: clears and recomputes all tables from scratch (streaming tables reprocess all source data). Avoid on sources that no longer hold history.
  • Editions (classic): Core, Pro (CDC), Advanced (expectations).

Monitoring pipelines

The pipeline UI shows the DAG, each dataset's status, rows written, and expectation pass/fail counts. Everything is also in the event log, queryable with SELECT * FROM event_log(TABLE(main.silver.orders_silver)) or event_log('<pipeline-id>'): flow progress, data quality, lineage, cluster events, errors.

Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Legacy syntax in the video

The video slides use Delta Live Tables syntax: CREATE OR REFRESH LIVE TABLE, the LIVE. prefix for upstream tables, and APPLY CHANGES INTO. Current syntax is CREATE OR REFRESH STREAMING TABLE or MATERIALIZED VIEW, plain table names, and AUTO CDC. STREAM(...) still means "read this source incrementally". In the pipeline settings the source notebooks or files are listed as the pipeline's libraries (source code); the target is the catalog and schema for outputs.

When an update fails, the pipeline UI shows which dataset (table) and flow failed, the error message with the failing line of source code, and the stage, so you do not trace notebook dependencies by hand. The same errors are in the event log.

Module 17 · Video 6:49:58 Jobs Monitoring and Visualization Exam §4, 16% New exam: control flow, triggers

Lakeflow Jobs, monitoring and dashboards

Lakeflow Jobs (formerly Workflows) orchestrate everything: notebooks, SQL, pipelines, dashboards. The video spends six minutes here; the exam gives it 16%, so this module goes deep.

Jobs, tasks, and the DAG

A job contains one or more tasks. Each task has a task key, a type, compute, and optional dependencies (depends_on) on other tasks. Together they form a DAG (directed acyclic graph) shown in the Tasks tab. Tasks without dependencies between them run in parallel.

Task types

Task typeRuns
NotebookA notebook from the workspace or a Git provider, with parameters
Python script, Python wheel, JAR, Spark SubmitCode packages
SQLA SQL query, SQL file, alert, or legacy dashboard on a SQL warehouse
PipelineAn update of a Lakeflow Declarative Pipeline (optionally full refresh)
DashboardRefresh an AI/BI dashboard and optionally send it to subscribers
dbtdbt commands
Run JobTrigger another job (modular orchestration)
If/else conditionBranching on a boolean expression
For eachLooping: runs a nested task once per item of a list

Compute per task: serverless jobs compute, a shared job cluster (reused by several tasks in the same run), or an existing all-purpose cluster (not recommended for production). SQL tasks use a SQL warehouse.

Control flow New exam

Run if dependencies

Each task has a Run if condition evaluated on its upstream tasks:

Run ifTask runs when
All succeeded (default)Every dependency succeeded
At least one succeededOne or more dependencies succeeded
None failedNo dependency failed (succeeded or skipped/excluded)
All doneAll dependencies finished, whatever the result (use for cleanup)
At least one failedOne or more dependencies failed (use for alerting or fallback)
All failedEvery dependency failed

Branching with If/else

An If/else condition task compares two operands with ==, !=, >, >=, <, <=. Operands can be literals, job parameters, or task values from an upstream task. Downstream tasks depend on the true or false outcome.

# In upstream task "validate":
dbutils.jobs.taskValues.set(key="row_count", value=df.count())
# If/else condition: {{tasks.validate.values.row_count}} > 0
# In a downstream task:
n = dbutils.jobs.taskValues.get(taskKey="validate", key="row_count", default=0)

Looping with For each

A For each task iterates over a JSON array (literal, job parameter, or task value) and runs one nested task per item, with configurable concurrency. Each iteration gets the item as {{input}}. Example: ingest the same way for a list of 20 countries.

Retries, timeouts and thresholds

  • Retries: per task, number of retries, minimum interval between attempts, and whether to retry on timeout. Use for transient failures (network, Auto Loader schema evolution restarts).
  • Timeout: maximum task duration. When exceeded the run is stopped with status Timed Out. The official sample question: a task times out at 45 minutes but needs about 60, so raise the task run duration threshold (timeout).
  • Duration warning threshold: sends a notification when a task runs longer than expected, without stopping it.
  • Streaming backlog thresholds for streaming tasks.

Parameters

Job parameters are key/value pairs applied to all tasks (override per run with "Run now with different parameters"). Dynamic value references inject run context: {{job.id}}, {{job.run_id}}, {{job.start_time.iso_date}}, {{tasks.<key>.values.<name>}}, {{job.trigger.type}}. Notebook tasks read them with dbutils.widgets.get.

Triggers and schedules New exam

TriggerStarts a runGood for
ScheduledOn a time schedule (simple interval or Quartz cron syntax with time zone)Data that arrives at known times; daily reports
File arrivalWhen new files land in a Unity Catalog external location or volume path. Checks about every minute; optional minimum time between triggers and wait-after-last-change.Unpredictable file drops; no idle compute, no empty runs
Table updateWhen one or more Unity Catalog tables are updated (any or all of them)Run downstream processing when upstream data changes, across teams or pipelines
ContinuousAlways keeps one run active; a new run starts when the previous endsStreaming jobs that must always run
Manual / API"Run now", databricks jobs run-now, REST API, Run Job taskAd hoc, external orchestrators (e.g. Airflow)
Time-based vs data-driven

Choose time-based (scheduled) when data availability is predictable or the business needs output at a fixed time. Choose data-driven (file arrival, table update) when data arrives irregularly or a job depends on another team's table: it saves compute and reduces latency. The official sample: vendor uploads at unpredictable intervals, process soon after landing, no cost while idle, no empty runs: file arrival trigger. Polling every 5 minutes wastes runs; continuous keeps compute up.

Other job settings: maximum concurrent runs (default 1; extra triggers are skipped or queued when queueing is enabled), notifications on start, success, failure, duration warning (email, Slack, Teams, webhooks), Run as (user or service principal), tags, permissions (Can View, Can Manage Run, Is Owner, Can Manage).

Monitoring jobs

  • Runs tab: list of runs with status, start time, duration, trigger. The matrix view shows each task's status and duration across recent runs, so you can spot a task getting slower or failing often.
  • Run details: the DAG with each task colored by status; click a task for output, logs, Spark UI, and error message. An upstream failure shows downstream tasks as Upstream failed (or Skipped).
  • Statuses: Pending, Queued, Running, Succeeded, Failed, Timed Out, Canceled, Skipped, Upstream failed, Excluded, Succeeded with failures.
  • Repair run: rerun only the failed and skipped tasks (and their dependents) of a failed run, keeping successful task results. Saves time and cost.
  • Jobs monitoring page and the system.lakeflow system tables (jobs, job_run_timeline, job_task_run_timeline) give history for trend analysis: compare current run duration against the historical baseline.

Visualization: AI/BI dashboards, alerts, Genie

  • AI/BI dashboards (formerly Lakeview): datasets from SQL queries, visual widgets, filters and parameters, scheduled refresh and email subscriptions, publish with embedded or viewer credentials. Can be refreshed by a Dashboard task in a job.
  • Notebook visualizations: charts from display() output.
  • SQL alerts: run a query on a schedule and notify when a condition is met (e.g. error count > 0). Can be a SQL task in a job.
  • Genie spaces: natural-language questions over curated tables for business users.
Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Trigger and notification details

  • A job has one trigger at a time (scheduled, file arrival, table update or continuous). To switch type, edit or delete the existing trigger. A trigger can be Active or Paused.
  • The schedule editor has Simple and Advanced (cron) modes, uses 24-hour time, and defaults to UTC: set the time zone explicitly.
  • Retries default to none; you set the number of attempts and the wait between them.
  • Email notifications work out of the box. Slack, Microsoft Teams, PagerDuty and webhooks need a notification destination created first by a workspace admin (Settings, Notifications, Manage destinations).
  • The notebook Schedule button is a shortcut that creates a single-task job.

Retry defaults and details

  • For most job configurations the default is no retry on task failure. Serverless jobs automatically optimize retries by default.
  • The retry interval is set in milliseconds, measured from the start of the failed run to the start of the retry.
  • If a task has both a timeout and retries, the timeout applies to each attempt.

Cron in Databricks is Quartz cron

Quartz cron has a seconds field first: seconds minutes hours day-of-month month day-of-week, and one of day-of-month or day-of-week must be ?. Every day at 2:30 a.m.: 0 30 2 * * ? (Unix cron would be 30 2 * * *). Always set the time zone.

Diagnosing failures

In a failed task run or notebook cell, Diagnose error asks Databricks Assistant to explain the error and suggest a fix. Then fix the code and use Repair run.

SQL alerts and dashboard schedules

  • SQL alert: a query, a trigger condition on a value (for example error_count > 0), a schedule, and destinations (email, Slack, webhooks). You can also notify when the condition returns to normal.
  • Visualizations: in the SQL editor, under the results, add a Visualization (bar, line, pie, scatter, map, counter...) and customize axes, colors and series; add it to a dashboard.
  • Dashboard schedule: Schedule, Add schedule: frequency (for example every 4 hours), start time, time zone, the SQL warehouse that runs the refresh, filter behavior (default or saved filters), and optional subscribers who receive an email snapshot.
Module 18 · Not a video chapter Exam §6, 10% New exam

Troubleshooting, monitoring and optimization

An entire exam section that the video does not have a chapter for. It covers reading the Spark UI, fixing skew, shuffle and spill, liquid clustering, predictive optimization, and common failures.

Reading the Spark UI

Open it from a cluster (Spark UI tab), from a job task run, or from a notebook cell's "Spark Jobs" link. For SQL warehouses and serverless, use the query profile, which shows the same information as an operator graph.

TabShows
JobsOne entry per action; duration; stages
StagesPer stage: duration, input, output, shuffle read/write, spill (memory/disk), and the task summary metrics (Min, 25th percentile, Median, 75th percentile, Max) for duration, GC time, shuffle read size, spill
SQL / DataFrameThe physical plan as a graph with rows and time per operator, join strategy (BroadcastHashJoin vs SortMergeJoin), AQE changes
ExecutorsMemory use, GC time, failed tasks per executor; driver and executor logs
StorageCached DataFrames
Structured StreamingInput rate, processing rate, batch duration

The three classic bottlenecks

Data skew

Symptom: in a stage, most tasks finish fast but one or a few take far longer. Task summary shows Max duration or shuffle read far above the Median (e.g. median 400 MB, max 5 GB). Cause: one key value (a "hot key", or null) holds most rows.

Fixes:

  • AQE skew join handling (spark.sql.adaptive.skewJoin.enabled, on by default) splits skewed partitions, but only for joins (sort-merge and shuffle-hash), not for groupBy aggregations.
  • Salting: add a random suffix to the key so one hot key spreads over N tasks, aggregate on (key, salt), then aggregate again on the key. This is the official sample answer for a skewed groupBy.
  • Broadcast the small side of a join, filter out or handle null keys separately, use skew hints.
  • Adding executors does not help: the one huge task still runs alone. Lowering shuffle partitions makes partitions bigger and makes it worse.
salted = df.withColumn("salt", (F.rand() * 16).cast("int"))
partial = salted.groupBy("customer_id", "salt").agg(F.sum("amount").alias("s"))
result  = partial.groupBy("customer_id").agg(F.sum("s").alias("amount"))

Shuffle

Symptom: large shuffle read/write in stage metrics; stage boundaries at joins and aggregations; long network time. Fixes: filter and select columns early, broadcast small tables, avoid unnecessary distinct/orderBy/repartition, tune spark.sql.shuffle.partitions (or rely on AQE coalescing), cluster tables on join keys.

Disk spill

Symptom: "Spill (Memory)" and "Spill (Disk)" non-zero in stage metrics; slow tasks. Spark ran out of execution memory and wrote intermediate data to disk. Fixes: more partitions so each is smaller (raise shuffle partitions), memory-optimized or larger nodes, fix skew, reduce data before wide operations.

Small files

Many tiny files slow reads (file listing and opening overhead). Fixes: OPTIMIZE, auto compaction and optimized writes, predictive optimization, avoid over-partitioning.

Liquid clustering

  • Declared with CLUSTER BY (cols) at create time or with ALTER TABLE ... CLUSTER BY. Up to 4 clustering keys.
  • Replaces Hive-style partitioning and Z-order. Cannot be combined with PARTITIONED BY or ZORDER.
  • Keys can be changed at any time without rewriting existing data; new layout applies to newly clustered data.
  • Incremental: OPTIMIZE only clusters data that needs it. OPTIMIZE FULL reclusters all records.
  • Good for: high-cardinality filter columns, skewed distributions, fast-growing tables, changing access patterns, concurrent writes (row-level concurrency).
  • Automatic liquid clustering: CLUSTER BY AUTO on Unity Catalog managed tables; Databricks chooses and adapts keys based on query history. Requires predictive optimization.

Predictive optimization

  • Automatically runs OPTIMIZE, VACUUM and ANALYZE (statistics) on Unity Catalog managed tables when Databricks predicts it is worthwhile.
  • Runs on serverless compute; no scheduling or tuning by you. Enabled by default for newer accounts; can be enabled or disabled at account, catalog or schema level (ALTER CATALOG c ENABLE PREDICTIVE OPTIMIZATION).
  • Does not apply to external tables. History is in system.storage.predictive_optimization_operations_history.

Common failures and fixes

ProblemTypical causesFixes
Cluster fails to startCloud quota or capacity (instance type unavailable in region), spot capacity, a failing init script, networking (VPC, firewall, subnet IPs exhausted), policy or permission restrictions, incompatible library installRead the cluster event log and termination reason; check init script logs; choose another instance type or zone; raise cloud quotas; fix network; use pools; try serverless
Library conflictsA library version incompatible with the runtime's built-in version, or two libraries needing different versions of a dependency; cluster libraries and notebook %pip clashingPin versions; use notebook-scoped %pip and dbutils.library.restartPython(); pick a runtime that already includes the library; use serverless environments with explicit dependencies; check "Libraries" tab status
Driver out of memorycollect() or toPandas() on large data, very large broadcast, too many small tasks, heavy driver-side PythonAvoid collecting; write results to tables; lower broadcast threshold; larger driver
Executor out of memorySkewed or very large partitions, big joins, wide rows, too few partitionsMore shuffle partitions, fix skew, memory-optimized workers, avoid UDFs that hold large objects
Job slower than usualData volume growth, skew from a new source, small files, a changed planCompare with run history baseline; Spark UI stage metrics; OPTIMIZE; clustering
Exam pattern

Questions describe metrics and ask for the diagnosis or fix. Map: one slow task with huge max shuffle read = skew (salt it). Non-zero disk spill = memory pressure (more partitions or memory). Large shuffle bytes = shuffle (broadcast, filter early). Driver OOM after collect() = do not collect.

Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

QuotaExceeded on cluster start (for example "current usage 0, additional required 4" cores for a VM family): the cloud subscription has no vCPU quota for that instance family in that region. Fix by requesting a quota increase from the cloud provider, picking another instance type or region, or retrying later if it is a capacity issue.

Module 19 · Video 6:55:54 Unity Catalog Exam §1, §7

Unity Catalog

Databricks' governance layer: one place to manage access, audit, lineage and discovery for data and AI assets across all workspaces.

What Unity Catalog provides

  • Define once, secure everywhere: permissions apply in every workspace attached to the metastore.
  • Standard SQL access control (GRANT/REVOKE), row filters, column masks, ABAC policies.
  • Auditing of access (system tables system.access.audit).
  • Lineage at table and column level, captured automatically for queries run on Databricks (shown in Catalog Explorer and system.access.table_lineage / column_lineage).
  • Discovery: search, comments, tags, AI-generated documentation.
  • Data sharing with Delta Sharing; federation of external databases.

The object hierarchy

Metastore (one per region; top-level container)
 ├── Catalog                     e.g. dev, prod, main
 │    └── Schema (database)      e.g. sales
 │         ├── Table (managed / external)
 │         ├── View, Materialized view, Streaming table
 │         ├── Volume (managed / external) for files
 │         ├── Function (UDF)
 │         └── Model (registered ML model)
 ├── Storage credential          cloud identity (IAM role, managed identity, service account)
 ├── External location           storage path + storage credential
 ├── Connection                  credentials for an external system (federation, Lakeflow Connect)
 ├── Share / Recipient / Provider   Delta Sharing

Reference objects as catalog.schema.object. A common pattern is one catalog per environment (dev, test, prod) or per business domain.

Storage: credentials, external locations, managed storage

  • A storage credential wraps a cloud identity that can access storage.
  • An external location = a cloud path + a storage credential. It governs who can read or create tables and volumes under that path (READ FILES, WRITE FILES, CREATE EXTERNAL TABLE, CREATE EXTERNAL VOLUME).
  • Managed storage location can be set at metastore, catalog or schema level; managed tables and volumes go to the most specific one.
CREATE EXTERNAL LOCATION finance_raw URL 's3://acme-finance/raw'
  WITH (STORAGE CREDENTIAL finance_cred);
CREATE CATALOG finance MANAGED LOCATION 's3://acme-finance/managed';

Managed vs external tables: operations New exam

-- create
CREATE TABLE prod.sales.orders (id BIGINT, amount DECIMAL(10,2));                     -- managed
CREATE TABLE prod.sales.orders_ext (id BIGINT, amount DECIMAL(10,2))
  LOCATION 's3://acme-finance/raw/orders';                                         -- external

-- inspect
DESCRIBE TABLE EXTENDED prod.sales.orders_ext;     -- Type: EXTERNAL, Location: s3://...

-- modify
ALTER TABLE prod.sales.orders ADD COLUMNS (channel STRING);
ALTER TABLE prod.sales.orders RENAME TO prod.sales.orders_v2;
ALTER TABLE prod.sales.orders_v2 SET OWNER TO `data-eng`;

-- delete and recover
DROP TABLE prod.sales.orders_v2;   -- managed: data deleted after 7 days
UNDROP TABLE prod.sales.orders_v2; -- managed only, within 7 days
DROP TABLE prod.sales.orders_ext;  -- external: metadata only, files stay

-- convert external to managed (newer runtimes)
ALTER TABLE prod.sales.orders_ext SET MANAGED;
-- roll back that conversion (within 14 days)
ALTER TABLE prod.sales.orders_ext UNSET MANAGED;
Conversion facts from the official sample

SET MANAGED moves the table's data into managed storage and keeps history. To undo it, use ALTER TABLE ... UNSET MANAGED, which points the table back to its original external location. It is available for 14 days after conversion. RESTORE TABLE ... VERSION AS OF restores data versions, not the table type.

Converting managed to external has no single command: create an external table from the data (for example CREATE TABLE ... LOCATION ... AS SELECT or DEEP CLONE to a location), then swap names.

Volumes

CREATE VOLUME prod.raw.landing;                                         -- managed volume
CREATE EXTERNAL VOLUME prod.raw.vendor LOCATION 's3://acme-finance/raw/vendor';
-- path: /Volumes/prod/raw/landing/...
GRANT READ VOLUME, WRITE VOLUME ON VOLUME prod.raw.landing TO `data-eng`;

Identities

  • Users (people), groups (sets of users and other groups), service principals (identities for automation such as CI/CD and production jobs).
  • Manage them at the account level (often synced from an identity provider via SCIM) and assign them to workspaces.
  • Best practice: grant privileges to groups, not individuals; run production jobs as service principals.

Admin roles

  • Account admin: manages the account, metastores, identities.
  • Metastore admin (optional): manages privileges and ownership across the metastore.
  • Workspace admin: manages the workspace, its users, compute and settings.
  • Object owner: every securable has an owner (user, service principal or group) with all privileges on it and the right to grant them.

Other Unity Catalog features

  • Delta Sharing: share tables, views, volumes, models with other organizations (open protocol) or Databricks accounts, without copying data. Objects: share, recipient, provider.
  • Lakehouse Federation: a connection plus a foreign catalog lets you query MySQL, PostgreSQL, Snowflake and others in place, governed by Unity Catalog.
  • System tables in the system catalog: audit, billing, lineage, compute, jobs, query history.
  • Tags on catalogs, schemas, tables, columns; governed tags drive ABAC policies (Module 20).
  • Workspace-catalog binding: limit a catalog to specific workspaces (e.g. prod catalog only in prod workspace).
Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Creating a catalog in the UI

Catalog typeHolds
StandardYour own schemas, tables, views, volumes, with managed storage
ForeignA mirror of an external database through a connection (Lakehouse Federation)
SharedData received from a provider through Delta Sharing

For a standard catalog you pick a managed storage location (an external location) or, where enabled, default storage managed by Databricks, which is reachable only from the workspace that created it. The wizard then sets workspace access (binding), permissions and tags.

Connecting your own S3 bucket (AWS)

  1. Easy path (recommended): Catalog, External data, External locations, Create external location, AWS Quick Start. Give the bucket name and a personal access token; an AWS CloudFormation stack creates the IAM role, the storage credential and the external location for you.
  2. Manual path: create an IAM role whose trust policy lets the Databricks Unity Catalog role assume it, with an external ID condition; attach an IAM policy granting S3 access on the bucket (plus a file events policy if you want managed file events); create a storage credential in Catalog, External data, Credentials using the role ARN; copy its external ID into the trust policy and make the role self-assuming; click Validate configuration; then create the external location.
  • Storage credential grants access to cloud storage; a service credential grants access to other cloud services (called from code). Instance profiles are the legacy compute-level alternative.
  • A storage credential can be marked read-only; write permissions in the IAM policy are then ignored.
  • Validating a credential requires being its owner, a metastore admin, or holding CREATE EXTERNAL LOCATION.
  • External locations cannot overlap: two locations cannot cover the same or nested paths.
  • Credentials and external locations can be bound to specific workspaces, like catalogs.
  • Keep the bucket in the same region as the metastore to avoid egress cost and latency, and avoid dots in S3 bucket names.
  • An external location page has a Browse tab and a test that checks read, write, list and delete access.
  • New workspaces are Unity Catalog enabled by default. Check in the account console (Workspaces, Metastore column) or with SELECT CURRENT_METASTORE();.
CREATE EXTERNAL LOCATION IF NOT EXISTS landing
  URL 's3://acme-landing/'
  WITH (STORAGE CREDENTIAL acme_cred)
  COMMENT 'Raw landing zone';
GRANT READ FILES ON EXTERNAL LOCATION landing TO `data-eng`;

Square brackets in the docs syntax mean "optional": do not type them.

Querying the audit log

SELECT event_time, user_identity.email, service_name, action_name
FROM system.access.audit
ORDER BY event_time DESC
LIMIT 100;
Legacy access patterns

Mounting buckets to DBFS and hard-coding access keys are legacy. With Unity Catalog, cloud storage is reached through storage credentials and external locations (or volumes), and grants such as READ FILES control access.

Lineage details

  • Captured at runtime for queries in all supported languages (SQL, Python, Scala, R), down to column level.
  • Visible in all workspaces attached to the same metastore.
  • View it in Catalog Explorer (Lineage tab), query it in system tables, or fetch it with the REST API. Lineage data is retained for 1 year.

Service principal roles

  • Service Principal Manager: manages the roles on a service principal (the creator and account admins have it).
  • Service Principal User: lets a user or group run jobs as the service principal (needed to set a job's Run as to it). Workspace admins assign service principals to workspaces.
  • Service principals can be added to groups, granted Unity Catalog privileges, and given admin roles.
CREATE CATALOG finance;
GRANT ALL PRIVILEGES ON CATALOG finance TO `finance-engineers`;
ALTER CATALOG finance OWNER TO `finance-admins`;   -- ownership is separate from ALL PRIVILEGES
Module 20 · Video 7:06:41 Access Control Exam §7, 15% New exam: ABAC

Access control

How to grant and remove access with SQL and the UI, how privileges inherit, and how to restrict rows and columns.

Privilege model

  • Privileges are granted on a securable (catalog, schema, table, volume, function, external location...) to a principal (user, group, service principal).
  • Privileges inherit downward: SELECT granted on a catalog applies to all current and future tables in all its schemas.
  • To use an object you also need access to its parents: USE CATALOG on the catalog and USE SCHEMA on the schema.
  • Owners and metastore admins can grant. Users with MANAGE on an object can grant on it too.
Minimum privileges to read a table

USE CATALOG on the catalog + USE SCHEMA on the schema + SELECT on the table (or on the schema/catalog). Missing USE CATALOG is the classic reason a user with SELECT still gets "permission denied".

Common privileges

PrivilegeAllows
USE CATALOG, USE SCHEMATraverse into the catalog/schema (no data access by itself)
BROWSESee object metadata in Catalog Explorer and search without data access
SELECTRead a table or view
MODIFYInsert, update, delete, merge data in a table
CREATE SCHEMA, CREATE TABLE, CREATE VOLUME, CREATE FUNCTION, CREATE MATERIALIZED VIEWCreate child objects
READ VOLUME, WRITE VOLUMERead or write files in a volume
EXECUTECall a function or use a model
REFRESHRefresh a materialized view or streaming table
MANAGEManage privileges and ownership on the object without owning it
ALL PRIVILEGESAll applicable privileges (except MANAGE-type admin rights)
READ FILES, WRITE FILES, CREATE EXTERNAL TABLEOn external locations

GRANT, REVOKE, SHOW GRANTS

GRANT USE CATALOG ON CATALOG prod TO `analysts`;
GRANT USE SCHEMA, SELECT ON SCHEMA prod.sales TO `analysts`;
GRANT MODIFY ON TABLE prod.sales.orders TO `etl-sp`;          -- service principal (by application ID or name)
GRANT CREATE TABLE ON SCHEMA prod.sales TO `data-eng`;
REVOKE SELECT ON SCHEMA prod.sales FROM `analysts`;
SHOW GRANTS ON TABLE prod.sales.orders;
SHOW GRANTS `analysts` ON SCHEMA prod.sales;
ALTER TABLE prod.sales.orders SET OWNER TO `data-eng`;

Principals with special characters (hyphens, @) are quoted in backticks. In the UI: Catalog Explorer, select the object, Permissions tab, Grant.

What about DENY?

Read this carefully

The exam guide lists GRANT, REVOKE and DENY. In Unity Catalog, the documented model is grant-only: there is no DENY statement, and access is removed by REVOKE or by not granting it. DENY exists in the legacy Hive metastore table access control (the hive_metastore catalog), where an explicit deny overrides grants. Fine-grained restriction in Unity Catalog uses row filters, column masks and ABAC policies. The official sample question offers "set a DENY permission on the column" as a wrong answer for masking. I could not confirm whether Databricks has added a Unity Catalog DENY since; check the current Manage privileges documentation before your exam.

Row filters and column masks

Both are SQL UDFs attached to a table. They run on every query, for every user, so one table serves everyone with different visibility. Membership checks use is_account_group_member('group') (account-level groups). current_user() returns the user's email.

-- Row filter: admins see all rows, others only US rows
CREATE FUNCTION prod.sec.us_only(region STRING)
RETURN IF(is_account_group_member('admins'), TRUE, region = 'US');
ALTER TABLE prod.sales.orders SET ROW FILTER prod.sec.us_only ON (region);
ALTER TABLE prod.sales.orders DROP ROW FILTER;

-- Column mask: only finance_team sees full card numbers
CREATE FUNCTION prod.sec.mask_card(card STRING)
RETURN CASE WHEN is_account_group_member('finance_team') THEN card
            ELSE concat('****-****-****-', right(card, 4)) END;
ALTER TABLE prod.sales.payments ALTER COLUMN credit_card_number SET MASK prod.sec.mask_card;
ALTER TABLE prod.sales.payments ALTER COLUMN credit_card_number DROP MASK;

Older alternative: dynamic views, a view with CASE WHEN is_account_group_member(...) logic, granting users access to the view only.

ABAC policies New exam

Attribute-based access control scales row filters and column masks. Instead of attaching a function to each table, you:

  1. Tag data with governed tags (e.g. column tag pii = ssn, table tag sensitivity = high). Governed tags have controlled allowed values and who may assign them.
  2. Write a policy once at the catalog, schema or table level that says: for these principals (except these), on tables/columns matching these tag conditions, apply this row filter or column mask function.
  3. Every current and future table matching the tags is protected automatically, inherited down the hierarchy.
-- illustrative syntax; check the docs for the exact form
CREATE POLICY mask_ssn
ON CATALOG prod
COLUMN MASK prod.sec.mask_ssn
TO `account users` EXCEPT `hr_admins`
FOR TABLES
MATCH COLUMNS has_tag_value('pii', 'ssn') AS ssn_col
ON COLUMN ssn_col;
Table-level row filter / column maskABAC policy
Applied toOne table/column at a timeAll matching objects under a catalog/schema, by tags
New tablesMust be protected manuallyProtected automatically once tagged
Best forA few specific tablesCentral, scalable governance of sensitive data

Other access controls

  • Workspace object ACLs: notebooks and folders (Can Read, Can Run, Can Edit, Can Manage), clusters, jobs, pipelines, SQL warehouses (Can Use, Can Manage), dashboards.
  • Secret scope ACLs: READ, WRITE, MANAGE.
  • Entitlements: workspace access, Databricks SQL access, cluster creation.
Added after the transcript audit

From the video: extra details

Everything below comes from points the video makes that the first version of this module did not cover. See the Video coverage map for timestamps.

Three access control systems

LevelObjectsSystem
AccountUsers, groups, service principals, workspacesAccount roles (account admin, service principal manager/user...), apply across all workspaces
WorkspaceNotebooks, folders, clusters, jobs, SQL warehouses, dashboardsWorkspace object ACLs (Can View, Can Run, Can Edit, Can Manage...)
DataCatalogs, schemas, tables, views, volumes, functions, modelsUnity Catalog privileges (GRANT / REVOKE)
No INSERT, UPDATE or DELETE privilege

Some slides list INSERT, UPDATE and DELETE as Unity Catalog privileges. They are not: one MODIFY privilege covers insert, update, delete and merge.

Module 21 · Final check

Final mock exam

30 questions across all seven sections, weighted roughly like the real exam. The first ten are the official sample questions from the Databricks exam guide. Aim for 70% or more. In the real exam you have about two minutes per question.

Last-day cheat sheet

TopicRemember
ComputeAnalysts and BI: serverless SQL warehouse. Scheduled ETL: job compute or serverless. Interactive dev: all-purpose. Standard access mode = shared, UC-enabled.
DeltaLog = truth. VERSION AS OF, RESTORE, DESCRIBE HISTORY. VACUUM default 7 days. OPTIMIZE for small files.
IngestionAuto Loader = cloudFiles, schemaLocation, exactly once, millions of files. COPY INTO = SQL, idempotent, thousands of files. Managed connectors for SaaS and databases.
Schema evolutionaddNewColumns fails then restarts with the new column; rescue puts it in _rescued_data.
StreamingCheckpoint per stream. availableNow = incremental batch then stop. Output modes append, complete, update.
PipelinesEXPECT warn; DROP ROW; FAIL UPDATE. Streaming table for append ingestion; MV for aggregates. AUTO CDC for SCD 1/2.
JobsRun if options; If/else; For each; retries; timeout; file arrival vs table update vs scheduled vs continuous; repair run.
CI/CDGit folders for branches/commits/PRs. Bundles: databricks.yml, targets, ${var.x}, BUNDLE_VAR_x, bundle validate/deploy/run.
TroubleshootingMax ≫ median = skew (salt). Spill = memory. Collect = driver OOM. Liquid clustering replaces partitions and Z-order. Predictive optimization = auto OPTIMIZE/VACUUM/ANALYZE on managed tables.
GovernanceUSE CATALOG + USE SCHEMA + SELECT. Managed drop deletes data (UNDROP 7 days); external drop keeps files. SET/UNSET MANAGED. Masks and filters with is_account_group_member. ABAC = tags + policies.
Appendix · Proof of coverage

Video coverage map

Every item the video teaches, with its timestamp, and where it lives in this course. Built from a line-by-line audit of the full transcript (all 3,629 lines, 0:00 to 7:28:12).

How to read this

  • The Status column is the audit result against version 1 of the course. COVERED means it was already there. PARTIAL and MISSING mean it was incomplete or absent.
  • Every PARTIAL or MISSING item that teaches something has now been added in the "From the video: extra details" block at the end of the module named in the last column.
  • Deliberately not added: sign-up and billing click-paths, account upgrade steps, the presenter's tangents, and filler (marked "filler skipped"). Items marked "(non-exam)" or "(trivia)" are added only where they help understanding.
  • Where the video is wrong or outdated, each part ends with a flags list, and the course follows current Databricks behaviour.

Summary

Video partCovered in v1Partial in v1Missing in v1
Chapters 1 to 5 · Introduction, Data Basics, Data Models, Data Integrity, Data Sources (0:00 to 0:52)182527
Chapters 6 to 7 · Introduction to Databricks, Cluster Types (0:52 to 1:51)363738
Chapter 8 · Databricks Web Application (1:51 to 2:50)612432
Chapter 9 and Chapter 10 part 1 · Version Control, Delta Lake (2:51 to 4:02)172431
Chapter 10 part 2 · Delta Lake: time travel, OPTIMIZE, VACUUM, write commands (4:02 to 5:04)472015
Chapters 11 to 15 · DataFrame API, Tables and Views, SQL, File Formats, Streaming (5:04 to 5:44)312027
Chapter 16 · Auto Loader and S3 / Unity Catalog storage lab (5:44 to 6:44)312120
Chapters 17 to 20 · Delta Live Tables, Jobs Monitoring, Unity Catalog, Access Control, Databricks Connect, pools, Photon (6:44 to 7:28)552719
Total (703 counted items)296198209

Open each part to see the full table. The tables are long; use your browser's find (Ctrl+F) inside an open part to look up a term.

Chapters 1 to 5 · Introduction, Data Basics, Data Models, Data Integrity, Data Sources (0:00 to 0:52) 70 items

Transcript range read: line 1 ("Chapitre 1 : Introduction", 0:00) to line 419 (52:52, "drill down into these three types of abstractions."). Every line read.

Course checked: databricks-de-associate-course.html, modules m00 to m04 in detail, plus grep across all modules (m09, m11, m12, m14, m20 for cross-references).

Context: Chapters 2 to 5 are lectures recycled from Andrew Brown's Azure data fundamentals material. Azure service names (Azure SQL, Azure Data Lake, Synapse Analytics, Stream Analytics, HDInsight, Event Hubs, Cosmos DB, Power BI) appear as examples. These are generic data concepts, mostly outside the 2026 exam guide, but listed here exhaustively as the brief requires.

Status totals (70 items): COVERED 18, PARTIAL 25, MISSING 27. Filler lines are listed but not counted.

Chapter 1: Introduction (0:00 to 11:16)

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
0:00Course is for the Databricks Data Engineer Associate. Databricks presented as one of the easiest ways to work with data pipelines and learn data lakehouses; Apache Spark widely used in industry.COVEREDm00 lede, m05 "What Databricks is"
0:34 to 1:07ExamPro paid materials plug, instructor bio (AWS, Azure, GCP, Terraform, Kubernetes...).filler skipped
1:14Certification scope as stated: general Databricks knowledge, managing data, creating ETL workflows/jobs, governing security and quality of data, Apache Spark SQL knowledge.COVEREDm00 "The seven exam sections"
1:28Exam code heard as "PR000054" (caption, unverified; Andrew says it is not marketed and not a reliable freshness indicator). ExamPro's own course code: DBDEA.MISSINGTrivia, low value. Add a one-line note only (m00). Exam code could not be verified, flagged as such.
1:51Exam focuses on practical over conceptual knowledge; "you do see a lot of code examples during the exam" (SQL and PySpark).PARTIALm00 study plan says the exam "rewards people who have actually clicked through the UI" but does not say questions are code-heavy. Add exam tip.
2:07First Databricks course by Andrew; may be light on labs and lectures; says no other study course exists (his view).filler skippedOpinion about the video itself.
2:31Who should take it: need Databricks for work, want to learn data pipelines and management, never used a lakehouse. Says lakehouses on AWS/Azure/GCP are painful to set up, Databricks is "a breeze"; stepping stone to data engineering.MISSINGOpinion. Covered by the "instructor advice" snippet (m00).
3:04Good pairing: Snowflake. Databricks has "too many" certifications; recommends DE Associate then DE Professional, "the rest are not worth your time" (opinion).MISSINGOpinion. Snippet m00.
3:38Databricks "fundamentals accreditations" are not certifications, they are short courses; usable as supplements; Andrew found quality not very good.MISSINGSnippet m00.
4:01Disclaimer: certifications do not validate programming, technical diagramming, code management; learning Databricks does not make you a data engineer.MISSINGSnippet m00 (advice).
4:16Study time: about 20 h for beginners, 10 h if experienced, average 15 h. Split heard as "60% lecture labs" (hands-on: lots of SQL and PySpark). Pace: 1 to 2 hours per day for 14 days.MISSINGm00 study plan has no time estimate. Snippet m00.
4:32Method: watch lectures and memorize key info; do the hands-on labs; do the paid practice exams (Andrew: "absolutely stellar", fill gaps in the video).PARTIALm00 study plan covers read, quiz, Free Edition labs, mock exam. Practice exams are a commercial plug, not added.
4:43Lab caveat: many things the docs say you can do could not be done in his account; e.g. showing transactions required "contacting a rep". Labs kept in to show real behaviour.MISSINGUseful expectation-setting. Snippet m00.
5:54Delivery: same provider as Google Cloud, "Criterion" = Kryterion, via Webassessor. Online proctored; Kryterion uses AI-assisted proctoring plus humans ("more data points", do not cheat). Check-in not stressful, flexible.PARTIALm00 says "Online proctored or test center". Kryterion/Webassessor and AI proctoring missing. Snippet m00.
6:38Opinion on other providers: dislikes PSI Online, Pearson VUE "okay".MISSINGOpinion, irrelevant to Databricks (not delivered by them). No snippet needed beyond advice box.
6:46Domains as of the video (2025 exam guide): 1. Databricks Intelligence Platform 10% (general offerings); 2. Development and Ingestion (pipelines, jobs); 3. Data Processing and Transformations (PySpark, "knowing how to use RDD", general transformations, medallion architecture with three layers); 4. Productionizing Data Pipelines; 5. Data Governance and Quality (security features, masking). Only the 10% is spoken. The 2025 guide weights were, to my knowledge, 10 / 30 / 31 / 18 / 11 (verify against the archived guide).PARTIALm00 lists only the 2026 seven sections (6/21/22/16/10/10/15). No mapping from the video's five domains. Snippet m00 with mapping table. RDDs: course mentions them only in m10 tuning; RDDs are not an exam focus in 2026 (DataFrame API is).
7:30Each domain weighting determines question count. Passing grade 70%. "I believe it's scored out of 1,000 points but I don't think it says that."PARTIALm00 covers 70% as widely cited, not stated in guide. Scaled score claim is unverified (Databricks does not publish a 1,000-point scale); add note.
7:41Slide wrongly says "GCP" (copy error).filler skipped
7:5145 questions ("really low"). Can afford only 13 wrong. No penalty for wrong answers. Format: multiple choice only, no multiple select.PARTIALm00 covers 45 scored MCQ. Missing: 13 wrong allowed (32/45 = 71.1%, derived from 70%, not official), no penalty so answer every question, single-answer only. Snippet m00.
8:28Small pool: do practice exams (free and paid); should have had 55 to 60 questions (opinion).MISSINGOpinion; folded into advice snippet.
8:351.5 hours, so about 2 minutes per question; Andrew finished "incredibly fast", did not find it hard.COVEREDm00 (90 min), m21 lede ("about two minutes per question").
8:59Exam time 90 min; seat time 120 min (accept NDA, show workspace/room scan, review). Pad your calendar before and after.PARTIALm00 has 90 min. Seat time 120 min missing. Snippet m00.
9:12Valid 24 months (2 years).COVEREDm00 Validity row.
9:20Real talk: jobs also need programming, SQL, IT, networking, Linux, project management, developer tools, application development, CS algorithms.MISSINGAdvice. Snippet m00.
9:40Plug: freeCodeCamp, ExamPro subscription, boot camps.filler skipped
9:58 to 11:16OBS clipped last second of audio in about 75% of recordings; no content lost.filler skipped

Chapter 2: Data Basics (11:21 to 23:00)

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
11:25Overview list: data (units of information), data documents (abstract groupings), data sets ("unstructured logical grouping"), structured data, data types; loose concepts: batch vs streaming, relational vs non-relational, data modeling, schema vs schemaless, data integrity vs corruption, normalization vs denormalization.PARTIALm01 to m03 cover most; "data documents", schemaless, corruption missing (see below).
11:30Lecture explicitly says it covers "not necessarily Azure specific" knowledge "to use Azure data related services": recycled Azure material.MISSINGCourse does not warn that chapters 2 to 5 use Azure examples. Snippet m01 note.
12:42What is data: units of information as numbers, text, machine code, images, video, audio, or physical form (handwriting); examples image, binary, book, audio spectrum, formulas.COVEREDm01 "Data, information..." and "Three shapes of data".
13:31Data type: single unit of data that tells the compiler/interpreter how data is intended to be used; varies by programming language.PARTIALm01 lists Spark SQL types but no definition. Snippet m01.
13:48Numeric: integer (whole, negative or positive; ranges like int32, int64), float/decimal (e.g. 1.5, 0.0, negative). Python int and float example.PARTIALm01 has INT, BIGINT, DOUBLE, DECIMAL. Mapping int32 = INT, int64 = BIGINT and float vs decimal precision partly covered (m01 quiz). Snippet adds mapping.
14:25Text: character (single letter a-z, digit, blank space, punctuation, special char); string (sequence of characters: words, sentences, paragraphs).PARTIALm01 has STRING; CHAR/VARCHAR missing. Snippet m01.
14:54Composite: array (same data type, by index/position), hash = dictionary (key retrieves value; JSON object is basically a hash); composites overlap with data structures depending on language.COVEREDm01 ARRAY, MAP, STRUCT; m12 nested data.
15:50Binary: bits/bytes of 0 and 1 (Python bytes example).COVEREDm01 BINARY.
15:59Boolean: true/false; MySQL uses 0/1, PostgreSQL t/f, Python True.COVEREDm01 BOOLEAN (representation variants not needed).
16:30Enumerations (enums): group of constants (card suits; Python Enum "Shake" class: vanilla, chocolate, cookies, mint); often map to integers.MISSINGSpark SQL has no ENUM type. Snippet m01 one line.
17:15Schema: formal language describing structure of data, blueprint of a database. Objects: tables, fields, relationships, views, indexes, packages, procedures, functions, XML schemas, queues, triggers, types, sequences, materialized views, synonyms, database links, directories. Example: ExamPro Rails schema (Ruby DSL: create_table, indexes, columns, extensions).PARTIALm03 schema enforcement/evolution; m11 namespace. Generic definition missing. Snippet m01.
18:18Schemaless: still a schema, but the primary cell accepts many types; forgo upfront data modeling. Common schemaless DBs: key-value, document, columnar (sub-category wide-column), graph.MISSINGSnippet m01 (link to VARIANT, schema-on-read, Auto Loader rescued data).
19:09Data document: collective form data exists in. Types: data sets (logical grouping), databases (structured, quickly accessed/searched), data stores (unstructured/semi-structured), data warehouses (structured/semi-structured for reports and analytics), notebooks (pages for easy consumption). Examples: MNIST, Azure SQL, Azure Data Lake, Azure Synapse Analytics, Jupyter (or a handwritten notebook).PARTIALm01 storage systems table covers DB, warehouse, lake. "Data document" term and notebook-as-data-document missing (term is Andrew's own framing, low value). Snippet m01.
20:08Data set: logical grouping of closely related units sharing a structure. Having a data structure does not mean structured data: JSON, XML are semi-structured.PARTIALm01 "Three shapes" covers JSON/XML as semi-structured; data set definition missing. Snippet m01.
20:32 to 23:00Public datasets: MNIST (handwritten digits; classification, clustering, image processing, computer vision); COCO (Common Objects in Context, Microsoft involved, JSON COCO format, object segmentation, "329,000 images"); IMDb reviews (25,000 highly polar reviews, sentiment analysis, Pluto Nash example); Free Music Archive (100,000 tracks, 163 genres); LibriSpeech (1,000 hours English speech). Other sources: Crunchbase, Glassdoor, FBI, Google Trends, DataHub, WHO. Some paid, API, or scraped.MISSINGNot exam content. Snippet m01 adds Databricks' own sample data (samples catalog, /databricks-datasets) which is practically useful. Numbers quoted as said; published figures differ slightly (COCO about 330K images; FMA full set 106,574 tracks, 161 genres), unsure which subset he used.

Chapter 3: Data Models Processing (23:08 to 36:31)

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
23:08Query: request for data results (reads) or operations insert/update/delete (writes); can perform maintenance operations, not restricted to stored data (e.g. analysis commands).MISSINGCourse assumes it. Snippet m02 (with ANALYZE TABLE as the Databricks maintenance example).
23:45Data result: data returned from a query; usually tabular, could be JSON or XML.MISSINGSnippet m02.
24:03Querying: act of performing a query, sent via SDK, CLI, shell, API.MISSINGSnippet m02 (Databricks paths: SQL editor, notebooks, CLI, SQL Statement Execution API, JDBC/ODBC).
24:17Query language: scripting/programming language for submitting requests to a DB; notable: SQL, "GraphSQL" (GraphQL), custom languages.MISSINGSnippet m02.
24:53Batch: collection of data sent for processing; generally scheduled (e.g. every day at 1 p.m.) or queued ad hoc; not real time; ideal for very large workloads; generally more cost-efficient than streaming. Flow: batches to ETL engine to DB/warehouse/data store/lakehouse.PARTIALm02 batch row. Cost-efficiency and "not real time" trade-off missing. Snippet m02.
25:40Stream: process data as it arrives; producers send to a stream, consumers pull; stream looks like a pipeline and holds data for a period (retention), so multiple consumers can reuse it; minor operations may run in-stream; good for real-time analytics/processing; much more expensive than batch.PARTIALm02 streaming row, m14. Producer/consumer, retention, cost missing. Snippet m02.
26:26Azure mapping: sources to Azure Stream Analytics / HDInsight / Synapse to Power BI; stream: Event Hubs ("single topic streaming service") to Stream Analytics to Cosmos DB to Power BI. (Slide had Hadoop icon mixed up.)PARTIALm04 lists Event Hubs as a source. Databricks equivalent path missing. Snippet m02.
27:29Pivot table: table of statistics summarizing larger tables from DB, spreadsheet, BI tool; arranges/rearranges ("pivots") statistics; interactive report grouping by year/month/week/day with sum/average/min/max; Excel example (from ExcelJet); "pivot table" was formerly a Microsoft trademark, now generic.PARTIALm12 "PIVOT and set operations" has SQL PIVOT syntax. Concept explanation missing. Snippet m02.
29:06Table: logical grouping of rows and columns; tabular data (Excel sheet is tabular).COVEREDm01, m11.
29:22View: result set of a stored query, "stored in memory", temporary/virtual table.PARTIALm11 "Views" correctly says a view stores no data and is recomputed at each read. The video's "stored in memory" is imprecise; flagged. Snippet m02 clarifies.
29:37Materialized view: like a view but stored on disk.COVEREDm11 materialized view (precomputed, refreshed).
29:45Index: copy of data sorted by one or more columns for faster reads at the cost of storage; not all columns.PARTIALCourse has no "index" concept; m09 covers data skipping, Z-order, liquid clustering (Databricks' equivalent). Snippet m02 bridges.
30:07Constraints: rules applied to writes to ensure data integrity (example: no duplicate records).COVEREDm03 enforced constraints. Gotcha: Databricks does NOT enforce uniqueness (PK informational); course states this.
30:15Triggers: function fired on a database event (e.g. generate a UUID after insert).MISSINGDatabricks has no DML triggers. Snippet m02 (identity columns, uuid(), file arrival / table update triggers in Lakeflow Jobs m17).
30:31Primary key: one or more columns uniquely identifying a row, most commonly "id". Foreign key: column holding another table's PK, commonly other_table_id. Relationship: two tables referencing each other to join.COVEREDm03 Kinds of integrity (PK/FK, informational in UC).
31:11Relationships via FK referencing PK. Four types: one-to-one (monkey has a banana; country has a capital); one-to-many (store has many customers; book has many pages); many-to-many (project/tasks; book/authors); many-to-many through a join (junction) table (students and classes through enrollments; books and authors through a library).MISSINGSnippet m02.
32:44Row store vs column store. Row: traditional relational, general purpose, OLTP, great when needing all columns of a row, not best for analytics/massive data. Column: faster aggregation (count cities over millions of records), vast data (millions of records, TBs), OLAP, great when needing few columns. Video says column stores are "generally NoSQL stores or SQL-like databases".COVEREDm01 "OLTP vs OLAP", columnar note. Flags: video misspeaks "online analytical processing OLTP" (should be OLAP); "column stores are basically NoSQL" is outdated (Parquet/Delta, Databricks SQL, Snowflake, BigQuery are columnar SQL systems).
34:20Database index details: data structure storing redundant data in efficient logical order; ordered by one or more columns such as sort keys; common structure is the B-tree (balanced tree, not binary tree). Phone-book example (find numbers starting 344). Postgres: CREATE INDEX idx_name ON addresses (phone_number);.MISSINGSnippet m02 (Delta has no B-tree secondary indexes).
35:41Non-relational data: key-value (each value has a key, scales, simple lookups only); document (JSON-like document); columnar (table-like, stored by column; sometimes classed relational); graph (nodes and edges, relationships matter). Multi-model: Azure Cosmos DB, Amazon DynamoDB are key-value and document; documents are a subset of key-value.MISSINGSnippet m02.

Chapter 4: Data Integrity (36:40 to 43:17)

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
36:41Data integrity: maintenance and assurance of data accuracy and consistency over its entire life cycle; often a proxy term for data quality; data validation is only a prerequisite; goal: data recorded exactly as intended.COVEREDm03 lede and quality dimensions.
37:10Data corruption: opposite of integrity; data not in intended state, causing data loss or misinformation; occurs via unintended changes on read/write: hardware failure, human input error, malicious action, unforeseen side effects of code.MISSINGSnippet m03.
37:39How to ensure integrity: well-defined and documented data modeling; logical constraints; redundant copies and versions to compare and restore; human analysis; hash functions to detect tampering (MD5 checksum of downloads); principle of least privilege (limit actions per role).PARTIALm03 constraints; m09 time travel/RESTORE (versions); m20 access control (least privilege not named, grep 0 hits). Snippet m03 maps each to Databricks.
38:47Normalized vs denormalized. Normalized: non-redundant, consistent, integrity maintained, many tables, storage-optimized. Denormalized: combined for fast queries, integrity not guaranteed (extra work), redundancy common, fewer tables, more storage. Relational DBs can do both; NoSQL generally denormalized, faster at scale.PARTIALm02 Normalization paragraph (1NF to 3NF, OLTP vs analytics). Side-by-side trade-offs missing. Snippet m03.
40:09Data consistency when data is kept in two places. Strongly consistent: every read returns consistent (latest) data within a defined time X (e.g. 10 ms, 100 ms, 1 s); never stale but you wait. Eventually consistent: read may return stale data within a window (e.g. 2 s) but is faster; up to date if you wait. Choice depends on tolerance for stale data.MISSINGSnippet m03 (Delta snapshot isolation; S3 strong consistency since Dec 2020).
41:30Synchronous vs asynchronous transfer/replication. Sync: continuous stream synchronized by a timer clock, guaranteed sync time, access only once transfer completes, guaranteed consistency, slower (= strongly consistent). Async: stream separated by start/stop bits, no time guarantee, access anytime but may get older version or empty placeholder, faster, no consistency guarantee. Scenarios: standby backup DB that cannot lose data = synchronous; read replica for heavy analytics reports = asynchronous.MISSINGSnippet m03.

Chapter 5: Data Sources (43:26 to 52:52, end of slice)

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
43:26Data source: where data originates. Examples: data lake, warehouse, data store, database, on-demand API endpoint of a web app, flat files (Excel, spreadsheets). A connector links source to consumer: warehouse, ETL engine, data lake, BI tool.COVEREDm04 sources table.
44:03Extracting from sources: a BI tool connects to multiple sources; data pulled at report time, on a schedule, or streamed; mechanism varies per source.PARTIALm04 "Push vs pull". The three extraction timings (on demand, scheduled, streamed) not listed. Snippet m04.
44:39Data store: repository for persistently storing and managing unstructured or semi-structured data; very broad term, used interchangeably with database (database is technically a subset); can specialize in flat files, emails, databases, distributed storage, directory services.MISSINGSnippet m04.
45:29Database: data store for semi-structured and structured data; "more complex data store" requiring formal design and modeling. Relational (tables, rows, columns; row- or column-oriented) vs non-relational (semi-structured, may distantly resemble tables; columnar "floats in between"). Rich functionality: specialized query language (SQL), modeling strategies to optimize retrieval, control over transformations. "Database" usually implies relational row-oriented: MySQL, SQL Server, Postgres, MariaDB.PARTIALm01 storage systems (relational DB / OLTP row). Detail missing. Snippet m04.
46:53Data warehouse: relational (sometimes non-relational) store for analytic workloads, generally column-oriented; for TBs and millions of rows; performs aggregations (totals, averages); optimized around columns; designed to be "hot" (fast returns) yet infrequently accessed (reports once or twice a day or weekly, not real time); consumes data from relational DBs regularly via ETL; generally read-only (insert then read, not transactional).PARTIALm01 storage systems (OLAP, BI, proprietary). Hot/infrequent, read-only, ETL feed missing. Snippet m04.
48:36Data mart: subset of a data warehouse; generally under 100 GB; single business focus; lets teams/departments control their own data; generally read-only (pulled from main warehouse); increases access frequency and lowers query cost.MISSINGSnippet m04. 100 GB is a rule of thumb, not a standard.
49:33Data lake: centralized repository holding vast raw data (big data), semi-structured or unstructured; store without careful design ("hoarding for data scientists"); ETL back into the lake; used for BI visualizations, real-time analytics, ML, on-prem data; hard to use for BI reporting; poorly maintained becomes a data swamp.COVEREDm01 storage systems table ("data swamp").
50:38Data lakehouse: best of lake and warehouse. Vs warehouse: supports video, audio, text; data science and ML; streaming and ETL; many open-source formats; data resides in lake/blob store (warehouses use proprietary formats). Vs lake: good at BI, easier to set up and maintain, management features prevent swamps, more performant. Solution today: Delta Lake (a Databricks project, open source; Databricks offers managed version). Video says Azure has no lakehouse offering yet and that it may not be on "your exam".COVEREDm01 "The lakehouse idea", m05, m09. Flags: "Azure has no offering" is outdated (Azure Databricks; Microsoft Fabric lakehouse since 2023). Andrew calls it "Apache data lake ... I believe open source": Delta Lake is open source under the Linux Foundation, not an Apache project. The "not on your exam" remark is from the Azure course; the lakehouse is central to this exam.
52:09Data structure: data organized in a storage format enabling easy access and modification; can hold various data types. Degrees: unstructured (loose data, no organization, e.g. folder of files), semi-structured (browsable/searchable with limitations, e.g. XML), structured (easily browsed/searched, relational DB).COVEREDm01 "Three shapes of data".
52:52"Let's drill down into these three types": continues past slice end (line 419).n/aNext auditor's slice.

Outdated / wrong / contradiction flags

  1. Exam version (high impact). Video describes the 2025 guide: five domains (Platform 10%, Development and Ingestion, Data Processing and Transformations, Productionizing Data Pipelines, Data Governance and Quality). The current exam (published May 4, 2026, guide updated August 6, 2026, per course m00 link) has seven sections. Course m00 is correct for 2026 but lacks a mapping for learners who watch the video. The 2025 percentages beyond 10% (30/31/18/11) are from my knowledge of that guide, not spoken in the video: verify.
  2. "Scored out of 1,000 points" (7:37): Andrew himself was unsure. Not stated by Databricks. Do not rely on it.
  3. "13 wrong allowed": arithmetic from 45 questions and 70% (32/45 = 71.1%). The course notes 70% is not stated in the guide, and up to 10 unscored items may be present, so treat it as an estimate.
  4. Exam code "PR000054": caption text, could not be verified.
  5. Views "stored in memory" (29:29): imprecise. A standard view is a saved query recomputed on read (course m11 is correct). Temp views are session-scoped, not memory-stored tables.
  6. "Column store suited for OLTP" (34:04): misspoken; he says "online analytical processing" then the acronym OLTP. Correct: OLAP.
  7. Column stores "basically NoSQL" (33:50): outdated. Columnar formats (Parquet, Delta) and columnar SQL warehouses (Databricks SQL) are mainstream SQL systems.
  8. Indexes and triggers (29:45, 30:15, 34:20): generic RDBMS concepts. Delta Lake has no B-tree secondary indexes and no DML triggers; it uses file statistics/data skipping, Z-order, liquid clustering. Not contradicting the course, but learners could wrongly expect CREATE INDEX to work.
  9. Constraint "no duplicates" (30:15): Databricks does not enforce UNIQUE/PRIMARY KEY (informational only). Course m03 states this correctly.
  10. "Azure has no lakehouse offering" (50:46): outdated (Azure Databricks; Microsoft Fabric).
  11. Delta Lake "Apache" (51:44): Delta Lake is a Linux Foundation project, not Apache.
  12. Course m00 "How this course was built" says the transcript "could not be retrieved". Now that it has been audited, that sentence should be updated (suggested replacement below).
  13. RDDs (7:02): video lists "knowing how to use RDD" under transformations. The 2026 guide emphasises the DataFrame API and Spark SQL; RDD questions are unlikely. Course is consistent with 2026.
Chapters 6 to 7 · Introduction to Databricks, Cluster Types (0:52 to 1:51) 111 items

Course file: /home/bastien-youssfi/Documents/Training/databricks-de-associate-course.html

Relevant modules: m02 (medallion), m05 (Introduction to Databricks), m06 (Compute and cluster types), m07 (workspace UI), m18 (troubleshooting).

Filler skipped: music cues, greetings/sign-offs ("ciao", "see you in the next one"), MFA nag in Azure portal (57:11-57:33), Japanese-language console aside, CAPTCHA "count the rocks" (58:33), marketing opt-out, waiting for provisioning, lunch break, Outlook/Copilot aside (1:37:45), personal remarks about co-founder.

Chapter 6: Introduction to Databricks (0:52:58 to 1:19:24)

6.1 Databricks overview (slides)

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
0:52:59Databricks is a software company providing fully managed Apache Spark clustersCOVEREDm05 "What Databricks is"
0:52:59Founders created the open-source projects Apache Spark, Delta Lake and MLflowCOVEREDm05 "What Databricks is"
0:53:06Two main offerings: the Databricks platform and Databricks Community EditionPARTIALm05 mentions Community Edition only as "replaced by Free Edition"
0:53:14Platform features: easy web UI, launch fully managed Spark clusters, notebooks to write code, workspaces to collaborate, role-based access control (RBAC), jobs for ETL/analysis run immediately or on schedule, ML workflowsCOVEREDm05 core components, m07 sidebar, m17 jobs, m20 access control
0:53:30Available on AWS, Azure and GCPCOVEREDm05
0:53:37Community Edition: free, educational, a free micro cluster that terminates after 2 hours idle; no workspace, no jobs, no RBAC; a subset of the platformPARTIAL / OUTDATEDm05 says Free Edition replaced Community Edition. The 2-hour idle termination and the "no jobs/RBAC" limits are not in course and no longer relevant. OUTDATED: Community Edition was superseded by Databricks Free Edition (announced June 2025, serverless-only).
0:53:50Azure Databricks: partnership Microsoft + Databricks, Databricks platform inside the Azure portal on Azure computeMISSINGCourse never names Azure Databricks as a first-party Azure service
0:53:59Azure Databricks offered "two environments": Databricks workspaces (data engineering) and Databricks SQL AnalyticsMISSING / OUTDATED"SQL Analytics" is the old name of Databricks SQL (course m05 has Databricks SQL). Two-environment split is outdated; today SQL is a section of the same workspace.
0:54:06Azure integrations: batch via Azure Data Factory; streaming via Apache Kafka, Event Hubs, IoT Hub; storage via Azure Blob Storage, Azure Data Lake StoragePARTIALm04 lists Kafka and Azure Event Hubs; ADF, IoT Hub, Blob Storage not mentioned
0:54:21Databricks SQL (Analytics): run SQL on the data lake, multiple visualization types, build and share dashboardsCOVEREDm05 Databricks SQL row, m17 visualization
0:54:33Launching a workspace: create workspace, choose plan, launch, connect with SSOPARTIALm05 "Getting a workspace" only covers Free Edition
0:54:49Launching an empty workspace costs nothing; Community Edition = zero risk of spendPARTIALCourse notes Free Edition is free; "idle workspace costs nothing" not stated

6.2 Lab: sign up for the Databricks Data Intelligence Platform (trial)

TimestampItemStatusCourse location / gap note
0:55:31Free trial signup offers two paths: Express setup (Databricks manages account and cloud infrastructure) vs use an existing cloud account (for significant data volume or to manage compute/storage yourself)MISSINGNot in course (low exam relevance)
0:55:46Databricks can also be obtained inside each cloud: AWS Marketplace ("Databricks Data Intelligence Platform, deploy free trial"), Google Cloud Marketplace ("Databricks"), Azure portal ("Azure Databricks") with direct integrationsPARTIALm05 says it runs on all three clouds; marketplace entry points not covered
0:57:47Opinion: some best-in-class features exist only in the Databricks-native offering vs cloud-embedded one (presenter unsure)MISSINGUnverified claim; do not add
0:58:04Signup: work email recommended, account name = organization name, countryMISSINGTrivial, no add needed
0:59:10New trial shows a "Trial" panel with USD 40 of credit remaining; whole new UIMISSINGTrial credit amount varies; not exam content

6.3 Lab: Azure Databricks workspace and compute differences

TimestampItemStatusCourse location / gap note
0:59:39In the serverless (Express) premium account, Compute page only allowed a SQL warehouse (only one) and no "Create cluster" button; old UI had "New cluster / Create cluster"PARTIALm05 notes Free Edition lacks classic clusters; serverless-managed trial behaviour not explained
1:00:13Exam tip: the exam expects you to know cluster types even though serverless-only accounts do not show themCOVEREDm06 compute types table and exam pattern
1:00:46Azure Databricks create: resource group, workspace name, region (region affects feature availability), pricing tier, managed resource group name; deploy took about 5 minutesMISSINGNot in course
1:00:58Azure pricing tiers: Premium (role-based access controls), Trial (14 days of free DBUs), Standard (Apache Spark, secured with Microsoft Entra ID)MISSINGNo tiers in course. Note: on AWS/GCP current tiers are Premium and Enterprise; Azure Standard tier has been announced for retirement (exact dates unverified here, flag as unsure)
1:02:06Classic (cloud-linked) workspace shows "Create compute"; tabs All-purpose compute and SQL warehouses; a default "Pro" SQL warehouse exists; buttons "Create with Personal Compute", "Power User Compute"COVERED (partial)m06 compute types, SQL warehouse types (Pro); policy names missing (see 7.2)
1:02:34Create compute form shows runtime version dropdownCOVEREDm06 Databricks Runtime
1:03:17Presenter's choice: use SQL warehouse in the serverless account for most labs, classic compute only when neededMISSINGOpinion; no add

6.4 DBUs and DSUs

TimestampItemStatusCourse location / gap note
1:03:46DBU = Databricks Unit, unit of compute in the Databricks lakehouse; marketing pages price "per DBU"COVEREDm06 Cost model
1:04:02Opinion: hard to gauge real spend from DBU pricing until you run workloadsMISSINGOpinion, minor
1:04:18DSU = Databricks Storage Unit, a unit for Databricks-managed storage servicesMISSINGNot in course. Unsure: DSUs appear in Databricks pricing for managed/default storage on serverless; not exam content. Add as a one-liner.
1:04:26Track DBUs (and DSUs) in the account console usage page; "Consumption" page is legacy and shows total DBUs; no DSUs visible therePARTIALm06 mentions system.billing.usage only
1:04:41New usage dashboard (Databricks AI/BI dashboard) replaces the legacy consumption page, more robustMISSINGNot in course
1:05:17Default SQL warehouse = Serverless Starter Warehouse; edit page shows 12 DBUs per hour; sizes Medium to 4X-Large greyed out in this accountPARTIALm06 lists SQL warehouse sizes 2X-Small to 4X-Large; "Starter Warehouse" and DBU/h display missing. Note: 12 DBU/h matches the Small size on serverless (unsure of exact current rates; check pricing page). Larger sizes greyed out is a trial/account restriction.
1:05:36Account plans: Premium and Enterprise existMISSINGSee tiers addition

6.5 Budgets (slide)

TimestampItemStatusCourse location / gap note
1:06:15Budgets: cost management feature, set an amount threshold and receive an email when exceededMISSINGNot in course
1:06:36Budget fields: name, scope of workspaces (all or some), tags, threshold amount in USDMISSING
1:06:53Threshold percentage cannot be set, always 100%; alerts only by emailMISSING / UNSUREVideo-era limitation, may have changed; flag as unsure
1:07:09Budgets are alerting only (like cloud provider budgets), do not stop spendMISSINGPresenter implies; correct that Databricks budgets do not cap usage

6.6 Lab: usage tracking and budget

TimestampItemStatusCourse location / gap note
1:07:36Opinion: entry courses cover cost tracking but the exam does not test itMISSINGNote in addition
1:07:42Path: Manage account (account console) > Usage: Usage dashboard, Budgets (Preview), Consumption (legacy)MISSING
1:08:05Legacy Consumption page shows DBUs and dollars per periodMISSING
1:08:27Created budget: USD 100, all workspaces, multiple alert emails separated by commasMISSING
1:09:20Set up usage dashboard: choose workspace, account-level vs single-workspace usage, imports a dashboard into a workspaceMISSINGBuilt on system tables (system.billing.usage), which course mentions

6.7 Lab: upgrade free trial to premium

TimestampItemStatusCourse location / gap note
1:10:33Some features need a paid tier; upgrade via Settings > "Unlock account", add credit card; trial credits had run outMISSINGLow exam relevance
1:11:38After upgrade: "Welcome to Databricks Premium"MISSING
1:11:47Alternative: subscribe through a cloud marketplace so billing goes through AWS, Azure or GCPMISSING
1:12:10Proof of upgrade: account console now allows creating multiple workspacesPARTIALm05 says a company has several workspaces; not that this needs a paid account

6.8 Medallion architecture

TimestampItemStatusCourse location / gap note
1:12:29Medallion architecture, also called multi-hop architecture; a lakehouse architecture design pattern to logically organize data in layersPARTIALm02 "The medallion architecture"; synonym "multi-hop" missing (appears on exam)
1:12:47Named after medallions: bronze, silver, goldCOVEREDm02
1:13:03Inputs: batch and streaming data. Bronze = raw integration; silver = filtered, cleaned, augmented; gold = business-level aggregatesCOVEREDm02 table
1:13:19Each layer increases data quality and refinement for analytics, reporting, MLCOVEREDm02
1:13:27Diagram captions: bronze "landing zone for raw data, no schema needed"; silver "define structure, enforce schema, evolve schema as needed"; gold "deliver continuously updated clean data to downstream users and apps"PARTIALm02 lacks schema-on-bronze vs enforce-in-silver wording
1:13:52Bronze: raw data ingested from source systems in original form; often semi-structured or unclean; typically loaded via Auto Loader, Kafka or file formats; used for archiving, reprocessing and validation; often includes metadata like ingest timestampsPARTIALm02 has raw/append-only/metadata/Auto Loader; "archiving, reprocessing, validation" purpose missing
1:14:26Silver: transformed, filtered, standardized; cleaned, deduped, joined; business rules or filtering logic applied; easier to query and more performant than bronze; used by analysts' dashboards or ML pipelinesCOVEREDm02, m10 "Cleaning bronze into silver"
1:14:56Gold: aggregated or modeled for business users; KPI summaries, metrics for dashboards, reports, stakeholders; often dimension and fact tables for BI; optimized for performance and clarityCOVEREDm02 gold row (star schemas), fact/dimension in m02
1:15:27Key point: all three layers are persisted tables; data is stored three times at three levels of refinement, not just passed through; bronze least refined, gold most refined for specific use cases, silver most flexibleMISSINGNot stated explicitly in course

6.9 Control plane vs data plane

TimestampItemStatusCourse location / gap note
1:16:05Databricks separates control plane and data plane to improve security, scalability, isolation; you interact via control plane, processing runs in your cloud's data planeCOVEREDm05 Architecture table
1:16:28Control plane: web UI and workspace, job scheduling logic, notebooks, APIs; orchestrates workflows and configurations; managed by DatabricksCOVEREDm05
1:16:36Data plane: clusters (compute), Spark jobs, code execution, storage (S3, ADLS, GCS); executes data operations privately; runs in your cloud accountCOVEREDm05 (classic compute plane + object storage)
1:17:07Same Databricks interface on every cloud, only the backing compute/storage differsCOVEREDm05 implicitly
1:17:32"Databricks can't access your data": data processed in your account; presenter interprets as Databricks the company not viewing end dataPARTIALCourse does not state this marketing claim; fine to omit or nuance
1:18:05Diagram: control plane = web app, compute orchestration, Unity Catalog, queries and code; serverless compute plane (Databricks-managed); customer cloud account with storage and classic compute, data usually accessed through Unity CatalogCOVEREDm05 three-row table incl. serverless compute plane
1:16:05Terminology: video says "data plane"; current Databricks docs say "compute plane" (classic and serverless)PARTIALm05 uses "compute plane" but never says it was called "data plane". Add the synonym.

Chapter 7: Cluster Types (1:19:33 to 1:51:52)

7.1 Clusters (slides)

TimestampItemStatusCourse location / gap note
1:19:38Cluster = collection of VMs running Spark; one driver and multiple workers distribute the workloadCOVEREDm06 "How a Spark cluster is built"
1:19:46Clusters power notebooks, jobs, pipelinesCOVEREDm06
1:19:54Two main types: all-purpose (interactive development) and job (automated tasks)COVEREDm06 compute types
1:20:04Clusters autoscale and can shut down when idleCOVEREDm06 autoscaling, auto termination
1:20:04All-purpose: shared, always-on environment; collaborative interactive develop/test/explore; multiple users at once; notebooks, SQL editor, data exploration; stays running to reduce latency between commands; ideal for iterative work and testingCOVEREDm06. Note: "SQL editor" on all-purpose cluster is inaccurate; the demo at 1:47:16 shows SQL editor only uses SQL warehouses (add clarification)
1:20:32Job cluster: temporary cluster for automated tasks (production jobs, ETL pipelines, scheduled notebooks); provisioned for the job only; shuts down automatically when job completesCOVEREDm06
1:20:58Databricks Runtime: versioned environment defining Spark engine, libraries and ML stack; chosen when creating a clusterCOVEREDm06
1:21:15Special runtimes for machine learning or genomicsPARTIAL / OUTDATEDm06 has ML runtime. Genomics runtime is deprecated/retired (OUTDATED, do not study)
1:21:24Runtime affects performance, compatibility, features; same runtime ensures reproducibility across jobs and clustersPARTIALm06 recommends LTS but not the reproducibility point
1:21:34Technologies in runtime: Spark, Scala, PythonCOVEREDm06 / m05 Spark row
1:21:43Cluster visibility: in the Compute tab not all clusters are visible to all users; depends on permissions and ownership; filters: all clusters, created by me, running/terminated; depends on workspace role or group membership; access settings (single user vs shared)PARTIALm06 has cluster permissions (Can Attach To/Restart/Manage) and access modes; visibility/filtering not stated
1:22:13Restart: resets environment without deleting cluster; clears cached variables in memory; fixes broken libraries or runtime errors; keeps cluster config intact; reboots driver and workersPARTIALm06 lifecycle: clears variables and cache. Missing: use restart to fix broken libraries/runtime errors, config preserved, reboots all nodes
1:22:29Terminate: fully stops cluster to free resources and stop billing; ends all active sessions and computations; used when work done or idle; must restart or recreate to use againPARTIALm06: terminated clusters keep config and can be started again. Missing: terminate stops billing and ends sessions
1:22:47"Modifying the path incorrectly may break commands" (slide footnote)UNSUREContext unclear (likely about init script / library paths). Not added.

7.2 Compute types / compute policies (slide)

TimestampItemStatusCourse location / gap note
1:23:02All-purpose compute "create" dropdown offers Personal, Power User, Shared (presenter corrects his slide: three, then more)PARTIALm06 has no policy names
1:23:27Personal Compute: single node, individual use, minimal configuration, for personal development, testing, small dataPARTIALm06 single-node exam pattern; Personal Compute policy name missing
1:23:36Shared Compute: multi-node, larger, multiple users in a workspace, scalable distributed processing for collaborative and complex jobsPARTIALm06 Standard access mode; policy name missing
1:23:44These are compute (cluster) policies; you can create your own. Defaults: Unrestricted, Personal Compute, Power User Compute, Shared Compute, Legacy Shared ComputePARTIALm06 "Cluster policies" defined generically; default policy families missing
1:24:08Policies control allowed instance sizes, Spark/runtime versions, number of workers, etc.; analogous to AWS IAM policies for computeCOVEREDm06 cluster policies

7.3 Lab: creating compute (Azure, then AWS)

TimestampItemStatusCourse location / gap note
1:24:40Classic compute only available in a workspace linked to a cloud provider (not the serverless Express account)PARTIALm05 Free Edition note
1:25:05"Create with Personal Compute" just pre-selects a policyPARTIALSee policy addition
1:25:13Policies page: create your own policy; define libraries and permissionsPARTIALm06 generic
1:25:29Personal Compute policy description: "use with small to medium data or libraries like pandas and scikit-learn"MISSING
1:25:38Policy definition shows: allowed node types (Azure Standard_DS3_v2 etc., cloud-specific SKUs), spark_version limits, num_workers fixed at 0 (single node), security mode, instance pool ID forbidden, cluster typePARTIALm06 cluster policy concept; specific attributes missing
1:26:19Policy page tabs list libraries, permissions, and the compute and jobs using the policyMISSINGMinor
1:26:41Create compute with Personal policy: default name "<user>'s cluster", runtime 17.1, node typeCOVERED (concept)m06 DBR
1:26:52VM cost not shown by Databricks on Azure; look up VM price: DS3_v2 about USD 200/month, about USD 0.28/hourPARTIALm06: classic compute also pays cloud VM bill. Numbers are region/time specific; not added
1:27:56Create compute form shows estimated DBU/hour (0.75 DBU/h for DS3_v2); presenter confused 0.75 DBU with USD 0.75PARTIALm06 cost model. Clarify: DBU/h is units, not dollars; total cost = DBUs x DBU price + VM cost
1:28:14New compute form toggle (preview) vs older simple formMISSINGUI detail, no add
1:28:42Unrestricted policy unlocks all options: worker type, min/max workers, single node toggle, enable autoscaling, terminate after N minutes of inactivityCOVEREDm06 config options
1:29:21Chosen: Unrestricted, single node, auto-terminate after 30 minutesCOVEREDm06 auto termination
1:29:38Advanced: access mode "Auto"; logging (change log delivery path); init scriptsPARTIALm06 has access mode and init scripts; cluster log delivery path and "Auto" access mode missing
1:29:48JSON view of compute config: data_security_mode: DATA_SECURITY_MODE_AUTO, cluster_name, kind: CLASSIC_PREVIEW, Photon enabledMISSINGAdd brief note; JSON/API definition of clusters
1:30:02Opinion: "no case where you wouldn't want Photon"; Photon accelerates SparkPARTIAL / DISPUTEDm05/m06 cover Photon. Nuance: on classic compute Photon has a higher DBU rate and does not speed up every workload (e.g. Python UDF-heavy or RDD code), so "always" is an overstatement
1:30:26Error on Azure: "The VM size you are specifying is not available... pending approval of the DSv2 cores"; then "QuotaExceeded: minimum new limit required, current usage 0, additional required 4"COVEREDm18 "Cluster fails to start: cloud quota or capacity"
1:31:19Debug: launched same VM size directly in Azure portal, it worked, so Databricks quota issue persisted; quota request UI judged too complex; later retry succeeded ("luck of the draw")PARTIALm18 lists cause; fix (request quota increase for the VM family, choose another size/region, retry) not explicit
1:33:48AWS: deploy via AWS Marketplace "Databricks Data Intelligence Platform"; pay-as-you-go public offer listed at USD 1 per Databricks consumption unit; no upfront costMISSINGLow exam relevance; pricing claim not verified
1:35:19AWS Marketplace flow requires linking/creating a Databricks account (email sign-in code); region us-east-1 chosen; option to connect an existing S3 bucket; CloudFormation provisioned 27 resources (presenter guesses VPC, buckets)MISSINGLow exam relevance
1:38:54AWS create compute: default node rd-fleet.xlarge; Personal Compute policy picked i3.xlarge (30 GB, 4 cores), 1 DBU/h; auto-terminate 20 min; changing instance type changes DBU/hPARTIALm06 instance types; DBU/h depends on instance type not stated
1:41:03AWS console does not show EC2 price inline; Databricks pricing page has a pricing calculatorMISSINGAdd one line: pricing calculator exists
1:46:12Ways to use a cluster: Databricks Connect (e.g. from VS Code) or attach a notebookMISSING (Databricks Connect)Databricks Connect not explained in course (only a quiz distractor)
1:46:28SQL editor cannot select an all-purpose cluster; it only uses SQL warehouses (e.g. Serverless Starter Warehouse)MISSINGWorth stating; contradicts the slide at 1:20:15
1:46:42Attach notebook to cluster via compute dropdown, run print("hello world"); Compute page then shows notebooks attachedCOVEREDm07 Notebooks "Attach it to compute"
1:47:37Cluster Libraries tab: sources Workspace, Volumes, PyPI, Maven (and others)PARTIALm06 lists PyPI, Maven, wheel; Workspace/Volumes sources missing
1:47:44Exam tip (presenter): library installation was never asked on the examMISSINGAdd as note
1:48:08Demo: import faker fails (not installed); install package "Faker" from PyPI on cluster Libraries tab (just type the name); notebook re-run then worksCOVEREDm06 Libraries (cluster libraries vs %pip)
1:49:16AWS cluster: "automatically terminated after 20 minutes of inactivity"; terminated cluster can be restarted, keeps configCOVEREDm06 lifecycle
1:49:36Cluster Event log tab: shows start, healthy (running), terminated due to inactivityMISSINGCourse event log references are pipeline event logs only
1:49:44Cluster Spark UI tab: shows Spark jobsCOVEREDm18 "Reading the Spark UI"
1:49:57Cluster Metrics tab: CPU and memory utilizationMISSING
1:50:21Does stopped compute cost money? Terminated classic cluster incurs no VM or DBU charges; running idle cluster is billed for VM allocation and DBUs, so enable auto terminationPARTIALm06 auto termination; explicit "terminated = no compute charge, idle running = billed" missing
1:51:18You can permanently delete a cluster instead of terminatingPARTIALm06 notes 30-day retention, not delete action

Outdated / wrong / contradictions summary

  1. Community Edition (0:53:37): superseded by Databricks Free Edition (2025). Course m05 already says so.
  2. "Azure Databricks SQL Analytics" (0:54:21) is the old name of Databricks SQL; the "two environments" split is outdated.
  3. Genomics runtime (1:21:15): deprecated/retired, not exam content.
  4. "Data plane" (1:16:05): current docs say compute plane (classic and serverless). Course uses current term but does not give the old one.
  5. Slide says all-purpose clusters serve the "SQL editor" (1:20:15), but the demo (1:46:28) shows the SQL editor runs on SQL warehouses. The demo is correct.
  6. "No case where you wouldn't want Photon" (1:30:02) is an overstatement: Photon raises the DBU rate on classic compute and does not accelerate all workloads.
  7. Budgets "always 100% threshold, email only" (1:06:53): video-era limitation; unsure whether still true in late 2026.
  8. Presenter reads "0.75 DBU" as 75 cents (1:28:07): DBU/h is a unit count, price per DBU depends on SKU, tier and cloud.
  9. Azure Standard tier: announced for retirement by Microsoft/Databricks; exact date unverified here (unsure).
  10. No contradiction found between video and course content otherwise.

Counts (rows above, by first status word): COVERED 36, PARTIAL 37, MISSING 38 (many are low-relevance setup and billing UI steps), UNSURE 1.

Chapter 8 · Databricks Web Application (1:51 to 2:50) 117 items

Transcript slice: lines 904 to 1389 of full-transcript.txt (video 1:51:57 to 2:50:55). All lines read.

Course file: databricks-de-associate-course.html. Main target modules: m07 (workspace UI), m08 (Git folders), m17 (Jobs), with spill-over into m05, m06, m09, m11, m19.

Filler skipped: greetings and sign-offs ("ciao", "chow chow"), [Music] markers, the microphone bump, the GitHub username tangent (Omen King) and 2FA on phone, the home internet outage (2:45:04 to 2:45:17), long "where is the data" browsing in the SQL editor, and repeated "nothing exciting here" remarks.

Inventory

Workspace concept (1:51:57 to 1:53:04)

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
1:51:57Workspace = where users interact with the Databricks web app; central UI where data engineers build, test and manage pipelines in collaborative analytics workflowsCOVEREDm05 "Account, workspace, metastore"; m07 sidebar
1:52:06The web app includes clusters, notebooks, jobs and repos (Git folders)COVEREDm07 "The left sidebar" table
1:52:23Databricks notebook is "Jupyter-like" but not exactly a Jupyter notebookPARTIALm07 mentions .ipynb export only; no statement that Databricks notebooks are a proprietary Jupyter-like format that can import/export ipynb
1:52:40Workspace use cases: develop and run ETL pipelines, data exploration and ad hoc analysis, scheduling production jobs, collaborating on version-controlled codePARTIALImplied across m07/m08/m17; no explicit use-case list

Lab: creating another workspace (1:53:05 to 1:56:09)

TimestampItemStatusCourse location / gap note
1:53:13Click path: top-right workspace menu > Manage account (account console) > Workspaces > Create workspacePARTIALm05 says account console exists; no click path for creating a workspace
1:53:32A workspace is bound to one cloud region (example: Tokyo, "Japan prod"); region choice is a main reason for multiple workspaces (data sovereignty, latency)MISSINGm05 says companies have dev/test/prod workspaces, not region/data residency as a driver
1:53:47Two creation options: use an existing cloud account (classic, customer-managed) or serverless compute with default storageMISSINGNo mention of serverless workspaces vs classic workspaces
1:54:50Azure workspace details page shows region (Canada East), status Running, attached metastorePARTIALm05/m19 cover metastore per region and attachment; no UI detail
1:55:06Serverless workspace shows credential "serverless only" and pricing tier Premium; fewer fields because storage/compute are Databricks-managedMISSINGNo pricing tier / serverless workspace detail
1:55:22Optional security and compliance settings and permissions at workspace creationMISSINGNot mentioned (minor)
1:55:44Opinion: a workspace costs nothing by itself as long as no compute runs in itMISSINGBroadly true for DBUs; classic workspaces can still incur cloud costs in your account (storage, networking). Add with that nuance
1:55:53Workspace switcher dropdown in the top bar to move between workspacesMISSINGMinor UI fact

Notebooks concept (1:56:15 to 1:57:02)

TimestampItemStatusCourse location / gap note
1:56:15Notebooks combine code, documentation and visualizations in an interactive environmentCOVEREDm07 "Notebooks"
1:56:30Languages: Python, SQL, Scala; Andrew unsure about R ("R might be missing")COVEREDm07 lists Python, SQL, Scala, R. Video is wrong: R is supported on classic compute. Note: R is not supported on serverless compute (verify current status)
1:56:45Supports Markdown and table/chart outputCOVEREDm07 %md, display(), Visualizations
1:56:45Ideal for ETL workflows, experiments and analysisCOVEREDm07
1:56:52Git integration for version-controlled developmentCOVEREDm08 Git folders
1:56:52Multi-language notebooks enable end-to-end workflowsCOVEREDm07 magic commands

Lab: notebook basics (1:57:03 to 1:59:28)

TimestampItemStatusCourse location / gap note
1:57:20Create notebook from Workspace > Create > Notebook (or New button); rename at topPARTIALm07 sidebar lists Workspace; no create steps (minor)
1:57:37Change notebook default language from the language dropdown at top, confirmCOVEREDm07 "default language"
1:58:01Running a cell auto-attaches the notebook to compute (serverless by default in a serverless workspace); classic workspaces show other compute optionsPARTIALm06 serverless notebooks; m07 "Attach it to compute"; no note that serverless is the default attach target
1:58:17Notebook "Schedule" button creates a job from the notebookMISSINGNot in m07 or m17
1:58:24Serverless "Environment" side panel: environment version ("Environment 3 is now the default" at recording), memory, accelerator, custom dependenciesMISSINGNo mention of serverless environment versions or the Environment panel for notebook dependencies (only %pip in m06/m07). Version number is time-bound
1:59:08Developer settings exist in notebook UIMISSINGTrivial, no exam value; can stay out

Lab: notebook on serverless (1:59:29 to 2:02:21)

TimestampItemStatusCourse location / gap note
1:59:29A serverless compute comes with the account by defaultPARTIALm05 Free Edition is serverless; m06 serverless compute
1:59:48Notebooks can also be developed locally with VS Code (Databricks extension)MISSINGCourse mentions Databricks Connect only in a quiz distractor; no VS Code extension / Databricks Connect line
1:59:57Notebooks offer AI code generation (Databricks Assistant)COVEREDm07 "Databricks Assistant"
2:00:41"Connect" button attaches to serverless; took about 30 secondsPARTIALm06 says serverless "starts in seconds"; fine
2:00:52Best practice: put imports in a separate cellMISSINGMinor advice
2:01:00Shift+Enter runs a cell and moves to / creates the next cell; Interrupt stops a running cellMISSINGBasic notebook keyboard/UI facts absent
2:01:19Serverless can feel delayed; classic compute may feel faster once warmPARTIALm06 contrasts startup; no latency nuance
2:01:46Compute page shows serverless usage "0 to 1"MISSINGTrivial

Jobs concept (2:02:27 to 2:03:07)

TimestampItemStatusCourse location / gap note
2:02:27Jobs automate and schedule workloads: notebooks, workflows, scriptsCOVEREDm17 "Jobs, tasks, and the DAG"
2:02:43Task orchestration with dependencies (DAG)COVEREDm17
2:02:43Can run on job clusters or all-purpose clustersCOVEREDm17 compute per task; m06
2:02:52Triggered manually, on a schedule (cron), or via APICOVEREDm17 triggers table
2:02:52Retry policies and email alerts on failureCOVEREDm17 retries, notifications
2:03:00Tracks job run statuses and execution historyCOVEREDm17 "Monitoring jobs"

Lab: creating a job (2:03:08 to 2:10:49)

TimestampItemStatusCourse location / gap note
2:03:15Click path: Jobs &amp; Pipelines > Jobs > Create job; single task (not a pipeline)PARTIALm07 sidebar lists Jobs &amp; Pipelines; no step list
2:03:24Task types include notebook, Python script, etc.COVEREDm17 task types table
2:03:38Notebook task pointing at a workspace notebook; serverless compute selected by defaultCOVEREDm17
2:03:46Task parameters (Andrew unsure how they work with notebooks)COVEREDm07 widgets, m17 parameters. Video is unclear: notebook task parameters populate widgets read with dbutils.widgets.get
2:04:05Notifications per task/job: on start, success, failure; Andrew: "You might get an exam question about these notifications and whether they're integrated"COVEREDm17 "notifications on start, success, failure, duration warning (email, Slack, Teams, webhooks)"
2:04:13Non-email channels (Microsoft Teams, Slack, webhooks) require a system notification destination configured in admin settings (Manage destinations > Add destination)PARTIALm17 lists channels but not that they must first be created as notification destinations by a workspace admin
2:05:43Demonstrated: "started" email received when run launched manuallyCOVEREDm17 notifications
2:04:40Retry policy: default is no retries; configure attempts and wait intervalPARTIALm17 covers retries and interval; default (no retries) not stated
2:04:50Metric thresholds on tasks (Andrew had never used them)COVEREDm17 duration warning threshold, timeout, streaming backlog thresholds
2:05:18Run now, then View runCOVEREDm17 Manual "Run now"
2:06:05Job graph/"flow" view is meaningful only with multiple tasksCOVEREDm17 DAG
2:06:13Observed: hello-world on serverless jobs took about 6 min 50 s, status "waiting for cluster", both runs about 6 minMISSINGLikely explanation (verify): serverless jobs in standard performance mode accept a few minutes of startup latency; enabling "Performance optimized" gives fast startup at higher cost. Course has no serverless jobs performance mode
2:06:31Compute page also shows the default "Serverless Starter Warehouse" and Query historyPARTIALm06 SQL warehouses; system tables query history in m19; no mention of the starter warehouse
2:07:21Repair run exists; nothing to repair on a successful runCOVEREDm17 "Repair run"
2:07:37Trigger types offered: Scheduled, File arrival, ContinuousCOVEREDm17 triggers table (also Table update, which the video omits)
2:07:45Continuous "just keeps happening"COVEREDm17
2:07:49Schedule editor has Simple and Advanced (cron) modes; 24-hour time; default time zone UTC, changeable (set to Eastern / Toronto)PARTIALm17 "simple interval or Quartz cron syntax with time zone"; UTC default not stated
2:08:32Jobs list shows schedule and recent runs; scheduled run at noon succeededCOVEREDm17 Runs tab
2:09:08Runs list shows each run's start time and durationCOVEREDm17 Runs tab, matrix view
2:09:31A job can have only one trigger at a time; to change type you must edit or delete the existing triggerMISSINGNot stated in m17
2:09:56Trigger status can be Active or PausedMISSINGNot stated
2:10:18Andrew misreads "File arrival" as "file archival" and says it is not what he wantsCOVERED (video wrong)The file arrival trigger is exactly "run when a file is dropped". m17 covers it correctly
2:10:34Adding more tasks turns a job into a multi-task workflow ("basically making a pipeline")COVEREDm17 DAG. Note terminology: "pipeline" in Databricks means Lakeflow Declarative Pipelines (m16), different from a multi-task job
2:10:42Delete the job when doneMISSINGTrivial cleanup, no gap

Repos / Git folders concept (2:10:55 to 2:12:30)

TimestampItemStatusCourse location / gap note
2:10:55Repos integrate with Git for version control and collaboration directly in the workspaceCOVEREDm08
2:11:21Supported providers: GitHub, GitLab, Azure DevOpsCOVEREDm08 (also Bitbucket, CodeCommit)
2:11:21Syncs notebooks and scripts, tracks changesCOVEREDm08
2:11:27Git operations: clone, commit, push, pullCOVEREDm08
2:11:27View diffs, commit history, resolve conflictsCOVEREDm08 (conflicts); history in Git dialog implicit
2:11:27Work with multiple branches in the UICOVEREDm08
2:11:35Supports CI/CD workflowsCOVEREDm08 bundles, CI/CD flow
2:11:56Repos renamed to Git folders; exam guide said "repos" at recording time; "when you hear repos, think Git folder"COVEREDm00 "Names that changed"; m08 heading

Lab: Git folder with GitHub (2:12:34 to 2:23:12)

TimestampItemStatusCourse location / gap note
2:12:43Create a Git folder from New/More > Git folder, or Workspace > Create > Git folder; Git folders can now live anywhere in the workspace, not only under a top-level Repos areaPARTIALm08 defines Git folder; no note on creation path or location change
2:13:35Private GitHub repo, clone with the HTTPS URLPARTIALm08 clone; HTTPS URL not specified
2:15:48Sparse checkout mode: clone only specific subdirectoriesMISSINGNot in m08
2:16:00Authentication "simple setup in a few clicks" (Databricks GitHub App / OAuth linking)COVEREDm08 "personal access token or a Databricks GitHub App"
2:16:18Error: "GitHub account does not have access" for a repo in a GitHub organization; fix is to install the Databricks GitHub App on that repo/org (an admin of the repo must install it)MISSINGTroubleshooting gotcha absent
2:19:14Edit a file in the Git folder, then commit and push from the Git dialog (branch name button, "main")COVEREDm08 "commit and push in one step"
2:19:30"Save now" / version history in a notebook is not a Git commit; notebooks outside a Git folder only get revision historyPARTIALm07 says notebooks have revision history; m08 distractor says revision history is not versioning. Not explicit that "Save now" creates a revision, not a commit
2:21:40Git dialog supports Pull and HistoryCOVEREDm08
2:22:23Move (drag) an existing notebook into the Git folder to put it under version control, then commit itMISSINGMinor practical step
2:21:49No per-notebook Git connection: Git is attached at folder levelPARTIALImplied by m08 "Git folder is a workspace folder linked to a remote repository"

Magic commands concept (2:23:13 to 2:24:00)

TimestampItemStatusCourse location / gap note
2:23:13Magic commands change how a cell is interpreted; also present in JupyterCOVEREDm07 "Magic commands"
2:23:36%fs interact with the file systemCOVEREDm07
2:23:36%run run another notebookCOVEREDm07 (inline, same session)
2:23:44%sh run shell commandsCOVEREDm07 (driver only)
2:23:44%sql, %python, %scala switch the cell languageCOVEREDm07
2:23:28Andrew: "not sure if it'll appear on exam, but you should know them"COVEREDm07 has quiz on %run, %sh

Lab: magic commands (2:24:02 to 2:50:55)

TimestampItemStatusCourse location / gap note
2:24:54Typing a magic command at the top of a cell automatically switches the cell language selectorMISSINGMinor UI fact
2:25:10%md Markdown cell; double-click to edit a rendered Markdown cellCOVEREDm07 %md
2:26:28information_schema schema exists in each catalog (tried workspace.information_schema.schema_tags, empty)MISSINGNo mention of information_schema anywhere in the course
2:28:16Create catalog UI: catalog types Standard, Foreign, Shared ("standard for and shared" in captions); chose StandardMISSINGm19 covers foreign catalogs (federation) and Delta Sharing separately but not the three catalog types at creation
2:28:31"Use default storage" option (preview at recording); otherwise pick an external location; default storage catalogs are only accessible from this workspaceMISSINGm19 covers managed location and workspace-catalog binding; default storage not mentioned. Preview status may have changed, unsure
2:29:29Catalog workspace access, permissions and tags steps in the wizardPARTIALm19 workspace-catalog binding, grants, tags
2:29:58Catalog contains schemas; schema "will actually be the database"; storage location optional at schema levelCOVEREDm11 "Schema and database are synonyms"; m19 managed storage at schema level
2:30:25Create table UI: drop files to create a table from an uploadCOVEREDm07 "Add data UI"
2:31:07SQL editor with AI generation (Assistant) to write SQLCOVEREDm07 Assistant
2:31:46Databricks SQL is Spark SQL, not PostgresPARTIALImplicit everywhere; no explicit sentence
2:32:02Identity column: id BIGINT GENERATED ALWAYS AS IDENTITY for auto-incrementCOVEREDm09 "Other Delta features"
2:32:16SQL editor: Run vs Run allMISSINGMinor UI
2:33:21INSERT INTO tasks VALUES ... of 20 sample rowsCOVEREDm09 creating and writing tables
2:34:16Query with three-level name simple.todos.tasksCOVEREDm11 three-level namespace
2:34:22Advice: put a LIMIT on queries over big data; SQL editor adds a row limit automatically (default 1,000 rows); notebook results are limited too (Andrew says 10,000)MISSINGNot in course. Verify: SQL editor "Limit 1000" option is on by default; display() renders the first 10,000 rows
2:35:12Scala example: SparkSession, DataFrame, show()/display(); Scala does not need an object/main wrapper in a notebook cellMISSINGMinor; exam is Python/SQL
2:35:38Andrew: "Scala is functional programming... a layer on top of SQL"WRONG in videoScala is a general-purpose JVM language (object-oriented and functional); Spark itself is written in Scala. Not a layer on SQL. Course does not repeat the error
2:38:04Scala is not supported on serverless compute; needed a classic clusterMISSINGCourse m06 lists serverless limits (no Spark configs, no init scripts) but not language limits. Status unsure in late 2026: Databricks has been rolling out Scala on serverless; verify before stating as fact
2:38:45Classic cluster created: Unrestricted policy, DBR 16.4 LTS (Scala variant shown), auto terminate after 30 minCOVEREDm06 LTS, cluster policies, auto termination
2:39:26Cluster libraries installed earlier ("configured under compute the imports")COVEREDm06 Libraries
2:40:33Notebook may need explicit "Attach and run" to a classic clusterPARTIALm07 "Attach it to compute"
2:41:20%sh ls, %sh pwd: bash commands, show where files areCOVEREDm07 %sh
2:42:48%fs is a shortcut specifically for dbutils.fs (Andrew updated his slide)COVEREDm07 "%fs ls ... Shorthand for dbutils.fs"
2:43:27dbutils.fs commands: ls, cp, mv, rm, mount, unmount, mkdirs, headPARTIALm07 shows ls, cp, rm only. Missing mv, mkdirs, head, put; mount/unmount should be shown as legacy (m05 says mounts deprecated)
2:43:53mkdirs is plural (dbutils.fs.mkdirs)MISSINGNot in course
2:44:04%fs ls showed volumes / default locationsPARTIALm05 volumes; m13 paths
2:44:22%fs mkdirs my new folder tried at root, "unable to" create at rootMISSINGGotcha: %fs relative paths resolve against dbfs:/ (DBFS root), not the notebook folder; DBFS root writes may be blocked. Use a full /Volumes/... path
2:46:08%fs mkdirs(...) with parentheses fails ("does not take a parameter"); %fs syntax is space-separated with no parentheses or quotesMISSINGSyntax gotcha absent
2:46:57Created folder did not appear under /Workspace/Users/&lt;user&gt; even though %sh pwd showed that pathMISSINGExplains difference: %sh runs on the driver local filesystem (cwd is the notebook's workspace folder on recent runtimes) while %fs defaults to DBFS. Course has paths in m13 but not this contrast
2:49:07%run needs another notebook; path must be relative (e.g. ./my_other_notebook), autocomplete helps; extra path segments broke itPARTIALm07 shows %run ./other_notebook. Missing: relative or absolute workspace path, no file extension, no quotes, and %run must be alone in its cell
2:50:30%run executed the other notebook's print successfullyCOVEREDm07
2:50:47Terminate (stop) compute keeps the configuration so it can be restartedCOVEREDm06 "Cluster lifecycle facts"

Counts

  • COVERED: 61 (including 1 row where the video itself is wrong but the course is right)
  • PARTIAL: 24
  • MISSING: 32 (about 8 are trivial UI facts that need no addition)
  • Wrong in video, not repeated by the course: 1 row (Scala "layer on SQL")
  • Total items: 118

Outdated or wrong statements in the video

  1. 1:56:38 "R might be missing": wrong. Databricks notebooks support R on classic compute. R is not available on serverless compute (verify).
  2. 2:03:46 Doubt that parameters make sense for notebook tasks: they do. Task parameters populate widgets (dbutils.widgets.get). Course m07/m17 is correct.
  3. 2:10:18 "File archival": caption/reading error. The trigger is file arrival, which does exactly what Andrew wanted (run when a file lands in a volume or external location). Course m17 is correct.
  4. 2:35:38 Scala described as "a layer on top of SQL": wrong (see table).
  5. 2:38:04 "Scala not supported by serverless": true at recording. Unsure whether still true in late 2026; Databricks has been adding Scala support to serverless. Do not assert either way on the exam without checking the current docs.
  6. 2:06:13 Six-minute serverless job runs: probably standard performance mode of serverless jobs (startup latency of a few minutes accepted for lower cost); "Performance optimized" starts fast. Verify current naming in the Databricks serverless jobs docs.
  7. 2:11:56 "Exam guide still says repos": time-bound. The course already uses "Git folders (formerly Repos)".
  8. 2:28:31 "Default storage is in preview": status may have changed since recording; unsure.
  9. 1:58:24 "Environment 3 is now the default": serverless environment version numbers move; treat the number as time-bound.
  10. 2:43:27 mount/unmount shown as normal commands: mounts are legacy/deprecated with Unity Catalog (course m05 already says so).
  11. 1:55:44 "Workspaces cost nothing without compute": DBU-wise yes, but classic workspaces can still accrue cloud provider charges (storage, networking) in your account.

No contradictions found between the video and the course; the course is more current on every overlapping point.

Chapter 9 and Chapter 10 part 1 · Version Control, Delta Lake (2:51 to 4:02) 72 items

Slice: Chapter 9 (Version Control, 2:51:04 to 3:03:24) and the first part of Chapter 10 (Delta Lake, 3:03:34 to 4:02:42, ends mid-demo while fixing a column DEFAULT; continued by the next slice).

Course file: /home/bastien-youssfi/Documents/Training/databricks-de-associate-course.html. Modules referenced: m01, m02, m03, m07, m08, m09, m11, m18.

Filler skipped: music stingers, intros ("Hey, this is Andrew Brown"), "ciao", comments on cloud vendors renaming products (SageMaker to SageMaker AI), a stray F11 hotkey, VS Code window juggling, complaints that the SQL editor was slow ("all the AI stuff"), Andrew's remarks about using Claude to search for him, a Rails naming-convention aside, and generic chatter during installs.

Chapter 9: Version Control

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
2:51:05Git is a distributed version control system (DVCS)MISSINGm08 never defines Git or DVCS
2:51:14Git was created by Linus Torvalds (also creator of the Linux kernel); video says it "resides with the Linux Foundation"MISSING (trivia)Not exam relevant. Inaccurate: Git is a member project of the Software Freedom Conservancy and is maintained by Junio Hamano; it is not a Linux Foundation project
2:51:43Each code change is a commit; a commit can contain multiple files with multiple changes plus a message; commits form the project historyPARTIALm08 mentions "write a message, commit and push" but does not define a commit
2:52:46Repository: logical container holding the codebase ("repository" and "codebase" roughly interchangeable)MISSINGTerm used, not defined
2:53:02Commit: a change of data in the local repositoryPARTIALSee above
2:53:02Tree: the entire history of a repo, think of the graphMISSINGLow exam value. Strictly, a Git "tree" object is a directory snapshot; the history is the commit graph. Video simplifies
2:53:10Remote: version of the project hosted elsewhere, used to exchange commits (pedantically a named reference/pointer to another repo)PARTIALm08 says Git folder is linked to "a remote Git repository"; no definition
2:53:31Branch: divergent path of development allowing isolated changes; you will work with them a lotPARTIALm08 covers create/switch branch; no definition
2:53:34Default/base branch is main, formerly called master (renamed because the term fell out of favour)MISSINGm08 says "merge to main" only
2:53:56Clone: complete local copy of a repository including its history and Git config (a folder)PARTIALm08 "Clone a remote repo into a Git folder"; no definition
2:54:05Checkout: switch between branches or commitsPARTIALm08 "switch branches"; command name not given
2:54:13Pull: download changes from a remote and merge them into your branchPARTIALm08 "Pull remote changes"
2:54:13Push: upload local repository changes to a remotePARTIALm08 "commit and push"
2:54:21Fetch: download data from a remote without integrating it into your work (pull = fetch + merge)MISSING
2:54:28Reset: undo local changes / unstageCOVEREDm08 "reset to discard local changes"
2:54:28Merge: combine multiple commit histories into oneCOVEREDm08 "Merge and rebase branches" (no definition, acceptable)
2:54:34Staging files (staging area/index): prepare and organize changes before a commit; the add command stages filesMISSINGDatabricks Git dialog hides staging (you tick files), worth one line
2:55:12Exam tip: "Databricks Repos vs native notebook versioning" comparison. Andrew got at least one exam question on itPARTIALm08 has only a distractor line ("notebook revision history as versioning") and m07 says notebooks keep a revision history. No comparison table
2:55:25Comparison slide, 7 rows. Repos vs native: Interface web/browser vs standalone desktop app; Accessibility anywhere with internet vs only installed computer; Repo management manages repos online vs local copies; Basic ops fork, star, watch vs simplified commit, pull, push; Collaboration issues and PRs vs local repo management; Advanced Git features via commands vs simplified basic features; Integration with online CI/CD tools vs limited to local Git toolsMISSINGQuestionable slide. Fork, star, watch and issues are Git provider (GitHub) features, not Databricks features; Databricks Git folders open PRs in the provider (course m08 is right on this). Andrew himself says at 3:02:38 the claimed functionality did not match what he saw. Keep the defensible takeaway: Git folders = branches, commit/push/pull, merge, PR via provider, CI/CD integration; notebook revision history = per-notebook autosaved versions, no branching, no CI/CD
2:56:54Databricks Repos are now called Git foldersCOVEREDm08 "Git folders (formerly Repos)"
2:57:03Andrew interprets "native notebook versioning" as Jupyter notebooksPARTIAL / flagLikely misinterpretation. In the old exam guide ("compare Databricks Repos and notebook versioning") the comparison is with Databricks' built-in notebook revision history, which m07 mentions. Course should state this explicitly
2:57:23Demo in Azure ML Studio: could not open in Jupyter; notices "serverless Spark compute"Filler/demoNo knowledge conveyed
2:58:28Demo in SageMaker AI: create notebook instance (Git repositories option left blank), open JupyterLab, Git sidebar icon to clone a repo by HTTPS URLMISSING (non-exam)Only illustrates "native" notebooks with Git; not Databricks
3:00:30Cloning a private repo over HTTPS needs username + personal access token; GitHub path: Settings, Developer settings, Personal access tokens, Tokens (classic); Andrew gives all scopes then deletes it ("way too permissive")PARTIALm08 says Git folders authenticate with a PAT or the Databricks GitHub App. Least-privilege advice (scope the token, delete when done) missing
3:02:38Opinion: Databricks' feature claims felt overstated, but "for the exam they want to push their thing", so learn their listPARTIALCourse m08 frames Git folder capabilities correctly; add exam-framing note

Chapter 10 (part 1): Delta Lake

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
3:03:36Delta Lake brings ACID transactions, schema control and performance improvements to data lakesCOVEREDm01 lakehouse callout, m09 lede
3:03:36ACID ensures reliability and consistencyCOVEREDm03 ACID table
3:03:47Schema enforcement blocks bad data from being writtenCOVEREDm03
3:03:47Schema evolution allows structure changes without breaking pipelinesCOVEREDm03 (mergeSchema)
3:03:47Time travel lets you query old versionsCOVEREDm09
3:03:55Key commands MERGE, DELETE, UPDATECOVEREDm09
3:03:55Optimization: Z-ORDER, OPTIMIZE, VACUUMCOVEREDm09 maintenance table
3:04:10Delta underpins the bronze/silver/gold medallion patternCOVEREDm02 medallion
3:04:39Lab (optional): run Delta Lake locally for foundational understanding; Delta is already integrated in DatabricksMISSING (non-exam)Optional; see Additions (short box)
3:05:13Setup: Miniconda env with Python 3.10 (3.11/3.12 exist, "use what works"), activate, install JupyterLab (+ Git extension, theme); Jupyter server login via token URLMISSING (non-exam)Environment setup only
3:09:42`pip list \grep pyspark to check; pip install pyspark installed PySpark 4.0.1 (about half a GB); extras pyspark[sql], pyspark[connect]` (Spark Connect), pandas-on-Spark; conda-forge preferred over pip in conda envsMISSING (non-exam)
3:13:12Error "class file version ... this Java runtime only recognizes class file versions up to 52.0" = Java 8 too old; fix: install OpenJDK 17 and set it as default (update-alternatives)MISSING (non-exam)Correct: Spark 4.x requires Java 17 or 21
3:12:51Start PySpark with Delta: pyspark --packages io.delta:... plus two confs spark.sql.extensions=io.delta.sql.DeltaSparkSessionExtension and spark.sql.catalog.spark_catalog=org.apache.spark.sql.delta.catalog.DeltaCatalog (verified with spark.conf.get)MISSING (non-exam)
3:22:46Version mismatch: quickstart showed old delta-core_2.12 (2.x); with Spark 4 you need Delta 4.0.0 and Scala suffix _2.13 (io.delta:delta-spark_2.13:4.0.0); "unresolved dependencies" until correct; Spark 4 pairs with Delta 4MISSING (non-exam)Fact check: artifact was renamed delta-core to delta-spark in Delta 3.0; Delta 4.x targets Spark 4.x / Scala 2.13. Andrew did not explain the 2.12/2.13 numbers: they are Scala versions
3:17:37Alternative: pip install delta-spark then configure the Spark session in codeMISSING (non-exam)(configure_spark_with_delta_pip helper)
3:18:52PySpark shell is Python; it pre-creates the spark SparkSession objectMISSINGCourse never says spark is pre-created in Databricks notebooks / shell. Small but useful
3:18:02 / 3:27:11Local Spark UI (web UI, port 4040) shows Stages, Storage, Environment; same Spark UI as on a Databricks cluster (Compute, Spark UI tab)COVEREDm18 Spark UI; m17 run details
3:19:39 / 3:28:28data = spark.range(0, 5); data.write.format("delta").save("/tmp/delta-table"); df = spark.read.format("delta").load("/tmp/delta-table"); df.show()PARTIALCourse writes/reads tables by name (saveAsTable, .table()); path-based format("delta").save/load not shown
3:30:00Overwrite with spark.range(5, 10) and mode("overwrite"); quickstart's "conditional update without overwrite" (DeltaTable API)PARTIALmode("overwrite") in m03/m10; DeltaTable Python API (DeltaTable.forPath(...).update/delete/merge) missing
3:30:55Delta relies on ACID to keep integrity during concurrent operations or failures; ACID is a general database concept (MySQL, Postgres), not Delta specificCOVEREDm03
3:31:17Atomicity all succeed or none; Consistency data valid after transaction; Isolation transactions do not interfere; Durability permanent once committedCOVEREDm03 table
3:31:41Example: BEGIN TRANSACTION; UPDATE bank_account SET balance ... ; UPDATE ... ; COMMIT; both updates or neither (bank transfer is the classic use case)MISSINGNo multi-statement transaction syntax in course
3:32:20Claim: "for Delta Lake tables with Databricks SQL you're going to be able to use transactions"MISSING / flagStatus nuance: single-statement ACID is always on. Multi-statement transactions (BEGIN TRANSACTION ... COMMIT/ROLLBACK, BEGIN ATOMIC ... END) were introduced as a preview for Unity Catalog managed tables with catalog-managed commits (late 2025). Unsure of GA status in late 2026; the demo itself hit "not enabled for this workspace". Treat as low exam risk
3:33:06Lab setup: Unity Catalog catalog simple, schema todos, table tasks; work in the SQL editor; Assistant generates DDL (ALTER TABLE ADD project_id, projects table, completions table)PARTIALm07 lists SQL editor and Assistant; no hands-on DDL walk-through
3:35:19DESCRIBE TABLE simple.todos.tasks shows columns (id, task_name, ...)COVEREDm09/m11 (DESCRIBE TABLE EXTENDED)
3:35:50Prefer integer IDs (INT/BIGINT) over STRING for keysOpinionNot needed
3:37:30Auto-increment = GENERATED ALWAYS AS IDENTITYCOVEREDm09 "Identity columns"
3:36:52Catalog Explorer column details (e.g. column masking info)COVEREDm07 Catalog Explorer, m20 masks
3:38:41DESCRIBE SCHEMA simple.todos describes the schema but does not list tablesMISSINGAdd DESCRIBE SCHEMA [EXTENDED]
3:39:26DESCRIBE TABLE EXTENDED shows more metadata; SQL language reference has DESCRIBE for CATALOG, FUNCTION, PROCEDURE, SCHEMA, TABLEPARTIALm11 has DESCRIBE TABLE EXTENDED only
3:40:03SHOW TABLES lists tables; SHOW TABLE EXTENDED LIKE 'pattern' shows info for all tables matching a patternPARTIALm11 has SHOW TABLES IN; SHOW TABLE EXTENDED missing
3:41:35DESCRIBE output does not show auto-increment like Postgres doesMISSING (minor)SHOW CREATE TABLE (in m11) reveals the identity definition; worth noting
3:41:56SQL editor: naming a query tab saves it as a query (can move to a folder)MISSING (minor)
3:42:44Transactions roll back when a statement fails a validation/constraintMISSINGTie to multi-statement transactions
3:45:21Exam tip: "they want you to know you can use this debug assistant" (Databricks Assistant, diagnose/fix errors)PARTIALm07 one line "AI helper for writing, explaining and fixing code"; add "Diagnose error" / /fix and that Assistant is exam-relevant
3:44:27ALTER TABLE ... ADD CONSTRAINT ... FOREIGN KEY (task_id) REFERENCES tasks(id) fails unless the referenced column has a PRIMARY KEY constraintMISSING
3:46:49An identity column is not automatically a primary key; PK must be declared explicitly (CONSTRAINT pk PRIMARY KEY (id))MISSING
3:48:00PK creation fails "because child column is nullable": PK columns must be NOT NULL; ALTER COLUMN ... SET NOT NULL must be a separate statementPARTIALm03 shows SET NOT NULL syntax; PK requirement missing
3:48:52Error: "ALTER COLUMN is not supported for identity columns" (could not set NOT NULL on identity cols); fix = drop and recreate tablesMISSING
3:50:46PK and FK can be declared inline in CREATE TABLEMISSINGAdd syntax
3:53:00Andrew expects inserting task_id=1, project_id=2 that do not exist to fail on FKPARTIAL / flagWrong expectation. m03 correctly says PK/FK are informational, not enforced; such an insert succeeds. Only NOT NULL and CHECK fail writes. Good exam trap
3:53:14Error: "operation attempted to use Hive metastore, which is disabled ... check the default catalog"; fix: set the current catalog (USE CATALOG)PARTIALm11 covers USE CATALOG and hive_metastore legacy; error and its cause (legacy HMS disabled, no default catalog) missing
3:53:35Error: "Multi-statement transactions are not enabled for this workspace"; run statements individually; Andrew could not demo transactionsMISSING / flagSee status note above
3:52:35INSERT INTO t (col1, col2) VALUES (...): listing columns is clearer than positional VALUESPARTIALm09 shows positional VALUES only
3:55:12Error: column created_at (NOT NULL) "not specified in INSERT"PARTIALNOT NULL enforcement in m03
3:56:28Column DEFAULT requires the Delta table feature: TBLPROPERTIES ('delta.feature.allowColumnDefaults' = 'supported'); it is off by defaultMISSING
3:58:12DROP TABLE IF EXISTS (no error if missing), CREATE TABLE IF NOT EXISTS, CREATE OR REPLACE as reset patternsPARTIALm15 has IF NOT EXISTS; m09 has CREATE OR REPLACE; DROP ... IF EXISTS missing
3:59:36Ordering error: ALTER TABLE SET TBLPROPERTIES on a table not yet created fails; statements must run in order (create, then alter)MISSING (minor)Can set TBLPROPERTIES inside CREATE TABLE instead
4:01:34Error: adding a column with NOT NULL via ALTER TABLE ADD COLUMNS is not supported for Delta tablesMISSING
4:02:05Error: DEFAULT values not supported when adding new columns to existing Delta tables; add the column without default, then ALTER TABLE t ALTER COLUMN c SET DEFAULT ... (slice ends here)MISSING

Counts

  • COVERED: 17
  • PARTIAL: 24
  • MISSING: 32 (of which 9 are optional local-setup / non-exam items)
  • Opinion / filler / demo-only rows: 2 (not counted)

Outdated or wrong vs current Databricks (late 2026)

  1. Git "resides with the Linux Foundation": incorrect (Software Freedom Conservancy).
  2. Repos vs native notebook slide: fork/star/watch and issues are Git provider features, not Databricks Git folder features. PRs are opened in the provider (course m08 correct).
  3. "Native notebook versioning" read as Jupyter: in Databricks exam context it means notebook revision history.
  4. Expecting FK violations to fail an INSERT: PK/FK are informational only in Databricks (course m03 correct).
  5. Multi-statement transactions: preview feature for UC managed tables, not enabled by default; unsure of GA status. Single-statement ACID always applies.
  6. Delta quickstart artifact names: delta-core is pre-3.0; current is delta-spark_2.13 for Delta 4.x on Spark 4.x.
Chapter 10 part 2 · Delta Lake: time travel, OPTIMIZE, VACUUM, write commands (4:02 to 5:04) 82 items

Context read from line 1950 (the "attempt transactions" lab, ALTER COLUMN errors). Slice covers: end of transactions lab, Time travel lecture + lab (with SQL variables detour), Optimization lecture, Vacuum lecture, Write and load commands lecture + lab (CREATE OR REPLACE, INSERT OVERWRITE, MERGE, COPY INTO), Delta Lake statements reference lecture.

Course file: /home/bastien-youssfi/Documents/Training/databricks-de-associate-course.html

Inventory

Transactions lab (end) 4:02:52 to 4:08:24

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
4:01:34 to 4:02:52 (context)Gotchas when altering an existing Delta table: ALTER TABLE ... ADD COLUMNS with NOT NULL is rejected; adding a column with a DEFAULT to an existing Delta table fails with "default values are not supported when adding new columns to previously existing Delta tables; add the column without a default first, then ALTER COLUMN SET DEFAULT". Fix: ALTER TABLE t ADD COLUMN created_at TIMESTAMP; then ALTER TABLE t ALTER COLUMN created_at SET DEFAULT current_timestamp();MISSINGm09 shows ADD COLUMNS only; no column DEFAULT, no SET DEFAULT, no mention of the allowColumnDefaults table feature.
4:03:00Advice: every SQL flavor differs (Spark SQL vs others); learn by trialCOVERED (opinion)Not needed as content.
4:03:24 to 4:04:24Demo: INSERT into completions with task_id/project_id values that do not exist in the referenced tables succeeds. REFERENCES (foreign key) does not block itCOVEREDm03 "Kinds of integrity": PK/FK on UC tables are informational only, not enforced.
4:05:20 to 4:06:09Assistant explanation: inserts succeed because FK constraints are not enforced; to enforce integrity use application logic or the constraints Delta does enforce: NOT NULL and CHECKCOVEREDm03 "Enforced constraints in Delta" (NOT NULL, CHECK examples).
4:06:24 to 4:07:19Doc lookup: CHECK lives under ALTER TABLE ... ADD CONSTRAINT name CHECK (condition) (not under ALTER COLUMN)COVEREDm03 ALTER TABLE silver.orders ADD CONSTRAINT valid_qty CHECK (quantity &gt; 0).
4:07:52 to 4:08:16Tried to add FK constraints after the fact: still no enforcement. Andrew leaves it unresolved ("other languages this would normally work")COVEREDm03 (informational only). Video leaves it open; course gives the answer.
4:05:12, 4:07:35Advice: test things, AI assistant answers are not always trueCOVERED (opinion)m07 mentions Databricks Assistant; opinion only.

Time travel lecture 4:08:25 to 4:10:02

TimestampItemStatusCourse location / gap note
4:08:25Time travel = query previous table versions; uses: auditing, debugging, reverting changes; review history, roll back writes, query old states for compliance/analysisCOVEREDm09 "Time travel".
4:08:42DESCRIBE HISTORY table_name shows version, timestamp, operation, operation parametersCOVEREDm09 code comment "versions, timestamps, operation, user".
4:08:59Query old version: SELECT * FROM t VERSION AS OF 3 and ... TIMESTAMP AS OF '...'COVEREDm09.
4:09:06Exam tip: time travel syntax "definitely going to be on your exam"; know the two forms (VERSION AS OF, TIMESTAMP AS OF)COVEREDm09 exam callout "Time travel syntax, RESTORE, DESCRIBE HISTORY".
4:09:23RESTORE TABLE t TO VERSION AS OF 3 / TO TIMESTAMP AS OF ...; "100% a question on your exam: which of these are valid"PARTIALm09 shows RESTORE ... TO VERSION AS OF 3 only; add the TO TIMESTAMP AS OF form and the "valid syntax" angle.
4:09:47Time travel relies on the Delta log transaction history; default retention 30 daysCOVEREDm09: delta.logRetentionDuration default 30 days, plus VACUUM caveat. See flag F1.
4:09:55Use case: recover from accidental deletes, updates, overwritesCOVEREDm09 (roll back).

Time travel lab 4:10:03 to 4:30:05

TimestampItemStatusCourse location / gap note
4:10:51 to 4:11:20DESCRIBE HISTORY simple_todos.completions; any table you create is Delta by default so the commands workCOVEREDm09 "Delta is the default format".
4:11:32History output showed operations: CREATE TABLE, SET TBLPROPERTIES, CHANGE COLUMN, WRITEPARTIALCourse does not list operation names. Minor.
4:11:45 to 4:12:01History columns: notebook, cluster (clusterId), readVersion, operationMetrics (what changed), user (who)PARTIALm09 lists versions, timestamps, operation, user only. Add notebook, clusterId, readVersion, operationParameters, operationMetrics.
4:12:24SELECT * FROM simple_todos.completions VERSION AS OF 3COVEREDm09.
4:13:24INSERT INTO simple_todos.projects (name) VALUES ('Big data pipeline') (identity id auto-generated)COVEREDm09 identity columns, INSERT syntax.
4:15:05, 4:15:33One INSERT statement = one table version; to get many versions each insert must be its own statementMISSINGNot stated. Every committed write (each statement) creates one version, regardless of row count.
4:15:16Claim: "on the exam you will see code examples with SET project_id ..." (variables in SQL)PARTIALm12 shows DECLARE VARIABLE / SET VAR. Gotcha about plain SET missing (see next rows).
4:16:44Error: "operation attempted to use Hive metastore, which is disabled due to legacy access... check the default catalog". Fix: set the catalog/schema (USE / editor dropdown) before runningPARTIALm11 shows USE CATALOG main; USE SCHEMA ...; the error message and its meaning (legacy HMS disabled, default catalog not set) are not mentioned.
4:16:58Error: "migrate to the parameter marker syntax" when using ${var} style substitutionPARTIALm12 shows :param named markers; m07 widgets. Not linked to the deprecation of ${} substitution.
4:17:06 to 4:21:58Plain SET x = (subquery) is Spark config syntax, not a variable; tried DECLARE; AI assistants gave contradictory answers (said DECLARE unsupported, then supported)PARTIALm12 has correct DECLARE / SET VAR. See flag F3 on the AI's claim.
4:19:15DECLARE VARIABLE project_id BIGINT; (no default)COVEREDm12 DECLARE VARIABLE run_date DATE DEFAULT current_date();
4:19:47, 4:22:43, 4:25:28Error "Configuration project_id is not available": caused by writing SET project_id = ... (treated as a Spark conf) instead of SET VARMISSINGAdd as gotcha in m12.
4:20:29Docs: SET VAR sets a SQL variable; "SET VARIABLE inside a compound statement"PARTIALm12 shows SET VAR; SET VARIABLE long form and compound statements (BEGIN...END) not mentioned.
4:22:16Column name typo (task_name vs name)Filler (debugging)n/a
4:24:06 to 4:26:36Retried in a notebook SQL cell; also noted Python could do itCOVEREDm07 notebooks, languages.
4:27:08Fix: use SET VARIABLE var_project_id = (SELECT ...) (or SET VAR). Then INSERT ... VALUES ('...', var_project_id) worked in both notebook and SQL editorPARTIALm12 shows SET VAR x = literal; add assignment from a scalar subquery and the plain-SET trap.
4:28:11Opinion: "do not trust AI, it will take you for a loop"; trust the docsCOVERED (opinion)n/a
4:28:41Insert result: "number of rows affected / inserted", 12 resultsFiller (demo output)n/a
4:29:05 to 4:29:41DESCRIBE HISTORY simple_todos.tasks now shows many versions; SELECT ... VERSION AS OF 8 vs VERSION AS OF 4 returns fewer rows; history covers data changes and schema changesCOVEREDm09.
4:29:47Exam tip: exact timestamp format not tested, but know VERSION AS OF and TIMESTAMP AS OF are "the only two options"PARTIALm09 also shows @v3 shorthand and DataFrame versionAsOf; course should say the two SQL clause forms are what is tested. Video's "only two options" is a simplification (flag F2).

Optimization lecture 4:30:07 to 4:31:32

TimestampItemStatusCourse location / gap note
4:30:07OPTIMIZE and ZORDER BY used togetherCOVEREDm09 maintenance table.
4:30:16OPTIMIZE compacts small files into about 1 GB filesPARTIALm09 says "larger files"; the ~1 GB target is missing.
4:30:16ZORDER BY physically organizes (co-locates) data by selected columns to boost performance (data skipping)COVEREDm09 "co-locates related values ... data skipping".
4:30:26Use high-cardinality columns for Z-ordering (example customer_id); low-cardinality columns (example date) suit partitioningPARTIALm09 says partitioning on low-cardinality columns; Z-order on high-cardinality filter columns is not stated. Video's explanation of cardinality is confused (flag F4).
4:31:03Limit ZORDER BY to 4 columns or fewerMISSINGAdd (effectiveness drops with each extra column; liquid clustering also caps at 4 keys).
4:31:03Run OPTIMIZE on a separate job or cluster; use compute-optimized instance types; schedule OPTIMIZE regularly (daily or weekly)MISSINGm18 covers predictive optimization (automatic) but not the manual scheduling best practice.
4:31:19Note: covered again in SQL section ("double coverage")Fillern/a

VACUUM lecture 4:31:34 to 4:32:25

TimestampItemStatusCourse location / gap note
4:31:34VACUUM permanently deletes old unreferenced data files and reclaims storageCOVEREDm09.
4:31:42Claim: VACUUM is not unique to Delta (PostgreSQL has it; "MySQL maybe")MISSING (trivia)Not exam relevant. PostgreSQL has VACUUM; MySQL does not (it uses OPTIMIZE TABLE). Flag F5.
4:31:49Default retention 7 days, protects against accidental deletionCOVEREDm09 (7 days / 168 hours).
4:31:57Syntax VACUUM table RETAIN n HOURSCOVEREDm09.
4:31:57Avoid retention below 7 days unless time travel is not neededCOVEREDm09 (safety check, breaks time travel and readers).
4:32:05Use VACUUM after heavy DELETE / UPDATE / MERGE; run regularly to control storage cost and maintain performancePARTIALAdd when-to-run guidance; m18 notes predictive optimization runs VACUUM automatically.

Write and load commands lecture 4:32:26 to 4:33:17

TimestampItemStatusCourse location / gap note
4:32:42CREATE OR REPLACE TABLE replaces the table and all dataCOVEREDm09 table (replaces data and schema, keeps history).
4:32:46INSERT OVERWRITE replaces data but keeps schema and tableCOVEREDm09.
4:32:46MERGE dedupes or upserts using a matching keyCOVEREDm09 MERGE section.
4:32:54COPY INTO efficient incremental file ingestion, will not reload already-ingested filesCOVEREDm15 (idempotent).
4:33:02When to use: MERGE for upserts/dedup; COPY INTO for loading from external sources without overwriting. "Good enough for your exam"COVEREDm09, m15 comparison.

Write and load commands lab 4:33:19 to 5:01:51

TimestampItemStatusCourse location / gap note
4:34:36Docs: CREATE OR REPLACE is found under CREATE TABLE [USING]; variants: CREATE TABLE USING, CREATE TABLE (Hive format), CREATE TABLE LIKE, CREATE TABLE CLONEPARTIALm09 covers CTAS, CLONE. CREATE TABLE ... LIKE (copy definition, no data) missing.
4:35:22Doc examples: create a managed Iceberg table USING ICEBERG; CTAS from another table; table from a CSV location; partitioned table; generated column ("pretty cool")PARTIALm09: managed Iceberg mentioned, generated columns, partitioning covered; USING ICEBERG syntax not shown.
4:36:30CREATE OR REPLACE replaces the DROP TABLE IF EXISTS + CREATE pattern (forces a create)COVEREDm09 table ("DROP then CREATE loses history; avoid").
4:37:21 to 4:39:12Error: CREATE TABLE OR REPLACE ... is a syntax error; correct order is CREATE OR REPLACE TABLECOVEREDm09 syntax. Could add as a one-line gotcha.
4:39:20INSERT OVERWRITE: replaces data, keeps schema and tableCOVEREDm09.
4:39:48 to 4:44:05INSERT OVERWRITE [LOCAL] DIRECTORY 'path' USING PARQUET / CSV / JSON / TEXT SELECT ... writes query results OUT to files in a directory; it does not load files into a tableMISSINGAdd to m09 or m13.
4:41:11, 4:43:10Created a workspace file tasks.json; used workspace "Copy URL/path > Full path" to get /Workspace/Users/...COVEREDm13 workspace files path.
4:41:46, 4:42:24JSON Lines (one object per line) is the usual JSON layout for data loading; Andrew: "one of the most efficient ways"COVEREDm13 JSON row: one object per line by default, multiLine otherwise.
4:42:32Reminder: no FK enforcement, so inserting tasks for a non-existent project will not failCOVEREDm03.
4:44:54Docs: INSERT "inserts new rows and optionally truncates the table or partitions"; OVERWRITE means truncateCOVEREDm09 "replace all data".
4:46:54Error: "not enough data columns: target has 3 columns, inserted 2". Fix: give an explicit column list INSERT ... (project_id, name) VALUESMISSINGAdd gotcha: without a column list, VALUES must supply every column in order.
4:47:42Error: providing values for a GENERATED ALWAYS AS IDENTITY column is not supported. Fix: omit the id column, it is auto-generatedMISSINGm09 mentions identity columns but not that GENERATED ALWAYS rejects explicit values (GENERATED BY DEFAULT allows them).
4:48:33 to 4:49:16Demo proof: table had 20 rows; INSERT OVERWRITE with 9 rows leaves 9 rows (not 29): overwrite truncates then insertsCOVEREDm09.
4:49:26MERGE INTO = set of updates, inserts, deletes based on a source table into a Delta target; used for dedup and upsertCOVEREDm09.
4:49:45Syntax MERGE INTO target USING source ON target.key = source.key WHEN MATCHED THEN UPDATE ... WHEN NOT MATCHED THEN INSERT ... WHEN NOT MATCHED BY SOURCE ... (conditional clauses)COVEREDm09 MERGE code.
4:50:53If source rows are identical to target, MERGE changes nothing; new keys get insertedCOVEREDm09 (upsert semantics).
4:51:56Error: "column aliases are not allowed in MERGE" for USING (VALUES ...) AS source(name, project_id). Table aliases are fine; a column list on the alias is notMISSINGAdd gotcha.
4:53:47Error: "cannot resolve source.name in search condition" after removing aliasFiller (debugging)n/a
4:56:21Assistant claim: MERGE source must be a table reference, not VALUES; workaround: create a temporary view with the rows, then MERGE INTO tasks USING temp_view ..., which works (views allowed as source)PARTIALm09 uses USING updates AS s (table or view); m11 covers temp views. Claim "must be a table" is wrong (flag F6): a subquery source works.
4:56:33Temporary view = temporary table-like object that disappears at end of sessionCOVEREDm11 views table.
4:57:41Filler: strawberries / pumpkin breakFiller skippedn/a
4:58:14COPY INTO target FROM source FILEFORMAT = ... [VALIDATE ...] loads data from a file location; syntax target / source clause / file format / validateCOVEREDm15 COPY INTO.
5:00:16 to 5:01:22Could not COPY INTO from a workspace-local JSON file; needs cloud storage (S3) or similar; external storage setup issues, left unfinishedPARTIALm15 says source is a volume or cloud path via external location. Course should state workspace files are not a supported source and recommend a UC volume. See flag F7.
5:01:32Docs: COPY INTO with large directories / multiple producers: Auto Loader is the better fitCOVEREDm15 Auto Loader vs COPY INTO (thousands vs millions of files).

Delta Lake statements reference 5:01:53 to 5:04:15

TimestampItemStatusCourse location / gap note
5:01:56Exam tip: GENERATE, OPTIMIZE, RESTORE, VACUUM are the Delta statements Andrew saw on the examPARTIALOPTIMIZE, RESTORE, VACUUM in m09 exam callout; GENERATE absent.
5:02:04CACHE SELECT ... caches selected data to the workers' local disk (disk cache)MISSINGNo disk cache coverage.
5:02:19CONVERT TO DELTA parquet.\path\`` converts an existing Parquet table to Delta in placeMISSINGAdd.
5:02:24DESCRIBE HISTORY returns provenance (operation, user, etc.) for each write; history retained 30 daysCOVEREDm09.
5:02:39FSCK REPAIR TABLE t removes transaction-log entries for data files that can no longer be found in storageMISSINGAdd.
5:02:55GENERATE symlink_format_manifest FOR TABLE t generates a manifest file so other engines (Presto/Athena) can read the tableMISSINGAdd, note it is legacy (UniForm preferred).
5:03:04OPTIMIZE optimizes layout; optionally a subset of data (WHERE on partition columns) or co-locate by column (ZORDER); with liquid clustering, clustering is applied by OPTIMIZEPARTIALm09 covers OPTIMIZE, ZORDER, liquid clustering OPTIMIZE; OPTIMIZE ... WHERE missing.
5:03:26REORG TABLE t APPLY (PURGE) rewrites files to purge soft-deleted data, e.g. columns dropped with ALTER TABLE DROP COLUMN (and deletion vectors)MISSINGAdd.
5:03:32RESTORE to earlier version; exam syntax: RESTORE TABLE employee TO TIMESTAMP AS OF '...', RESTORE TABLE employee TO VERSION AS OF 1, and "state an hour ago" via current_timestamp() - INTERVAL 1 HOURPARTIALm09 VERSION form only.
5:04:07Exam tip: remember TIMESTAMP AS OF and VERSION AS OFCOVEREDm09 exam callout.
5:04:15VACUUM removes unused files from the table directoryCOVEREDm09.

Filler skipped: music stings, "chowo chia"/"ciao" sign-offs (4:08:16, 5:01:40), "watch all videos in order" reminders, Vim aside (4:39:03), neighbor/strawberries/pumpkin interruptions (4:50:40, 4:57:41), "pause because it's taking time" (4:28:37).

Counts

  • COVERED: 47 (including 4 opinion rows)
  • PARTIAL: 20
  • MISSING: 15 (one is VACUUM trivia)
  • Filler rows: 5

Flags (outdated, wrong, or contradicts course)

  • F1 (4:09:47, 5:02:24) Time travel "default retention 30 days". True for the log (delta.logRetentionDuration = 30 days). But data files removed by an operation are deleted by VACUUM after delta.deletedFileRetentionDuration (7 days default), so time travel is only reliable for 7 days if VACUUM runs (and predictive optimization runs VACUUM automatically on UC managed tables). Course m09 already states both; keep the course version. I am unsure whether newer runtimes now block time travel beyond the deleted-file retention; not asserted.
  • F2 (4:29:47) "Only two options". For SQL clauses, yes (VERSION AS OF, TIMESTAMP AS OF). Databricks also supports t@v3 / t@yyyyMMddHHmmssSSS shorthand and DataFrame options versionAsOf / timestampAsOf. Course m09 shows both; no conflict.
  • F3 (4:21:22, 4:23:29) AI said DECLARE VARIABLE "may work in notebooks but not in Databricks SQL queries". Wrong: SQL session variables (DECLARE VARIABLE, SET VAR) work in the SQL editor on SQL warehouses and in notebooks (DBR 14.1+). The real bug was writing SET name = ..., which sets a Spark config and produces "Configuration name is not available". Andrew reached the right fix.
  • F4 (4:30:26) Cardinality explanation is inverted/confused. He says customer_id is high cardinality "because you see it repeated again and again". High cardinality means many distinct values (customer_id has many). Conclusion is right (Z-order / clustering on high-cardinality filter columns; partition only on low-cardinality columns), the reasoning is not. Also outdated: Databricks now recommends liquid clustering over ZORDER and partitioning for new tables (course m09 and m18 already say so).
  • F5 (4:31:42) "MySQL maybe has VACUUM". MySQL does not have VACUUM (it has OPTIMIZE TABLE). PostgreSQL does. Trivia, not exam relevant.
  • F6 (4:56:21) "MERGE source must be a table, not VALUES". Wrong as stated. The MERGE source can be a table, view, or subquery, e.g. USING (SELECT * FROM VALUES (1,'a') AS v(id, name)) AS s. The actual error was the column list on the source alias (AS source(name, project_id)), which MERGE does not allow. The temp view workaround is valid.
  • F7 (5:00:16) COPY INTO from a workspace file. Unsure whether /Workspace/... paths are accepted as a COPY INTO source on current runtimes; the documented, recommended sources are Unity Catalog volumes and cloud paths under an external location. The course is consistent with docs.
  • F8 (4:31:03) "Run OPTIMIZE on a separate job, compute-optimized instances, schedule daily/weekly". Still valid guidance for manual maintenance, but for UC managed tables predictive optimization (enabled by default on newer accounts) runs OPTIMIZE and VACUUM automatically on serverless compute. Course m18 says so.
  • F9 (5:02:55) GENERATE symlink manifest. Legacy interoperability mechanism; UniForm (Iceberg reads) and Delta Sharing are the current approach. Low exam likelihood under the May 2026 exam guide, but Andrew reports seeing GENERATE on the exam, so a one-liner is cheap insurance.
Chapters 11 to 15 · DataFrame API, Tables and Views, SQL, File Formats, Streaming (5:04 to 5:44) 78 items

Video span 5:04:25 to 5:44:32. Course file: databricks-de-associate-course.html.

Every line from 2444 ("Chapitre 11 : Spark DataFrame API") to 2785 (end of "triggered vs continuous") was read.

Totals: 31 COVERED, 20 PARTIAL, 27 MISSING (78 items; filler lines not counted).

Filler skipped: "[Music]" separators, "ciao/chow", "get my pen tool out", "we'll cover this again later", repeated "do not stress out, labs are what matters" reassurance. Note: 5:14:20 to 5:15:46 is a re-recorded duplicate of the 5:12:51 caching segment (same content, listed once).

Chapter 11: Spark DataFrame API (5:04:25 to 5:15:46)

TimestampItemStatusCourse location / gap note
5:04:26Apache Spark = open-source unified analytics engine for big data and MLCOVEREDm05 (platform table: "Distributed engine for batch and streaming")
5:04:34Claim: Spark is "100x faster than Hadoop in memory, 10x faster on disk"; "lightning fast" because of an ecosystem of librariesMISSINGOld Apache marketing benchmark (circa 2014). Not exam material; flag as dated. Add one line of context only.
5:04:46Spark ecosystem: Spark Core (engine + API in R, SQL, Python, Scala, Java); Spark SQL (DataFrame, DSL for structured/semi-structured data); Spark Streaming (ingest from streaming services); GraphX (distributed graph processing); MLlib (machine learning)MISSINGNot in m10. Note: the legacy DStream "Spark Streaming" is superseded by Structured Streaming (m14); GraphX is rarely used on Databricks.
5:05:32RDD (Resilient Distributed Dataset): low-level API to run parallel operations on a clusterMISSINGOnly mentioned in m10 tuning table (spark.default.parallelism). Flag: video calls RDD a "domain specific language", which is imprecise; an RDD is an immutable distributed collection. RDD APIs are not supported on serverless compute or Standard (shared) access mode.
5:05:41RDD API functions: map, flatMap, filter, distinct, reduce, count, first, take, countByValue, sortBy, groupBy, min, maxMISSING
5:06:11RDD example: textFile, flatMap, map, reduceByKey (word count style pipeline)MISSING
5:06:41PySpark = Python API for Spark; DataFrames "like pandas but scalable"; mix SQL and Python (spark.sql); used for ETL, cleaning, analytics; runs in notebooks for batch and streamingPARTIALm05 names PySpark, m10 uses it throughout incl. spark.sql. Missing explicit definition and the pandas comparison.
5:07:30Array functions for nested/repeated values (JSON): explode (element to row), flatten (remove one nesting level), size, array_contains, sort_array, element_at (nth element). Use cases: nested JSON, normalize semi-structured sources, enable joins/filters/aggregations on array valuesPARTIALm12 has explode, flatten, size, array_contains, array_distinct, collect_list/set. Missing sort_array and element_at (1-based).
5:08:22Full-table dedup: df.dropDuplicates() removes rows duplicated across all columnsCOVEREDm10 (distinct(), dropDuplicates)
5:08:37Column-based dedup: dropDuplicates(["col"]) keeps one row per value; used after merging sources or ingesting raw zones, when preparing silver/goldCOVEREDm10 (incl. latest-row-per-key with row_number)
5:09:07Timestamp components: SQL year(ts), month(ts), dayofmonth(ts); PySpark F.year, F.month, F.dayofmonth in selectMISSINGm10 has to_timestamp only.
5:09:48Regex matching: SQL regexp_extract(); PySpark F.regexp_extract(); same function in both APIsMISSING
5:10:23Dot syntax for struct fields (address.city, address.zip) in SQL and PySpark; STRUCT = complex type grouping related fieldsCOVEREDm10 (dot notation), m12 (STRUCT dot notation, .*)
5:11:16explode vs flatten: explode turns array or map into one row per element (row count grows); flatten removes one nesting level and keeps row countPARTIALBoth functions in m12; the explicit row-count contrast and explode on MAP (key, value columns) are missing.
5:11:46Claim: "flatten isn't available in standard Spark SQL, found in tools that extend Spark"COVEREDVideo is wrong. flatten() is a built-in Spark SQL function since Spark 2.4 and works on array of arrays (not structs). Course m12 uses it correctly.
5:12:06count_if(condition) counts rows where condition is true; count(col) depends on nulls; count more flexible with conditionsPARTIALm12 covers COUNT(*), COUNT(col), COUNT_IF. Missing gotcha: COUNT(age IS NULL) counts every row (the boolean is never null); use count_if(age IS NULL). Video phrasing at 5:12:28 is ambiguous on this point.
5:12:51Exam tip: author got at least one caching question, probably REFRESH TABLEMISSING
5:13:00CACHE TABLE (heard as "create table"): caches a table or query output with a storage level (OPTIONS ('storageLevel' ...)); caching a query creates a temp view; reduces scanning of source filesMISSINGCourse only has df.cache()/persist() in m10. Flag (verify): Spark caching statements are not available on serverless compute; Databricks SQL warehouses rely on automatic disk/result caching.
5:13:22CLEAR CACHE: removes all cached tables and views (memory and disk)MISSING
5:13:38REFRESH resource_path ("refresh cache"): invalidates and refreshes all cached data for datasets whose source path matches the prefixMISSING
5:14:54REFRESH FUNCTION: invalidates cached function entry (class name, resource location); only for permanent functionsMISSING
5:15:13REFRESH TABLE: invalidates cached entries (data and metadata) for a table/view; cache is repopulated lazily the next time the table or query runs. Author's actual exam questionMISSINGHigh priority given the exam tip.
5:15:30UNCACHE TABLE: removes entries for one table/view from memory/disk cacheMISSING

Chapter 12: Table and Views (5:15:55 to 5:26:15)

TimestampItemStatusCourse location / gap note
5:15:56Table = structured dataset in a catalog and schema, three-level namespace; default is Unity Catalog managed table; metadata registered in UC, data in cloud storageCOVEREDm11 (namespace, managed vs external)
5:16:23Delta tables: default format, cloud storage + ACID transaction log; every change is a version; time travelCOVEREDm09
5:16:55"Common table types: managed, unmanaged and external"PARTIALm11 covers managed vs external. Flag: "unmanaged" is the legacy Hive term for external, so there are two storage types, not three. Course does not state the synonym.
5:17:18Delta ops recap: MERGE INTO (upsert), UPDATE/DELETE, VACUUM (clean old files), DESCRIBE HISTORY, OPTIMIZE (compact), ZORDER (sorted indexing)COVEREDm09 (also notes Z-order is legacy vs liquid clustering)
5:18:07CREATE TABLE ... USING CSV with LOCATION (table over CSV files in cloud storage)PARTIALm11 lists CSV as external format; m13/m12 show read_files and csv.\path\. No CREATE TABLE USING CSV syntax. Note: non-Delta, no ACID or time travel.
5:18:32PySpark: spark.read.csv(...) then write.saveAsTableCOVEREDm10
5:18:39JDBC (Java Database Connectivity; video forgets the name): spark.read.format("jdbc") with url, write to table; brings enterprise data inCOVEREDm04 ("Reading a database with JDBC"); m15 Lakeflow Connect alternatives. Video misspeaks "read from a CSV file" for JDBC.
5:19:30External table points to data outside (S3, ADLS); uses LOCATION; needs permission via storage credential or external locationCOVEREDm11, m19
5:20:31Views reference query results without a physical table; break down complex logic, reuseCOVEREDm11
5:20:38Temp view: CREATE OR REPLACE TEMP VIEW, visible only in current notebook sessionCOVEREDm11
5:21:01Global temp view: CREATE GLOBAL TEMP VIEW, query via global_temp. prefix; "across all notebooks and sessions"COVEREDm11 is more precise: same cluster only, until restart, not on serverless. Video overstates scope.
5:21:28CTAS: CREATE TABLE ... AS SELECT inherits schema; snapshot or pre-aggregateCOVEREDm09
5:22:00Generated columns: computed from other columns, store derived values, enforce consistencyCOVEREDm09 (one-line mention)
5:22:09Video: two types "virtual (computed on read)" and "stored (computed on write)"; example age INT GENERATED ALWAYS AS (...) STORED from birthdayPARTIALVideo is wrong for Delta. Delta generated columns are always persisted on write; there is no VIRTUAL or STORED keyword (that is MySQL/PostgreSQL syntax). Expression must be deterministic, so age from current_date() is not allowed. Add gotcha.
5:22:56Table and column comments: document purpose, governance; add at creation or later; COMMENT ON TABLE; visible in Catalog ExplorerPARTIALm11 has COMMENT ON TABLE. Missing column comment syntax and Catalog Explorer note.
5:23:34DML = statements that add, change or delete data in Delta tablesCOVEREDm09
5:24:04COPY INTO from S3 with FILEFORMAT, header, mergeSchemaCOVEREDm12, m15
5:24:19DELETE FROM: deletes rows matching predicate; with no predicate deletes all rows; Delta onlyPARTIALm09 shows DELETE FROM with WHERE. Missing "no predicate deletes all rows".
5:24:37INSERT INTO: rows by VALUES, expressions or query; optional truncation (OVERWRITE); restriction on Hive Avro tables with timestamp-millisPARTIALm09 covers INSERT INTO/OVERWRITE. Hive Avro restriction is niche, skip.
5:25:02INSERT OVERWRITE DIRECTORY '...' USING parquet SELECT ...: overwrite files in a directory with a Spark file formatMISSING
5:25:34LOAD DATA [LOCAL] INPATH ... INTO TABLE: loads into Hive SerDe tablesMISSINGLegacy Hive feature, low exam relevance.
5:25:50MERGE INTO target USING source ON ...: updates/inserts/deletes; Delta onlyCOVEREDm09

Chapter 13: SQL Commands and Logic (5:26:28 to 5:39:34)

TimestampItemStatusCourse location / gap note
5:26:31SQL overview: INSERT, UPDATE, DELETE, MERGE, DROP modify Delta data/structureCOVEREDm09
5:26:52CASE WHEN adds conditional logicCOVEREDm12
5:26:58PIVOT and UNPIVOT convert between long and wide formatsPARTIALm12 has PIVOT. UNPIVOT missing (supported in Databricks SQL and recent runtimes; video unsure).
5:27:14Joins: inner, left, full, semi (left rows with match), anti (left rows with no match)COVEREDm10 join table
5:27:36PIVOT example: each unique month becomes a column, SUM(sales) per product; Excel pivot table analogyCOVEREDm12
5:28:21CASE: acts like if/else; categorization, labeling; works in SELECT, WHERE and ORDER BY; customer tier example; CASE WHEN TRUE ... ELSE to simulate if/elsePARTIALm12 shows tiering. "Usable in WHERE and ORDER BY" not stated.
5:29:23Join types with examples: inner (customers with transactions), left (all products even unsold), right, full (nulls when no match), semi, anti, cross (Cartesian product, rarely used)PARTIALm10 covers all in PySpark. SQL keywords LEFT SEMI JOIN / LEFT ANTI JOIN / CROSS JOIN not shown.
5:30:40LEFT JOIN example: orders LEFT JOIN payments ON orders.order_id = payments.order_id, selecting order_id, customer_name, amountPARTIALNo SQL LEFT JOIN example in course (PySpark only).
5:32:30DESCRIBE statement family: CATALOG, CONNECTION, CREDENTIAL, DATABASE/SCHEMA, FUNCTION, (EXTERNAL) LOCATION, PROCEDURE, PROVIDER, QUERY, RECIPIENT, SCHEMA, SHARE, TABLE, VOLUMEPARTIALCourse has DESCRIBE TABLE/EXTENDED/DETAIL/HISTORY (m09, m11), DESCRIBE FUNCTION (m12). Others missing.
5:32:45Exam tip: "to find the location of some data, which DESCRIBE command?"MISSINGAdd mapping table.
5:33:09DESCRIBE CATALOG [EXTENDED]: name, comment, owner, type (Regular); EXTENDED adds properties, created by/atMISSING
5:33:58DESCRIBE CONNECTION: name, comment, owner, options (e.g. URL, credential) of a Lakehouse Federation connectionMISSING
5:34:21DESCRIBE CREDENTIAL: name, comment, owner, created at, linked cloud identityMISSING
5:34:37DESCRIBE SCHEMA / DATABASE [EXTENDED]: name, description, location, properties; schema and database are aliases (SCHEMA preferred)PARTIALSynonym covered m11; the command is not.
5:35:11DESCRIBE FUNCTION [EXTENDED] abs: name, class, usage; EXTENDED adds examplesCOVEREDm12
5:35:36DESCRIBE EXTERNAL LOCATION: name, URL, credential name, owner. Author's actual exam question ("absolutely remember")MISSINGHigh priority.
5:36:02DESCRIBE PROCEDURE (preview when recorded); procedures are SQL blocks for more complex logic; unlikely on examMISSINGLow priority; current status of SQL stored procedures unsure.
5:36:10DESCRIBE PROVIDER: Delta Sharing provider, auth type, cloud, region, metastore IDMISSING
5:36:34DESCRIBE QUERY: schema of a query's output (column names and types, not data)MISSING
5:36:49DESCRIBE RECIPIENT: Delta Sharing recipient name, activation link, auth type, ownerMISSING
5:37:11DESCRIBE SHARE: share name, owner, timestampsMISSING
5:37:20DESCRIBE TABLE [EXTENDED]: columns plus details incl. Location; possible exam question "where is the table located"COVEREDm09 (DESCRIBE EXTENDED/DETAIL show Location), m11
5:37:53DESCRIBE VOLUME: managed or external, storage_location visible even for managedMISSING
5:38:20UDFs: custom logic in SQL; ad hoc queries, complex transformations, string parsing, business rules (e.g. join first/last name)COVEREDm12 SQL UDFs, m10 Python UDFs
5:38:42CREATE FUNCTION hash_email(email STRING) RETURNS STRING RETURN sha2(email, 256); hashing is not encryption; function stored in UC at catalog.schema.functionPARTIALm12 has a vat() UDF stored in UC. Missing sha2 hashing example and the hashing vs encryption point. Video also says UDFs suit "small to medium data sets": true for Python UDFs, SQL UDFs are optimized like built-ins.

Chapter 14: File Handling and Formats (5:39:40 to 5:41:21)

TimestampItemStatusCourse location / gap note
5:39:41Read a single file or a whole directory depending on the path; directory path ends with "/" and needs no wildcard; useful for daily/weekly drops, partitioned datasets, event logs, time-series batchesPARTIALm13 loads directories and globs implicitly; the single file vs directory rule is not stated.
5:40:15File format prefix after FROM: SELECT * FROM parquet.\path\ (backticks around path); prefixes parquet, csv, json, deltaPARTIALm12 shows json.\...\ only.
5:40:48Parquet vs CSV: Parquet columnar, schema and types, highly compressed, fast column reads, nested structures, big data; CSV row-based, human readable, no schema, no compression, full scans, flat only, Excel exchange. Use Parquet at scale, CSV for convenienceCOVEREDm13 format table

Chapter 15: Structured Streaming (5:41:27 to 5:44:32)

TimestampItemStatusCourse location / gap note
5:41:28Triggers: availableNow=True processes all available data then stops (batch-like jobs, Auto Loader); processingTime runs at fixed interval for constantly flowing dataCOVEREDm14 trigger table
5:42:09Watermark: data arrives late or out of order; threshold on event-time delay; records later than watermark dropped; withWatermark("event_time", "10 minutes"); prevents unbounded state; balances accuracy and resourcesCOVEREDm14
5:42:39Example: groupBy(window 5 minutes) with 10-minute watermark: late events within 10 min included, later discardedCOVEREDm14 (same example)
5:43:06Output modes: append (new rows only, logs/events), update (changed rows only, rolling counts), complete (whole result, full aggregations)COVEREDm14. Video says update "requires a unique key or state": imprecise, it applies to stateful (aggregated) queries.
5:43:44Triggered vs continuous pipelines: micro-batches on schedule vs always running; higher latency (depends on interval) vs near real time; cheaper vs costlier; batch jobs/periodic reports vs real-time dashboards/alerts; compute starts/stops vs always on; triggered uses availableNow/processingTime, continuous "has no triggers"PARTIALm16 has one line on triggered vs continuous mode. Missing the comparison table. Flag: the slide mixes Structured Streaming triggers and pipeline modes. A continuous Lakeflow pipeline still processes in micro-batches; it is not the experimental continuous trigger.
Chapter 16 · Auto Loader and S3 / Unity Catalog storage lab (5:44 to 6:44) 72 items

Video span: 5:44:44 to 6:44:28. Content actually taught: (a) Auto Loader theory (5:44:45 to 5:47:55); (b) a one-hour lab "load data from Amazon S3 with Auto Loader" that turns into a Unity Catalog storage credential / external location setup on AWS, and ends without ever running Auto Loader (the LIST of the S3 path never succeeds).

Filler skipped: music cues (5:44:44, 5:48:01), a garbled caption run "beat beat beat..." (5:46:02 to 5:46:15, likely lost content about Auto Loader benefits ending in "...detection"), naming the notebook, deleting old buckets, "please work" asides, tab housekeeping, the closing "call it quits".

Chapter 16 inventory

Part A. Auto Loader theory

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
5:44:45Auto Loader automatically ingests new files from cloud storage with no manual tracking of which files were processedCOVEREDm15 "Auto Loader" intro
5:44:52Uses the cloudFiles source in Structured Streaming to ingest new files incrementally; supports schema evolution, multiple formats, massive scaleCOVEREDm15 (cloudFiles, millions of files)
5:45:00Picture: files land in cloud storage (S3, GCS, ...), Auto Loader loads them into DatabricksCOVEREDm15
5:45:10Best for large and continuously updating data sourcesCOVEREDm15 "Choosing an ingestion method" table
5:45:22Auto-detects and ingests new and existing files; formats CSV, JSON, Parquet, Avro, and morePARTIALm15 code comment lists json, csv, parquet, avro, orc, text, binaryFile, xml. Missing: existing files in the directory are processed on first run by default (cloudFiles.includeExistingFiles = true)
5:45:30Supported storage: S3, ADLS (Azure Data Lake Storage), GCS, Azure Blob Storage, DBFSPARTIALm13 lists s3://, abfss://, gs:// URIs; Azure Blob and DBFS/volume sources not listed for Auto Loader in m15 (volumes shown in code only)
5:45:30Handles schema drift and evolutionCOVEREDm15 "Schema inference and evolution" table
5:45:39Stores state in RocksDB in the checkpoint for exactly-once processingCOVEREDm15 ("in the checkpoint, using RocksDB ... exactly once")
5:45:39Integrates with DLT (now Lakeflow Declarative Pipelines) for production-grade pipelinesCOVEREDm15 ("streaming table over STREAM read_files"), m16
5:45:46Two file detection modes: directory listing and file notificationCOVEREDm15 "File detection modes"
5:45:54Code example: spark.readStream.format("cloudFiles").option("cloudFiles.format","csv")... reading new CSV files incrementallyCOVEREDm15 code block (json example; same pattern)
5:46:15Advice: prefer Auto Loader over a plain readStream file sourceCOVEREDm15 ("Default choice for file ingestion")
5:46:22Directory listing is the default mode; scans directories to discover new files; simple setup, no external dependencies; slower for large directories; choose for quick and easy setupCOVEREDm15 table
5:46:30File notification uses cloud-native event services to detect new files; faster and more cost-effective at scale; requires additional setup; choose for large-scale ingestionPARTIALm15 table covers how and when. Missing the explicit "more cost-effective at scale / avoids expensive listing" and "requires extra cloud setup and permissions" wording (the course instead says managed file events automate it)
5:47:06Schema inference limitation: by default Auto Loader may infer all fields as STRING, especially JSON (no strict typing). Example: price should be float, in_stock boolean, but both become stringCOVEREDm15 ("By default JSON and CSV columns are inferred as strings unless inferColumnTypes is true")
5:47:39Fix: give an explicit schema (.schema(...)), use cloudFiles.schemaLocation, or enable cloudFiles.inferColumnTypes = true; ensures correct types and avoids downstream transformation/validation issuesPARTIALm15 covers inferColumnTypes, schemaLocation, schemaHints. Missing: an explicit .schema() Auto Loader example. Video imprecision: schemaLocation does not fix types, it only stores/tracks the inferred schema (course is correct). Also missing: read_files (SQL) defaults inferColumnTypes to true, unlike the Python cloudFiles source

Part B. Lab: S3 into Databricks with Auto Loader (and Unity Catalog storage setup)

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
5:48:02Following the Databricks docs tutorial "Onboard data from cloud object storage" (AWS); the docs page can switch between AWS, GCS, AzureCOVERED (n/a)Navigation only; no gap
5:48:42Tutorial says create cluster then notebook; he uses existing serverless compute instead; notebook default language switched to SQL (tutorial offers SQL and Python)COVEREDm06 serverless, m07 notebook default language
5:49:31Source path to replace is an S3 bucket path (external location path)COVEREDm13, m15 (s3://... governed by external location)
5:50:28Question: how does a Databricks workspace get permission to S3? Expectation that it fails without connecting AWSPARTIALm19 explains storage credential + external location concept; no AWS walkthrough
5:50:44Creates an S3 bucket, generates a sample JSON file with an AI chatbot, uploads it to S3 (advice: put files in a folder)COVERED (n/a)Demo prep
5:51:25Doubt: does Auto Loader take JSON Lines or only JSON? (Answer: JSON format expects one object per line by default, i.e. JSON Lines; multiLine for pretty-printed files)PARTIALm13 covers multiLine for spark.read; not stated that the same applies to Auto Loader (cloudFiles.format json + multiLine option)
5:53:24SQL LIST '<path>' command to list files at a cloud path / volume pathMISSINGCourse only shows dbutils.fs.ls (m07). Add LIST 's3://...' and LIST '/Volumes/...' (requires READ FILES / READ VOLUME)
5:53:45First run fails: "no such file found" (no credential configured)PARTIALm19 implies need for external location; no troubleshooting note
5:54:11"Diagnose error" Assistant suggests IAM roles, access keys, and dbutils mountsPARTIALm07 mentions Assistant. Flag: access keys and mounts are legacy/deprecated advice; Unity Catalog storage credentials are the current way (m05 says mounts deprecated)
5:55:18Unity Catalog is the means to connect to S3COVEREDm19
5:55:26AWS requirements from docs: keep bucket in same region as the workspace/metastore; do not use dot notation in bucket namesMISSINGNot exam-critical; add one line in m19
5:55:46Manual step 1: create IAM role with a custom trust policy: principal is the Databricks Unity Catalog AWS role (Databricks account), action sts:AssumeRole, condition on external ID (placeholder 0000 initially, replaced later with the credential's external ID); skip the permission policy at firstMISSINGm19 says only "storage credential wraps a cloud identity (IAM role...)"
5:56:21Explains a principal (who is granted access) and that external IDs match a value from another accountMISSINGGeneric AWS knowledge, low exam relevance
5:58:44Step 2: IAM policy in the same AWS account as the bucket granting S3 actions (GetObject, PutObject, DeleteObject, ListBucket, GetBucketLocation, ...) on the bucket; KMS statement only if bucket uses SSE-KMS (removed because bucket uses SSE-S3)MISSINGLow exam relevance
6:01:34Docs note: policy grants read and write, but a storage credential can be marked read-only, so IAM write access is ignoredMISSINGAdd to m19 storage credential bullet
6:02:23Step 3: second IAM policy for file events (lets Databricks set up SNS/SQS for managed file events)PARTIALm15 mentions managed file events on external locations; not that the IAM role needs a file-events policy
6:04:11IAM policy names must be alphanumeric (error due to leading space)COVERED (n/a)Trivia
6:04:41Attach both policies to the IAM roleMISSINGPart of setup flow
6:05:07In Databricks: Catalog, then External data, then Credentials, then Create credentialMISSINGm19 has no UI path
6:05:45Two credential types: storage credential (access cloud storage) vs service credential (access cloud services such as AWS APIs from code)MISSINGAdd to m19
6:05:53Option "copy from instance profile" exists (legacy compute-instance identity)MISSINGLow relevance; flag instance profiles as legacy
6:06:01Enter credential name and IAM role ARN; advanced options can limit (read only, workspace access)MISSING
6:06:33Copy the credential's external ID; edit the role's trust relationship to include it and make the role self-assuming (role ARN in its own trust policy)MISSING
6:07:03Optional: bind the storage credential to specific workspacesPARTIALm19 covers workspace-catalog binding only; binding also applies to credentials and external locations
6:08:19Validate the storage credential (Validate configuration button). Must be credential owner, metastore admin, or hold CREATE EXTERNAL LOCATION. Result: SuccessMISSING
6:08:27Assumes he is metastore admin because he created the accountPARTIALm19 defines metastore admin; not that creator/account admin typically holds it in auto-provisioned setups (unsure, video speculation)
6:10:49Tutorial prerequisite: workspace enabled for Unity Catalog; in most accounts UC is enabled by default for new workspaces; older workspaces need a metastore created in the region and attachedPARTIALm05/m19 cover metastore one per region; missing "automatic enablement for new workspaces"
6:11:54Catalog "Add a connection" is for Lakehouse Federation sources (e.g. Redshift), not for S3 file accessCOVEREDm19 Lakehouse Federation / connection
6:12:17Confirm UC enablement: Account console, Workspaces, Metastore column (if present, attached); also a SQL query showing the current metastore (returned us-west-2), e.g. SELECT CURRENT_METASTORE();MISSINGQuery text not read aloud; CURRENT_METASTORE() is the documented function
6:12:28Account console (Manage account) lists workspaces with region (us-west-2), "serverless only" type, metastorePARTIALm05 mentions account level; no detail
6:13:18Notebook UI: Shift+Enter runs and moves; add cell with the "+" below a cellCOVEREDm07 (notebook basics)
6:14:16Tutorial prerequisites: READ VOLUME permission on a UC volume, or external volume / external location for the path, path to data source, cluster creation permissionCOVEREDm19/m20 (READ VOLUME, READ FILES)
6:15:25After the credential validates, create an external locationCOVEREDm19
6:16:06Create external location: AWS Quick Start option. Needs bucket name and a personal access token; launches an AWS CloudFormation stack (Lambda for Databricks API, copy-zips function, S3 data access IAM role) that creates the IAM role, storage credential and external location for you. Docs call this the recommended approachMISSINGNot in course. Add as the easy path
6:18:07Error: "bucket overlaps with existing external location": external locations cannot overlap (same or nested path)MISSINGAdd to m19
6:18:57Option 3: create external location in SQL: CREATE EXTERNAL LOCATION [IF NOT EXISTS] name URL 's3://bucket/path' WITH (STORAGE CREDENTIAL cred) [COMMENT '...']. Square brackets in docs mean optional, pasting them causes a syntax errorCOVEREDm19 code block (COMMENT and IF NOT EXISTS not shown, minor)
6:19:28Discovery: the CloudFormation route created a second storage credential (manual + automated = two credentials)COVERED (n/a)Demo detail
6:20:26Running the Auto Loader/list against the location fails: "Public DBFS root is disabled. Access denied on path"MISSINGInterpretation (not verified in video): this error appears when a path has no s3:// scheme or uses a location name instead of a URL, so it is resolved against the disabled DBFS root. LIST and Auto Loader take the URL, never the external location name
6:22:49Deletes CloudFormation stack, external location and credential to remove the overlap; SQL CREATE then succeeds (location "my S3 bucket")COVERED (n/a)Demo
6:24:12LIST my_s3_bucket (location name) gives "operation not allowed: LIST with resource type"; with quotes, gives the DBFS root errorMISSINGSee interpretation above; supports adding a LIST snippet with the correct URL form
6:24:52Assistant suggests mounting the bucket to DBFS with access key/secret in Python; he rejects itPARTIALm05 says mounts deprecated. Flag: mounts and hard-coded keys are legacy and unsupported on serverless/UC shared compute
6:25:14Grants on the external location via Permissions tab (gives all account users all privileges, later MANAGE and everything)COVEREDm20 (UI Permissions tab, ALL PRIVILEGES, MANAGE, READ FILES). Flag: granting everything to all users is an anti-pattern used only for debugging
6:25:48Possible limitation: serverless compute in the trial/Free EditionPARTIALm05 notes Free Edition limits. Unsure whether Free Edition supports external locations to your own S3; video never confirms
6:26:15External location Browse tab shows the bucket files; "All workspaces have access"; test connection shows read, write, list, delete permittedPARTIALBrowse/test not in course
6:27:04Running in the serverless Starter Warehouse (SQL editor)COVEREDm06/m07
6:27:33Trial forces serverless; docs: must use Unity Catalog to connect external data sourcesPARTIALm05 Free Edition note
6:27:59Audit logs live in system table system.access.audit; query with ORDER BY event_time DESC LIMIT 100; shows actions like token login, list credentials, list volumes, list tablesPARTIALm19 names the table only; no columns (event_time, action_name, service_name, user_identity) or example query
6:29:46Docs alternative: load data using a UC external location or (recommended) a UC volumeCOVEREDm05, m19 volumes
6:30:41Add data UI: "Create table from S3" through the external location, select files, Preview table; error "Cannot read files when the input path does not exist"PARTIALm07 Add data UI mentions upload only; not "create table from cloud storage via external location"
6:32:16Assistant lists S3 permissions to check: ListBucket, GetObject, PutObjectMISSINGLow relevance
6:33:05Redo with Quick Start, generate new PAT, grant all permissions on location and credentialCOVERED (n/a)Demo
6:35:06Free/trial tier at max compute; cannot add another computePARTIALm05 Free Edition limits (generic)
6:37:08Region mismatch: bucket and CloudFormation stack in Tokyo (ap-northeast-1) vs workspace/metastore us-west-2; AWS console kept defaulting to Tokyo; recreated everything in us-west-2 (Oregon). Docs recommend same region; cross-region adds egress costMISSINGAdd same-region best practice to m19
6:42:49Final attempt with everything in us-west-2 and full permissions on location and credential still fails; root cause never foundPARTIALCourse gives no working end-to-end lab. Suggest a known-good path: upload to a UC volume, then Auto Loader from /Volumes/...
6:43:58Mentions "catalog volume" as possible alternative way to add dataCOVEREDm19 Volumes
6:44:07Takeaway/opinion: docs instructions are not always clear; the lab taught catalog configurationCOVERED (n/a)Opinion

Outdated or wrong vs current Databricks (late 2026)

  • 5:47:39: "provide schemaLocation" as a way to fix types is imprecise. schemaLocation stores the inferred schema; types are fixed by an explicit schema, cloudFiles.schemaHints, or cloudFiles.inferColumnTypes. Course is correct.
  • 5:46:30: "File notification requires additional setup" is now largely automated by managed file events on Unity Catalog external locations (course m15 covers this). Classic cloudFiles.useNotifications still needs cloud permissions.
  • 6:24:52 and 5:54:46: Assistant advice to mount S3 or use access keys is legacy; DBFS mounts are deprecated and not available on serverless. Course m05 agrees.
  • 6:20:26 / 6:24:12: likely user error (passing an external location name or a scheme-less path to LIST), not a platform bug. This is interpretation; the video does not confirm.
  • "DLT" is now Lakeflow Declarative Pipelines (course m16 notes the rename).
  • Unsure: whether the account used (trial, serverless-only) restricts external locations; not verifiable from the video.
Chapters 17 to 20 · Delta Live Tables, Jobs Monitoring, Unity Catalog, Access Control, Databricks Connect, pools, Photon (6:44 to 7:28) 101 items

Slice read in full: line 3256 ("Chapitre 17 : Delta Live Table", 6:44:37) to line 3629 (end of file, after "cha chiao" at 7:28:12). Course checked: databricks-de-associate-course.html modules m05, m06, m07, m08, m09, m11, m16, m17, m19, m20.

Legend: COVERED = the fact is in the course; PARTIAL = topic present but the specific fact/number is missing; MISSING = not in the course. "Flag" = video outdated, wrong, or in tension with the course.

Chapter 17: Delta Live Table (6:44:37 to 6:49:54)

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
6:44:38DLT definition: declarative framework that simplifies building batch and streaming ETL pipelines with built-in data quality, orchestration, monitoring. Visual pipeline graph left to right.COVEREDm16 lede + "Core idea" (also renamed Lakeflow Declarative Pipelines, m00 "Names that changed")
6:44:48Key benefits: unified batch + streaming; declarative syntax in a few lines of SQL/Python; automated orchestration and error recovery; built-in quality checks ("expect"); incremental and CDC support; serverless compute for cost efficiency; visual monitoring and lineage trackingCOVEREDm16 Core idea, Expectations, AUTO CDC, Pipeline settings (serverless recommended), Monitoring
6:45:18Common use cases: declarative ETL, CDC, real-time streaming and ingestion, SQL-based pipelines with automated scalingCOVEREDm16 (dataset table, CDC, enhanced autoscaling)
6:45:25Slide example uses CREATE OR REFRESH LIVE TABLE ... AS SELECTPARTIAL / FlagCourse uses current CREATE OR REFRESH STREAMING TABLE / MATERIALIZED VIEW, never mentions the legacy LIVE TABLE keyword or LIVE. prefix. Add a "legacy syntax" note so the video slides are recognisable (m16).
6:45:44Pipelines are defined by notebook libraries (transformation code, SQL or Python) and targets (catalog + schema where output tables are saved)COVEREDm16 "Pipeline settings and modes": Source code + Target. Course says "source code" not "libraries"; the UI term "libraries" is added in the snippet below.
6:46:03DLT automatically manages execution order based on dependenciesCOVEREDm16 Core idea (DAG from references)
6:46:28Syntax: LIVE tells DLT to manage the table/view lifecycle; STREAM treats the source as streaming even if it is batch-capablePARTIAL / FlagSTREAM() COVERED (m16 SQL syntax). LIVE keyword is legacy (deprecated in favour of CREATE OR REFRESH STREAMING TABLE / MATERIALIZED VIEW, and the LIVE. schema prefix is no longer required with the default publishing mode). Missing from course.
6:47:01Expectations = data constraints validating incoming data; violations handled with the ON VIOLATION clauseCOVEREDm16 Expectations
6:47:10ON VIOLATION FAIL UPDATE stops the pipeline if any row violates; ON VIOLATION DROP ROW skips only invalid rows, rest continues. Use FAIL for missing required fields, DROP when skipping bad records is acceptableCOVEREDm16 Expectations table (also covers default "warn" which the video omits)
6:47:37Example CONSTRAINT valid_location EXPECT (location IS NOT NULL) ON VIOLATION ...COVEREDm16 SQL syntax (valid_id EXPECT (order_id IS NOT NULL) ON VIOLATION DROP ROW)
6:47:51CDC: tracks inserts, updates, deletes in source so the target reflects changes without reprocessing everything; keeps warehouses/analytics tables current, reduces cost and latency, avoids full refreshesCOVEREDm02 "Change data capture (CDC)", m16 CDC with AUTO CDC
6:48:00Command APPLY CHANGES INTO target FROM source_stream; source must include a change-type column; target Delta table; primary key to match rows; insert = added, update = matched on key and updated, delete = matched on key and removed if configuredCOVERED / Flagm16: AUTO CDC with KEYS, APPLY AS DELETE WHEN, SEQUENCE BY; "Older name: APPLY CHANGES INTO". Nuance: a change-type column is only needed to drive deletes/truncates; a sequencing column (SEQUENCE BY) is what is mandatory. Course is correct; video simplifies.
6:48:42Keeping a separate table of individual changes is useful in OLAP systems as another way to see changes incrementallyCOVEREDm02 CDC / SCD; m16 SCD Type 2 history
6:48:59Built-in error diagnostics: when a pipeline fails you see which notebook/transformation failed, the error message and failing line, the pipeline stage and table name; debug without manually tracing notebook dependenciesPARTIALm16 Monitoring mentions DAG status and errors in event log; not the per-dataset error pane (notebook, line, table). Snippet below.
6:49:30DLT event log: tracks state changes (initialization, updates, failures), identifies notebook/table causing failure, metrics, schema changes, job duration, audit data lineage; "event log" tab in UI with filterCOVEREDm16 Monitoring pipelines (event_log(...) TVF: flow progress, data quality, lineage, cluster events, errors)

Chapter 18: Jobs Monitoring and Visualization (6:49:58 to 6:55:47)

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
6:50:02Databricks Jobs automate and schedule workflows (notebooks, pipelines, scripts) using cron expressionsCOVEREDm17 Triggers and schedules (Quartz cron)
6:50:10Cron = time-based syntax for recurring tasks; example "every day at 2:30 a.m.": first field 30 minutes, second field 2 hours, then day, month, weekday. Advice: ask an AI to write cron for youPARTIAL / Flagm17 names "Quartz cron syntax with time zone" but gives no example. Flag: the video explains Unix 5-field cron (30 2 * * *). Databricks Jobs use Quartz cron: seconds first, and ? for one of day-of-month/day-of-week, so 2:30 a.m. daily is 0 30 2 * * ?. Snippet below.
6:50:38Job features: schedule with cron; chain tasks with dependencies; pass parameters into notebooks; monitor job history and outputs; trigger notebooks, DLT pipelines, JARs, scriptsCOVEREDm17 Jobs/tasks/DAG, Task types, Parameters, Monitoring
6:51:04Multi-task jobs: each task can depend on successful completion of predecessor(s); used for ETL, ML training, staged workflows; dependent tasks do not run if predecessors fail; outputs passed with task parametersCOVEREDm17 DAG, Run if (default All succeeded), "Upstream failed" status, task values
6:51:20Example DAG: Task 1 no dependencies; Tasks 2 and 3 wait for Task 1 (run in parallel); Task 4 runs only after 2 and 3 succeedCOVEREDm17 ("Tasks without dependencies between them run in parallel", depends_on)
6:51:44Monitoring: visual job status board, run history, failure alerts, filter and search; Workflows sidebar groups Jobs and Pipelines; recent runs list; multitask trackingCOVEREDm17 Monitoring jobs; m07 sidebar ("Jobs & Pipelines", the current name of Workflows)
6:52:17Retry policy: automatically reruns failed tasks with a delay between attemptsCOVEREDm17 Retries, timeouts and thresholds
6:52:28Default retries depend on job configuration: for most configurations the default is no retry on task failure; serverless jobs auto-optimize retries by defaultMISSINGNot in m17. Snippet below. (Matches current docs to my knowledge: serverless jobs have "auto-optimization" that retries failed tasks unless disabled.)
6:52:44Retry interval is in milliseconds, measured between the start of the failed run and the subsequent retry runPARTIALm17 says "minimum interval between attempts" without unit or reference point
6:52:53If both timeout and retries are configured, the timeout applies to each retry (each attempt)MISSINGSnippet below
6:52:53Email notifications on job Start, Success, Failure, Duration exceeded ("took longer than expected"); notification shows attempts, state, durationCOVEREDm17 "Other job settings: notifications on start, success, failure, duration warning"
6:53:17Send to one or more email addresses or third-party destinations (system destinations)COVEREDm17 (email, Slack, Teams, webhooks)
6:53:24Custom SQL alerts: run against a metric/query, define a trigger condition, schedule frequency, send to email or webhooks, optionally notify when the condition returns to normalPARTIALm17 SQL alerts covers query + schedule + condition; missing destinations and the "notify when back to normal" option
6:53:52Debugging failed tasks: identify, fix, rerun only the failed parts instead of starting overCOVEREDm17 Repair run
6:54:01Matrix view (runs grid): hover a cell for error message, start/end time, cluster info, logs, outputCOVEREDm17 Monitoring jobs (matrix view, run details)
6:54:12Databricks Assistant helps diagnose errors with AI ("Diagnose error"); instructor: "they want you to know it for the exam", he got no question on itPARTIALm07 lists Assistant for "fixing code"; not tied to failed job runs/notebook errors. Snippet below.
6:54:37Databricks SQL built-in visualizations: line, pie, scatter and other charts; customize axes, colors, series; save and reuse in dashboards; auto-update with new query resultsPARTIALm07/m17 mention visualizations from SQL results and dashboards; chart types and customization not listed (low exam value)
6:54:51Click path: run query in SQL editor, Results pane, "+" > Visualization, then configurePARTIALm07 "build charts" only. Snippet below.
6:55:15Scheduled dashboard refresh: set frequency (example every 4 hours) and start time; choose time zone; filter behavior (default vs saved filters); any SQL warehouse can run the refresh; optional email subscription to snapshots; "Add schedule" dialogPARTIALm17 says "scheduled refresh and email subscriptions"; missing the schedule fields (frequency, start, time zone, warehouse, filters)

Chapter 19: Unity Catalog (6:55:56 to 7:06:33)

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
6:55:57UC = unified governance layer to centrally manage access, auditing, lineage and organization of data and AI assets across workspaces and cloudsCOVEREDm19 lede, "What Unity Catalog provides"
6:56:08Hierarchy: catalog sits under metastore; schemas etc. under catalogCOVEREDm19 object hierarchy
6:56:24Components: catalog (groups assets by business unit/domain); schema (contains tables/views, "think of it as a database"); tables (tabular) and views (saved query results); volumes (unstructured files); functions and ML models (reusable logic, AI); lineage and audit logs (usage, access, transformations)COVEREDm19 hierarchy + features; m11 namespace (schema = database)
6:56:58Catalog types: standard catalog, and foreign catalog (Lakehouse Federation only) that mirrors a database in an external system for read-only queries in DatabricksPARTIALm19 "Lakehouse Federation: connection + foreign catalog lets you query ... in place". "Read-only" not stated. Snippet below.
6:57:18A default catalog is configured for each UC-enabled workspace; used when no catalog is specifiedMISSINGm11 only mentions USE CATALOG to set a session default; m16 mentions pipeline default catalog. Snippet below.
6:57:27Limit access by workspace boundaries via workspace-catalog bindingCOVEREDm19 Other UC features (workspace-catalog binding)
6:57:50Three-level namespace catalog.schema.table, e.g. main.sales.customers; catalog = top container, schema = logical database, table = data; each level has its own permissions; standard SQL SELECT * FROM main.sales.customersCOVEREDm11 three-level namespace (main.sales.orders), m19, m20 privilege model
6:58:28Lineage: shows how data flows and transforms, captured automatically for all queries in UC; example MV <- view <- table <- external locationCOVEREDm19 lineage bullet
6:58:54Lineage captured at runtime across all supported languages; column-level; visible across all workspaces sharing the same metastorePARTIALm19 has table + column level; missing "all languages" and "across workspaces on same metastore"
6:59:01Lineage viewable in Catalog Explorer, queryable via system tables or REST API; retained for one yearPARTIALm19 has Catalog Explorer + system.access.table_lineage / column_lineage; missing REST API and 1-year retention. Snippet below.
6:59:14Three UC table types: managed (default when nothing specified, fully managed by Databricks, Delta underneath); external (aka unmanaged, data in AWS/Azure/GCP storage, several formats); foreign (data in external systems via Lakehouse Federation, read-only)PARTIALm11 managed vs external COVERED; foreign tables as a third type not described. Snippet below.
7:00:17Databricks supports Delta Lake and Apache Iceberg tables; legacy Hive tables and "live tables" exist for backward compatibility (not exam-relevant per instructor)PARTIALm11 Formats "Delta (or Iceberg)"; m11 hive_metastore. "Live tables" legacy not mentioned (snippet covers it in m16).
7:00:38Comparison: managed = read/write + performance optimization + storage cost optimization; external = read/write, no automatic optimization (you manage it in your cloud); foreign = read-only, no optimizationPARTIALm11 table covers managed vs external; foreign column missing. Snippet below.
7:01:26Delta tables = tables backed by Delta Lake; stored as a directory of files in cloud object storage with metadata registered in the metastore under a catalog and schema; Delta is the default format, "table" means Delta unless statedCOVEREDm09 How Delta works; m05 core components
7:02:00Databricks recommends fully qualified table names instead of file paths when working with Delta tablesMISSINGNot stated anywhere. Snippet below (m09).
7:02:15Non-Delta tables lack Delta's transactional guarantees and performance optimizationsPARTIALImplied in m09/m11; not explicit
7:02:29Managed UC tables are always Delta, default and recommendedCOVERED / Flagm11 "Delta (or Iceberg)". Flag: video says "always Delta"; UC now also supports managed Iceberg tables. Course is more current.
7:02:48External tables can be Delta, support legacy integration patterns with external Delta clients; foreign tables might be Delta depending on the foreign catalog, without UC managed-table optimizationsPARTIALExternal formats COVERED in m11; foreign tables missing (snippet)
7:03:13Streaming tables: Lakeflow Declarative Pipelines datasets backed by Delta, with an append or AUTO CDC ... INTO flow for incremental processingCOVEREDm11 Views table, m16 datasets and AUTO CDC
7:03:21Materialized views: Delta-backed, materialize query results with managed flow logic; seen in the pipeline "dataset type" dropdownCOVEREDm11, m16
7:03:45Hive metastore tables: foreign tables in an external/federated Hive metastore, and tables in the legacy workspace Hive metastore (managed or external, can be Delta)PARTIALm11 mentions hive_metastore catalog; Hive metastore federation not mentioned (low exam value)
7:04:09Views: read-only objects resulting from a query over tables/views in the metastore; a view stores only the query text; unlike Spark DataFrames, queryable from anywhere in Databricks with permission; creating a view processes/writes no dataCOVEREDm11 Views ("No. Saved query, recomputed at each read", permanent object governed by UC)
7:04:54View type: metric view = reusable business metrics centrally maintained, accessible to all workspace usersMISSINGNot in course. Snippet below (m11).
7:05:01Materialized views: incrementally calculated/updated results of the defining queryCOVEREDm11
7:05:09Temporary views: limited scope, not persisted, not registered to a schema/catalogCOVEREDm11
7:05:15Dynamic views: row- and column-level access control plus data maskingCOVEREDm20 Row filters (dynamic views as older alternative)
7:05:32Volumes: logical storage in cloud object storage for non-tabular data; tables govern tabular data, volumes govern non-tabular data; sit under schema next to tables, views, functions, modelsCOVEREDm05 Storage, m19 Volumes
7:06:08Managed vs external volumes (managed by Databricks vs storage you manage)COVEREDm19 Volumes
7:06:15Same path from Spark, SQL, Python and other libraries: /Volumes/<catalog>/<schema>/<volume>/<path>/<file>COVEREDm05 Storage (path pattern)
7:06:33"You can also use DBFS, it is supported"COVERED / Flagm05: DBFS root and mounts deprecated for storing data. Video understates the deprecation; course is correct.

Chapter 20: Access Control, plus Databricks Connect, metastore, pools, Photon (7:06:45 to 7:28:12)

TimestampItem (precise, with the facts/numbers)StatusCourse location / gap note
7:06:45Access control scope depends on object type: workspace level (notebooks, SQL warehouses) = ACLs; account level (users, groups, service principals) = account RBAC (account roles, apply across all workspaces); data level (tables, schemas, views) = Unity Catalog fine-grained permissionsPARTIALm20 "Other access controls" (workspace ACLs) and m19 admin roles exist separately; no single "three systems by object type" summary. Snippet below.
7:07:33UC privileges on catalog, schema, table, view; video calls it "RBAC"; catalog = top container, schema = logical division (Postgres analogy: database > schema), tables/views = data assets; access assigned per layer with USE, SELECT, MODIFYCOVERED / Flagm20 privilege model and Common privileges. Interpretive flag: Databricks documents UC as a privilege (grant) model on securables, not role-based; "RBAC" here is the instructor's label.
7:08:48Fine-grained, SQL-based access control; privileges flow downward catalog > schema > table/viewCOVEREDm20 "Privileges inherit downward"
7:09:03GRANT / REVOKE apply to catalogs, schemas, tables, views, volumes, functionsCOVEREDm20 GRANT, REVOKE, SHOW GRANTS
7:09:12Key privileges listed: SELECT, INSERT, UPDATE, DELETE, USE CATALOG, MANAGECOVERED / Flagm20 lists SELECT, MODIFY, USE CATALOG, MANAGE. Flag: Unity Catalog has no separate INSERT / UPDATE / DELETE privileges; writes are covered by MODIFY. (INSERT/UPDATE/DELETE-style privileges exist only in legacy Hive table ACLs as MODIFY too.) Course is correct; beware the video slide.
7:09:21Who can grant: metastore admins, object owners, users with MANAGECOVEREDm20 privilege model
7:09:30Permissions settable via SQL or Catalog Explorer UICOVEREDm20 ("In the UI: Catalog Explorer, select the object, Permissions tab, Grant")
7:09:56Service principal = secure API-only identity for automation and programmatic access (jobs, scripts) without personal accounts/credentials; similar concept in Azure/GCPCOVEREDm19 Identities
7:10:14Roles: account admin (full management across workspaces and roles); workspace admin (assigns service principals to workspaces, manages workspace access)COVEREDm19 Admin roles
7:10:21Service Principal Manager role (manages roles on a service principal; held by its creator or account admin); Service Principal User role (lets a user run jobs as the service principal; must be assigned)MISSINGNot in course; relevant to "Run as" a service principal (m17) and bundles run_as (m08). Snippet below.
7:10:36Service principals can be added to groups, granted UC access, assigned admin rolesPARTIALm19 identities/groups; "assigned admin" not stated
7:10:48Isolate business units: separate catalogs per BU (finance, marketing, engineering) for segmentation, fine-grained control, simpler auditing; CREATE CATALOG finance; then GRANT ALL PRIVILEGES ...; each catalog has its own schemas/tables for authorized usersPARTIALm19 "one catalog per environment or per business domain"; no CREATE CATALOG + grant example. Snippet below. Flag: video says grant ALL "to say who is the owner"; ownership is set with ALTER CATALOG ... OWNER TO, ALL PRIVILEGES does not make someone owner (and does not include MANAGE).
7:11:32UC best practices: catalogs isolate environments (dev, staging, prod) or business units; workspaces mapped to environments/teams (dev WS, staging WS, prod WS); a catalog may be bound to one or several workspaces; groups control access (developers, testers, analysts in prod; BU developers, BU testers)COVEREDm19 hierarchy note + binding + Identities (grant to groups)
7:12:58Databricks Connect: client library for the Databricks Runtime that connects IDEs/apps to Databricks computeMISSINGNot in course. Snippet below (m08).
7:13:21Supported IDEs: VS Code, PyCharm, RStudio Desktop, IntelliJ, notebook servers, custom apps; languages Python, R, ScalaMISSINGSnippet below
7:13:34Built on open-source Spark Connect: decoupled client-server architecture, remote connectivity using the DataFrame API with unresolved logical plans as protocolMISSINGSnippet below
7:13:50The Databricks extension for VS Code includes Databricks ConnectMISSINGSnippet below
7:14:13Lab step: install "Databricks" extension from VS Code Extensions marketplace into an empty folderMISSINGSnippet below
7:15:04Lab: create configuration; Databricks host = workspace URL from the browser address bar (remove trailing /)MISSINGm08 shows databricks auth login --host (CLI) but not the extension. Snippet below.
7:15:22Lab: auth choices OAuth (user-to-machine) or personal access token; profile name dev; browser opens, "authenticated"PARTIALm08: OAuth profile via CLI, ~/.databrickscfg. PAT not mentioned.
7:15:53Lab outcome: OAuth login failed twice in VS Code despite browser success. Fix: switched to personal access token, generated a new one ("development") in the workspace, pasted it, connection succeeded. Advice: never share tokens; rotate/delete after useMISSINGSnippet below
7:17:06Lab: create a project from the extension = bundle init flow: choose folder, profile dev, template default-python; project name must contain only letters, numbers, underscores (connect_example); include stub notebook / Python package: yes; use serverless compute: yesPARTIALm08 Templates: databricks bundle init with default Python template. Extension flow and naming rule missing.
7:18:45Lab gotcha: the template created a folder inside the selected folder; fix by dragging it up one level and deleting the empty folderMISSINGMinor; included in lab snippet
7:19:04Lab: select the project and target dev; choose compute: connect to serverless compute (it was not selected by default)MISSINGSnippet below
7:19:56Lab: generated project src/connect_example/main.py plus a notebook; "Run on Databricks" button runs the file remotely; code spark.read.table(...) on the samples NYC taxi data, .show(5)MISSINGSnippet below
7:20:32Lab: the remote run appears under Job runs with a running duration; completed in 1 min 23 s, printing 5 taxi rowsMISSINGSnippet below
7:21:16Lab: second example from docs page "Run Python on a cluster and as a job using the Databricks extension for VS Code": SparkSession, StructType schema (customer id, first name...), createDataFrame, show(); pasted into the default notebook; ran as a workflow ("default notebook using Databricks workflow"), each cell executed and output visible; instructor: "is that convenient? No, not really"MISSINGSnippet below
7:24:04Metastore = top-level container for metadata in UC; registers metadata about data and AI assets and the permissions governing them; a workspace must have a UC metastore attached to use UCCOVEREDm05 Account/workspace/metastore; m19 hierarchy
7:24:30Metastore details: default catalog came with it; optional storage root (e.g. S3 bucket); lives in a specific region; permissions can be applied to itCOVERED / Flagm05 ("one per region"), m19 (managed storage at metastore level). Flag: video says metastores "are almost always created when you create a catalog"; it is the reverse: catalogs are created inside a metastore, and new accounts get a metastore auto-provisioned per region.
7:24:56Pools: set of idle, ready-to-use instances; Databricks recommends serverless instead of pools when the workload supports itPARTIALm06 Instance pools (idle VMs, faster startup); recommendation to prefer serverless missing
7:25:11Pools reduce cluster start and autoscaling times; if no idle instance, pool expands by allocating from the cloud provider; released instances return to the pool for other clusters; only clusters attached to the pool can use itPARTIALm06 has faster startup; expand/return/attached-only behaviour missing
7:25:36Cloud provider billing applies to idle pool instances; no DBU charge while idleCOVEREDm06 Instance pools
7:25:50Photon: high-performance Databricks-native vectorized query engine; SQL and DataFrame API calls run faster, lower total cost per workload; checkbox at cluster creation; on by default especially on serverlessCOVEREDm05 Core components, m06 (Photon checkbox)
7:26:06Photon features: accelerated queries; faster when data is repeatedly accessed; robust scans; faster Delta and Parquet writes; replaces sort-merge joins with hash joins; helps Spark SQL, DataFrames, feature engineering, GraphFrames, XGBoostPARTIALCourse says "speeds up SQL and DataFrame workloads with no code change"; feature list missing
7:26:33Photon runs by default on SQL warehouses and serverless compute for notebooks and workflowsCOVEREDm05 ("Always on in SQL warehouses and serverless"), m06
7:26:40Photon enabled by default on compute running DBR 9.1 LTS and above (screenshot shows 15.4); limitations exist (not needed for exam)MISSINGSnippet below (m06)
7:27:04Photon demo: Compute > Create compute > scroll to Photon acceleration checkbox; tooltip "Accelerates Apache Spark workloads, reducing your total cost per workload". Side note: serverless-only workspace and quota warning, old compute deletedCOVEREDm06 "Photon is a checkbox"
fillerMusic stingers, "there you go", pen/eraser tool asides, "I'll see you in the next one", "cha chiao", Google account login asidefiller skipped

Totals

  • Inventory items: 101 (excluding filler line)
  • COVERED (incl. COVERED / Flag): 55
  • PARTIAL (incl. PARTIAL / Flag): 27
  • MISSING: 19

Outdated or wrong in the video (versus late-2026 Databricks or the course)

  1. CREATE LIVE TABLE / LIVE keyword (6:46:28): legacy DLT syntax. Current: CREATE OR REFRESH STREAMING TABLE / MATERIALIZED VIEW; product renamed Lakeflow Declarative Pipelines; APPLY CHANGES INTO renamed AUTO CDC. Course uses current syntax.
  2. Cron example (6:50:16) is Unix 5-field; Databricks Jobs use Quartz cron (seconds field first, ? placeholder).
  3. "Key privileges SELECT, INSERT, UPDATE, DELETE" (7:09:12): UC uses MODIFY for all writes; there are no INSERT/UPDATE/DELETE privileges.
  4. "Managed tables are always Delta" (7:02:29): UC also supports managed Apache Iceberg tables now (course already says "Delta (or Iceberg)").
  5. "DBFS is supported" (7:06:33): DBFS root and mounts are deprecated for data; volumes are the recommended path (course correct).
  6. "Metastores are created when you create a catalog" (7:24:34): reversed; catalogs live in a metastore.
  7. GRANT ALL to "say who is the owner" (7:11:11): ownership is a separate concept (ALTER ... OWNER TO).
  8. "Source must include a change type column" for CDC (6:48:08): what is required is keys + a sequencing column; an operation column is needed only to apply deletes/truncates.
  9. UC described as "RBAC" (7:07:33): interpretive. Databricks documents UC as privilege grants on securables; RBAC applies to account roles.

Unsure items (not flagged as wrong): exact serverless-jobs retry behaviour naming ("auto-optimization") and the 1-year lineage retention match current Databricks docs to my knowledge; verify in the docs if you rely on the number.