Build a cost-aware lakehouse, one step at a time
A small sales analytics platform: Salesforce customers and S3 files flow through bronze, silver and gold into a dashboard. One job orchestrates it, governance protects it, and GitHub Actions deploys it to a separate production catalog as a service principal.
This version comes from an end-to-end build, not just the docs. Each step says what worked, what broke and how it was fixed. The focus is architecture, cost and performance; your AI coding tool can write notebook code from each step’s spec.
✅ docs-verified🧪 tested in our build🟠 not confirmed in the docs
What you’ll build
Sources
- Salesforce: Account, Contact, Opportunity
- S3: orders and order lines (CSV), web events (JSON)
Bronze: raw
- Connector streaming tables (current state)
- Auto Loader, append-only tables
Silver: clean
- foreachBatch MERGE + quarantine
- SCD Type 2 customer dimension
- Partitioned → liquid, manual and AUTO
Gold: serve
- Two materialized views with expectations
- One standard view
Consume and govern
- AI/BI dashboard
- Manual masks, then ABAC
One Lakeflow JobGit folders + GitHubBundles: dev (dbx_demo) and prod (dbx_demo_prod)GitHub Actions as a service principalServerless only
Before you start: facts that shape the design
Free Edition limits ✅
- Serverless compute only; outbound internet limited to trusted domains.
- One SQL warehouse (2X-Small). At most 5 concurrent job tasks. One active pipeline per pipeline type.
- One workspace and metastore; no account console or account-level APIs. Custom workspace storage locations aren’t supported.
- Some limits can be raised by verifying your identity with LinkedIn.
Pipelines you don’t write
No Declarative Pipelines code here, but two features run pipelines for you: the Salesforce connector (an ingestion pipeline) and every materialized view (a serverless pipeline for create and refresh). That’s why the one-active-pipeline limit matters.
Partitioning and liquid clustering can’t be combined ✅
Databricks recommends liquid clustering for all new tables; most tables under 1 TB don’t need partitions. The one partitioned table here is a teaching contrast, converted in step 8 and step 17.
Docs: Free Edition limitations · Liquid clustering · When to partition
What changed since the last build (2 → 25 November 2026)
- Exam guide: exam published 4 May 2026, guide updated 6 August 2026, now seven sections (Platform 6%, Ingestion 21%, Transformation 22%, Jobs 16%, CI/CD 10%, Monitoring and optimization 10%, Governance 15%). New objectives include compute cost models, managed vs external table conversion, GRANT/REVOKE/DENY, Spark UI bottlenecks and bundle variables.
- Dashboards: publish options are now named Share data permission (default) and Individual data permissions; a service principal can be the publisher credential.
- Auto Loader: new mode
addNewColumnsWithTypeWidening(Public Preview, DBR 16.4+). - Liquid clustering docs moved to
/tables/clustering; partitioned-table conversion needs DBR 18.1+. - Materialized views: the REFRESH POLICY clause is marked Beta.
- Serverless performance modes now have their own page: standard mode starts in about 4–6 minutes and uses fewer DBUs.
- ABAC: four policy types (row filter, column mask, GRANT and DENY in Beta); time travel and cloning aren’t supported on ABAC-secured tables.
- Answered by the build: the Salesforce connector, predictive optimization and ABAC all work on Free Edition; service principals can be created, but OIDC federation can’t be configured.
- Correction: excluded upstream tasks are treated as successful by Run if, so “All succeeded” would not have skipped
refresh_goldon the False branch (see step 12).
Exam coverage map (guide updated 6 August 2026)
| Exam section | Covered in steps | Not built here |
|---|---|---|
| 1 · Databricks Intelligence Platform (6%) | 1, 2, 17 (serverless, performance modes, Delta, Unity Catalog) | Classic compute types, compared in text only |
| 2 · Data Ingestion and Loading (21%) | 4, 5 | JDBC/ODBC/REST from notebooks; standard connectors |
| 3 · Data Transformation and Modeling (22%) | 6, 7, 8, 9, 10 | Approximate count distinct, explode (simple to add) |
| 4 · Working with Lakeflow Jobs (16%) | 12 | Dashboard task (removed: it refreshed the dev dashboard); table update trigger (explained) |
| 5 · Implementing CI/CD (10%) | 14, 15, 16 | A separate test target |
| 6 · Troubleshooting, Monitoring and Optimization (10%) | 8, 9, 17 | Spark UI stage metrics (skew, spill); cluster startup and library failures |
| 7 · Governance and Security (15%) | 2, 13, 16 | Converting managed ↔ external tables; DENY |
Ten lessons from the real build
- Confirm Free Edition features in your own workspace; screenshots in the docs may not match.
- Auto Loader’s
addNewColumnsstops once by design; job retries recover it. - Constraints fail writes; quarantine routing keeps bad rows for audit. Use both.
- Start SCD Type 2 first versions at 1900-01-01, or earlier facts vanish from inner joins.
- Gate pipelines on table state (a high-water mark), not on what one run observed.
- A materialized view
NO_OPstill pays pipeline startup time. - Dev deploys from the workspace terminal ran live Git folder files; prod from CI ran frozen copies.
- Production should be owned by and run as a service principal, with a fixed root_path and explicit grants.
- Scoped OAuth secrets fail with CLI machine-to-machine auth, because the CLI requests all-apis.
- After converting a layout, run
OPTIMIZE … FULL: 21 files became 1.
Not confirmed in the official docs
- Why the dev deploy from the workspace web terminal was source-linked. The
source_linked_deploymentpreset is documented as reserved for future use; our observation is the evidence. - A native docs.databricks.com page for SCD Type 2 with MERGE. The pattern follows Microsoft Learn’s official training.
- Whether masks under shared data permissions are evaluated as the publisher in every case. The docs say queries run with the publisher’s data permissions.
- Some docs links in steps 2–6, 12 and 14 were verified in the first build and during this build, not re-fetched on 25 November.