Skip to content
 
 

Repository files navigation

Production Governance and MLOps with Databricks

Python 3.10+ License Databricks

Hands-on labs for governing data and AI with Unity Catalog, MLflow, and Databricks Lakehouse Monitoring
Unity Catalog | Access Control | Data Lineage | CI/CD | MLOps | Secrets Management


Table of Contents


Overview

Learn to govern production data platforms and ML systems on Databricks. This course covers:

  • Unity Catalog — Centralized governance with metastores, catalogs, schemas, and tables
  • Access Control — GRANT/REVOKE permissions, row/column-level security, and least-privilege design
  • Data Lineage — Automatic lineage capture and compliance querying via system tables
  • CI/CD for Notebooks — GitHub Actions, multi-environment promotion (dev → staging → prod)
  • MLOps — MLflow experiment tracking, model registration, and promotion through the model registry
  • Lakehouse Monitoring — Data quality alerts, drift detection, and retraining triggers
  • Secrets Management — Databricks secret scopes, Azure Key Vault, and AWS Secrets Manager integration

Quick Start

  1. Sign up for a Databricks workspace (Unity Catalog enabled by default on new workspaces)
  2. Clone this repository:
    git clone https://github.com/alfredodeza/databricks-governance.git
  3. Upload example files from examples/ to your Databricks workspace
  4. Run SQL examples in a SQL warehouse or attach Python notebooks to a cluster
  5. Follow the labs in labs/ for guided exercises

Usage

Run Examples

Example Files Description
Unity Catalog examples/unity/ Create catalogs, schemas, tables, and volumes
Access Control examples/access-control/ GRANT/REVOKE and permission model design
Lineage examples/lineage/ Query lineage system tables
Repos / Git examples/repos/ GitHub Actions workflow for Databricks Repos
CI/CD for Notebooks examples/cicd/ Multi-environment notebook deployment
MLOps examples/mlops/ MLflow training, registration, and promotion
Lakehouse Monitoring examples/monitoring/ Table monitors and alerting
ML Monitoring examples/ml-monitoring/ Inference table drift detection
Secrets examples/secrets/ Secret scopes and credential retrieval

Complete the Labs

Lab Topic Examples
Lab 1 Unity Catalog Setup unity/
Lab 2 Access Control access-control/
Lab 3 Data Lineage lineage/
Lab 4 CI/CD for Notebooks repos/, cicd/
Lab 5 ML Model CI/CD mlops/
Lab 6 Monitoring and Secrets monitoring/, ml-monitoring/, secrets/

Course Outline

Week 1: Unity Catalog Governance

Week 2: CI/CD and MLOps

Week 3: Monitoring and Security

See the full course outline for detailed lesson breakdowns.


Project Structure

databricks-governance/
├── examples/
│   ├── unity/               # Unity Catalog: catalogs, schemas, tables, volumes
│   ├── access-control/      # GRANT/REVOKE and permission model design
│   ├── lineage/             # Lineage system table queries
│   ├── repos/               # GitHub Actions for Databricks Repos
│   ├── cicd/                # CI/CD pipelines for notebook promotion
│   ├── mlops/               # MLflow training, registration, and promotion
│   ├── monitoring/          # Lakehouse Monitoring table monitors
│   ├── ml-monitoring/       # Inference table drift detection
│   └── secrets/             # Secret scopes and credential handling
├── labs/                    # Hands-on lab instructions
├── docs/                    # Capstone project and supplementary docs
├── data/                    # Sample datasets for demonstrations
└── assets/                  # Course banner and graphics

Resources


Contributing

See CONTRIBUTING.md for guidelines.

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

License

Apache License 2.0 — see LICENSE for details.


Made with care by Pragmatic AI Labs

About

Databricks Governance lab

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages