You are a senior front-end engineer and SEO/LLM optimisation expert working on the Databricks tutorial section for level9ai.com.
Context in this repo:
Markdown tutorial sources: tutorials/dbx/content/tutorials/*.md
Topic index: tutorials/dbx/content/dbx_tutorial.md (section + subtopics)
Layout and navigation:
layout/header.md → matches the top navigation structure and menu items of https://level9ai.com (Home, How We Work, Solutions, Contact, etc.)
level9ai
+2
tutorials/dbx/layout/nav-config.json → section + topic structure for the left navigation
Generation rules:
skills/databricks_tutorial_generation_guidelines.md
Goal:
For each Markdown tutorial in tutorials/dbx/content/tutorials/, generate a standalone HTML5 file in the same folder that:
Uses the Markdown content as the body.
Adds a global header and footer consistent with this website's landing page:
Top header: logo on the left, navigation menu with links and labels that mirror the live site (Home, How We Work, AI Solutioning & Data Engineering, etc.).
level9ai
+2
Footer: simple footer matching this website's style and structure (company name, copyright, minimal links).
level9ai
Implements a left navigation panel that:
Reads tutorials/dbx/layout/nav-config.json and shows all sections and topics, highlighting the current page.
Uses clean + list markup for the left column.
Conforms exactly to the SEO, structured data, accessibility, performance, and LLM optimisation rules in databricks_tutorial_generation_guidelines.md.
Core Web Vitals friendly (static HTML, no blocking JS, explicit image sizes, etc.).
pageonepower
+2
Includes JSON-LD for Article, HowTo, FAQPage, and BreadcrumbList as described in the guidelines.
Includes an LLM‑oriented hidden metadata block and is suitable to be listed in /llms.txt according to emerging best practice.
thepromptbench
+2
Concrete instructions:
For each tutorials/dbx/content/tutorials/{slug}.md:
Treat {slug} as TOPIC_SLUG and the H1 text as TOPIC_TITLE.
Use tutorials/dbx/content/dbx_tutorial.md and tutorials/dbx/layout/nav-config.json to determine TOPIC_SECTION and where this page sits in the left navigation.
Convert the Markdown into HTML for the while preserving:
Heading hierarchy (h1–h3), lists, code blocks, tables, and term definitions.
mermaid blocks as …
inside with , plus a single Mermaid loader script in per page.
Wrap the in a full HTML document:
:
and following the rules in databricks_tutorial_generation_guidelines.md.
Canonical for https://level9ai.com/tutorials/databricks/{TOPIC_SLUG}/.
Open Graph and Twitter tags.
JSON‑LD snippets for Article, HowTo (if step‑by‑step), FAQPage, and BreadcrumbList, using Level9 AI as the publisher/organization (Level9 AI, https://level9ai.com).
spoclearn
+2
Mermaid loader module script (deferred / type="module").
:
Skip link: Skip to main content .
: build a nav bar whose structure and labels match level9ai.com’s current main menu and sub‑links. Use clean HTML and descriptive anchor text, not copied styling.
level9ai
+2
with two columns:
→ build the left navigation tree from nav-config.json, marking the current topic as active.
containing:
with:
The hidden .llm-meta block from the guidelines at the top.
The hero section, BLUF, sections, diagrams, code, FAQ, and related topics as generated in the Markdown.
: simple footer that matches Level9 AI’s tone and basic link structure (company name, copyright, key links).
Ensure all the following are true for each page:
Exactly one (the tutorial title).
Primary keyword appears in , , BLUF paragraph, and at least one .
All images have alt, width, and height; hero images use loading="eager" + fetchpriority="high", inline images use loading="lazy".
All code blocks are marked with class="language-{lang}".
All tables have or aria-label.
Internal links use descriptive anchor text and point to the correct Level9 AI URLs.
For this run, generate HTML for all tutorials currently in tutorials/dbx/content/
Output them as a batch, using this separator format so they can be saved directly:
```text
=== FILE: public/tutorials/databricks/{slug}.html ===
…full HTML…
=== FILE: public/tutorials/databricks/{next-slug}.html ===
…
```
Do not include Markdown in the output; only the final HTML files.
Now, read the referenced files and generate the HTML files for all tutorials in content/tutorials/ using this structure.
Skip to main content
What is Databricks
Core Components of the Databricks Platform
The Databricks platform is made of a few interlocking components: the workspace, compute (clusters and SQL Warehouses), Delta Lake storage, Unity Catalog governance, Lakeflow for orchestration and ingestion, and Mosaic AI for machine learning. Understanding how these pieces connect lets you design end-to-end pipelines without guessing where each responsibility lives. After reading, you will be able to name each core component, explain its role, and wire them together for a working data flow.
Identify each core component and the responsibility it owns Understand how compute, storage, and governance interact at run time Assemble a minimal pipeline that touches every major component
Who this is for: Data engineers and architects building a mental map of the platform's building blocks.
Part of the What is Databricks section in the Databricks tutorial series.
Architecture / Concept Overview: Core Components of the Databricks Platform
The components layer cleanly: the workspace is your entry point; compute executes work; Delta Lake holds data; Unity Catalog governs every asset; Lakeflow orchestrates ingestion and jobs; and Mosaic AI builds and serves models. Each component does one job well and connects through open interfaces, so you can adopt them incrementally.
%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#6C4FF6", "primaryTextColor": "#FFFFFF", "primaryBorderColor": "#3B2E8F", "lineColor": "#7A7F9A", "secondaryColor": "#00B5AD", "tertiaryColor": "#F4F5FB", "fontFamily": "Inter, Segoe UI, Helvetica, sans-serif", "fontSize": "15px"}}}%%
graph TD
classDef ingestion fill:#FF7A59,stroke:#C2452A,color:#FFFFFF,stroke-width:1px;
classDef processing fill:#6C4FF6,stroke:#3B2E8F,color:#FFFFFF,stroke-width:1px;
classDef storage fill:#00B5AD,stroke:#00736E,color:#FFFFFF,stroke-width:1px;
classDef serving fill:#3DD68C,stroke:#1E8F58,color:#10341F,stroke-width:1px;
classDef governance fill:#9B5DE5,stroke:#5E2E99,color:#FFFFFF,stroke-width:1px;
WS[Workspace]:::processing --> Compute[Clusters and SQL Warehouses]:::processing
Lakeflow[Lakeflow Orchestration]:::ingestion --> Compute
Compute --> Delta[(Delta Lake Storage)]:::storage
UC[Unity Catalog]:::governance -.governs.-> Delta
UC -.governs.-> Compute
Delta --> Mosaic[Mosaic AI]:::serving
Delta --> SQLBI[SQL and BI]:::serving
*The workspace and Lakeflow drive compute, which reads and writes Delta Lake; Unity Catalog governs it all, and outputs feed Mosaic AI and BI.*
At run time, a job flows through these components in sequence, from orchestration to governed output.
%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#6C4FF6", "primaryTextColor": "#FFFFFF", "primaryBorderColor": "#3B2E8F", "lineColor": "#7A7F9A", "secondaryColor": "#00B5AD", "tertiaryColor": "#F4F5FB", "fontFamily": "Inter, Segoe UI, Helvetica, sans-serif", "fontSize": "15px"}}}%%
sequenceDiagram
participant J as Lakeflow Job
participant C as Compute
participant D as Delta Lake
participant U as Unity Catalog
J->>C: Trigger task on cluster
C->>U: Check permissions
U-->>C: Authorize
C->>D: Read source and write result
D-->>C: Commit acknowledged
C-->>J: Report success
*A scheduled job triggers compute, which authorizes against Unity Catalog before reading and writing governed Delta tables.*
Key Terms
Workspace The collaborative environment (notebooks, queries, dashboards, repos, and settings) where teams build and manage assets. Compute Execution resources: all-purpose and job clusters for engineering and ML, and SQL Warehouses for BI/SQL workloads. Delta Lake The default storage layer providing ACID tables, time travel, and performance optimizations on object storage. Unity Catalog The unified governance component managing permissions, lineage, discovery, and auditing across all data and AI assets. Lakeflow Databricks' framework for ingestion, declarative pipelines, and job orchestration across the lakehouse. Mosaic AI The component suite for building, fine-tuning, serving, and governing machine learning and generative AI models.
Prerequisites and Setup
A Databricks workspace with Unity Catalog enabled Permission to create compute (a cluster and a SQL Warehouse) A catalog and schema to write into Basic familiarity with notebooks and SQL
Step-by-Step Implementation
Create compute Provision an all-purpose cluster for development; it is the component that executes notebook and job code.
# bash cell - create a small all-purpose cluster\ndatabricks clusters create --json '{\n"cluster_name": "dev",\n"num_workers": 1,\n"spark_version": "managed-lts",\n"node_type_id": "standard",\n"autotermination_minutes": 30\n}'Define governed storage Create a catalog and schema in Unity Catalog so every table you create is governed from the start.
-- SQL cell - governance namespace\nCREATE CATALOG IF NOT EXISTS ops;\nCREATE SCHEMA IF NOT EXISTS ops.telemetry;Ingest with Lakeflow Use a declarative pipeline (Lakeflow) so ingestion logic is managed, retried, and observable rather than hand-scheduled.
# Python cell - a declarative Lakeflow streaming table\nimport dlt\n@dlt.table(name="events_bronze")\ndef events_bronze():\nreturn (spark.readStream.format("cloudFiles")\n.option("cloudFiles.format", "json")\n.load("/Volumes/ops/landing/events/"))Transform on compute into Delta Refine data and write a governed Delta table that downstream consumers can trust.
-- SQL cell - curated table written to Delta\nCREATE OR REPLACE TABLE ops.telemetry.events_gold AS\nSELECT device_id, COUNT(*) AS event_count\nFROM ops.telemetry.events_silver\nGROUP BY device_id;Serve to AI or BI Register a model or point a SQL Warehouse at the Gold table to complete the flow through Mosaic AI or BI.
# Python cell - log a simple model with Mosaic AI / MLflow\nimport mlflow\nwith mlflow.start_run():\nmlflow.log_metric("rows", spark.table("ops.telemetry.events_gold").count())
Configuration Reference
Core Components of the Databricks Platform configuration options Parameter / Option Type Default Description Cluster mode enum (all-purpose / job) all-purpose Interactive development vs scheduled, single-run job compute Autoscaling workers min/max integers fixed Range of workers a cluster scales between under load SQL Warehouse size enum Small Compute power for BI/SQL queries Catalog string hive_metastoreTop level of the Unity Catalog namespace Pipeline mode enum (triggered / continuous) triggered Whether a Lakeflow pipeline runs on demand or continuously
Monitoring, Cost, and Security Considerations
Monitoring
Each component exposes observability: cluster event logs, SQL query history, pipeline event logs, and MLflow run tracking, all surfaced through system tables. Consolidating on system tables gives a single pane of glass across compute, storage, and AI rather than per-component dashboards.
Cost Optimisation
Compute is the main cost driver, so size clusters and warehouses to the workload and enable auto-termination/auto-stop. Use job clusters (which spin up and tear down per run) for scheduled work instead of leaving all-purpose clusters running.
Security and Governance
Unity Catalog is the single control point: grant access at catalog/schema/table scope, and rely on lineage to trace how data moves between components. Keep secrets in secret scopes and prefer service principals for automated jobs.
Common Pitfalls and Recommended Patterns
Using all-purpose clusters for production jobs: use job clusters to avoid idle cost and isolation issues. Bypassing Unity Catalog: assets created outside UC lose centralized governance and lineage. Hand-rolling orchestration: use Lakeflow for retries, dependencies, and observability instead of cron. Mixing dev and prod in one workspace without controls: separate by catalog and permissions. Ignoring lineage before changes: check dependencies in Unity Catalog to avoid breaking consumers.
Frequently Asked Questions
What is the minimum set of components I need?
A workspace, some compute, a Unity Catalog catalog/schema, and Delta storage are enough to build and govern a basic pipeline; Lakeflow and Mosaic AI add orchestration and ML when you need them.
What is the difference between a cluster and a SQL Warehouse?
Clusters run general-purpose engineering and ML code (Python, Scala, SQL), while SQL Warehouses are specialized, autoscaling compute tuned for BI and SQL analytics.
Is Unity Catalog mandatory?
It is strongly recommended. You can technically use the legacy metastore, but Unity Catalog provides the unified governance, lineage, and discovery that modern deployments rely on.
How do these components scale independently?
Storage in Delta Lake grows on object storage independently of compute, and you can run multiple right-sized clusters and warehouses against the same governed data.