
Master end-to-end real-time data engineering on Azure Databricks with medallion architecture, unity catalog, ingestion through bronze to silver to gold layers, and performance tuning for job interviews.
Explore how data analytics processes source data from OLTP and open source systems to reveal insights, covering data formats and high-level data flow in real-time projects.
Explore the data engineer role in a data analytics project, focusing on ingestion, transformation, and publish, with etl and olap terminology as context.
Define inputs and outputs for a real-time data analytics platform, including http, sql, and api data, and design architecture for a reporting layer and a data lake for ai.
Design an end-to-end data lakehouse using the medallion architecture with bronze, silver, and gold layers for ingestion, transformation, and publish on Databricks.
Understand how to create and configure cloud resources from a cloud environment, comparing on-premise hardware and software with IaaS, PaaS, and SaaS, and the role of data centers and Azure.
Set up a free Azure account by creating a new university email, signing into portal.azure.com, and choosing student benefits or a free trial, then verify via phone and complete setup.
Navigate the Azure portal to create resource groups and deploy Azure Databricks and data lake storage Gen2 for a data engineering project.
Navigate the Azure portal to set up an Azure Databricks workspace using global search and provide subscription, resource group, and UK South region details.
Configure an Azure data lake storage account by setting the resource group, storage name, and hierarchical namespace with locally redundant storage. Plan branch and silver and gold layers before creation.
Explore creating an Azure Data Lake Storage account and its bronze, silver, and gold containers using the portal, guided by the medallion architecture.
Explore the Apache Spark architecture that underpins Databricks, including core libraries, RDDs, DataFrame, Spark SQL, Spark Streaming, pandas API, and how Databricks workspace enables PySpark on Azure Data Lake.
Log in to portal.azure.com, launch the databricks workspace, and explore workspace categories for code development, data processing, scheduling, compute, sql, Delta live table, data engineering features, and machine learning experiments.
Explore how to create and manage notebooks in the Databricks workspace, attach compute resources, and organize code in workspace and repos to ingest, transform, and load data.
Import starter notebooks into the Databricks workspace and set up a Spark cluster. Choose a single-node Databricks runtime with DS3 v2 workers.
Discover how to read data from an HTTP web service with PySpark, convert it to a Spark DataFrame, and ingest it into Azure Data Lake using starter notebooks.
Learn how to ingest web source data into Azure Data Lake using Databricks PySpark, converting Pandas dataframes to Spark dataframes, and writing to the bronze layer with overwrite mode.
Learn to read and write data with PySpark in Databricks, connecting to Data Lake Storage, handling CSV with header and struct type schema, and exporting JSON with overwrite mode.
Explore PySpark data frame transformations by reading JSON data from a data lake, inferring or manually defining a schema with DDL, and preparing transformed data for storage across notebooks.
Learn to transform Spark data frames using select, drop, and filter, chain transformations with sort, and trigger execution with actions like show, illustrating lazy evaluation.
Explore PySpark data frame action functions in Azure Databricks, using display to show transformed data and actions like distinct, count, head, first, take, and collect to inspect results.
Read and write data with PySpark using the generic DataFrame reader, handling CSV with header and infer schema, then derive arrival in kilograms from tonnes with withColumn.
Learn to perform PySpark group by aggregations, using sum of arrival in kilograms with aliasing and optional ordering, and save and load data in parquet format for display.
Master PySpark date time handling by using current_timestamp, year, month, day, and date_format to create and format timestamp columns in parquet data with withColumn, spark.read.load, and dbutils in Databricks.
Learn how dbutils in Databricks view and manage workspace components across Python, Scala, and R, organize data files in the Data Lake storage, and use fs.ls with the starter notebook.
Introduce spark sql in azure data bricks, configure spark sessions, connect to azure data lake storage with access keys, and run spark sql queries to transform data and manage tables.
Convert a csv data lake file into a spark data frame, then into a temp view and database table, query with spark sql, and convert back to a data frame.
Create and manage Spark SQL managed tables from a global temp table, explore Unity Catalog and Delta Lake, and learn basic alter, update, and describe operations.
Master spark sql external tables and views to query data files directly in databricks, including json and csv formats with unity catalog.
Explore spark sql data transformations in Databricks by writing sql queries to select, filter, sort, and aggregate data from a data lake, then store results in new tables.
Explore Spark SQL date time handling by deriving current_timestamp-based table_updated_date and formatted dates using to_date and date_format on the daily pricing json external table for a real-time project.
Unity Catalog provides unified governance to securely connect Databricks with Data Lake Storage and manage workspace assets using a service principal and Azure access connector.
Walk through Unity Catalog setup with Microsoft Entra ID, register a Databricks Access Connector, and map an external location to your data lake storage for seamless access.
Configure the project-specific Unity Catalog for the real-time Databricks Lakehouse project, enabling better access control with the Databricks Access Connector and the data lake storage account.
Create a new Databricks access connector in the Azure portal by selecting the access connector for Databricks, configuring the unity catalog, resource group, and region, then create.
Grant access to the Databricks access connector by assigning the Storage Blob Data Contributor role on the Data Lake storage account, enabling Databricks to access the lakehouse data.
Register the new Databricks Access Connector in the workspace by pasting its ID from the Unity Catalog, then create credentials with Azure managed identity to access the data lake storage.
Mount data lake storage containers in Databricks workspace via external locations and the Databricks access connector with Azure managed identity, working labs, bronze, silver, and gold, then test in notebooks.
Create a new pricing-analytics container and an external location in the Databricks workspace, then configure it as the storage location for the new pricing_analytics unity catalog to store managed data.
Create a project-specific Unity Catalog by naming it pricing_analytics, selecting standard type, and setting the pricing analytics storage location to enable seamless real time data reads and writes.
Develop real-time daily pricing data ingestion from an HTTP web server into Azure Data Lake using PySpark, Spark data frames, and Spark SQL, with Unity Catalog access.
Modularize the ingestion code into coupled modules to enable maintainability and reuse. Split the source file url into base, folder, and file name for daily pricing and bronze layer paths.
Form the source file path from three variables, read with pandas read_csv, convert to a spark dataframe, and write to the bronze layer in the data lake with overwrite mode.
Configure notebook parameters in databricks using dbutils.widgets to pass daily date values for an ingestion pipeline and incremental loading, using text parameters, get calls, and dynamic source file naming.
Explore incremental loading, or delta load, using source file dates to identify new files and store processed dates in a Unity Catalog table for quick, next-day ingestion.
Implement an incremental load of processed source file dates by building a Spark SQL insert using Python variables and f-strings into the process run logs table.
Automate incremental loading by deriving the next source file date via notebook parameters. Use Spark SQL and Python to ingest data into Azure Data Lake and update process run table.
Refactor the ingestion notebook by removing unused code, cloning for backup, switching spark write to append, and adding a load date with current_timestamp; move schema creation to a SQL setup.
Diagnose and fix end-to-end notebook errors in Azure Databricks, interpret root causes, correct unity catalog paths, handle null values with NVL, and enable reliable real-time data ingestion from HTTP sources.
Learn to schedule daily pricing ingestion with Databricks workflows and jobs, creating a job and tasks, pointing to a notebook in workspace, configuring parameters, and running the job.
Set up a dedicated Databricks job cluster, a single-node runtime 14.3 LTS on the smallest D3 v2, to run the ingest job automatically on schedule and auto-terminate after each run.
Schedule daily pricing ingestion in Databricks by configuring a job to run every 12 hours, ingesting into the bronze layer and enabling a Spark SQL table for downstream layers.
Define an external spark SQL table for daily pricing in the bronze layer, using a branch schema, string-typed columns, csv options, and the data location in Unity Catalog.
Ingest five tables from a Microsoft SQL Server database into the bronze layer of the Delta Lake house using JDBC, with incremental delta loading and notebook automation.
Configure a JDBC connection URL from the support file, replace server, database, username, and password, then read a SQL server table with spark.read.format('jdbc').load into a dataframe.
Modularize code by defining a source table name variable and using Python format strings, replacing values in Spark.read, and creating notebook parameters to ingest source table data without editing code.
Learn to configure a PySpark writer to save pricing reference data to a structured data lake path, using json format and overwrite mode for Databricks jobs.
Configure a databricks job to ingest five source tables from a sql server into the bronze layer of a delta lake house using a notebook and parameters.
Convert daily pricing CSV data to Parquet format and build a Delta Lake table in the silver layer to enable efficient columnar storage with transactional updates.
Transform daily pricing data from bronze to silver using Delta Lake and Spark SQL, reading from the bronze daily_pricing table via Unity Catalog and selecting specific columns with limit 10.
Create a silver layer delta lake table with Spark SQL managed table in the pricing_analytics catalog, defining proper data types from the bronze daily_pricing data and adding Lagos_inserted_date and Lagos_updated_date.
Transform bronze daily pricing data into the silver delta table by casting data types and applying date, decimal, and auditing timestamp columns. Enable incremental load from bronze to silver.
Implement change data capture for incremental loads by detecting new or changed records using last updated date time and maximum primary key value, and track processing with Delta Lake runs.
Store the maximum source file load date in the Delta Lake process runs table and add a timestamp column to capture full date-time values.
Identify records by filtering on source_file_load_date using the max processed_table_date_time from the process runs, with nvl defaulting to 1900-01-01; insert into the silver layer and update runs to prevent duplicates.
Clean up the notebook for the job scheduler by removing unnecessary cells, moving the one-time create table to a SQL file, and preserving daily silver layer inserts.
Create a daily Databricks job to transform daily pricing csv to delta table, mapping the notebook, and schedule at 23:00 to move bronze data to silver.
Explore dimensional data modeling, including star and snowflake schemas, and learn how to design and transform reporting database tables for data warehousing and business intelligence in Databricks.
Explore dimensional data modeling of daily pricing source data to build reporting database, focusing on minimum price, maximum price, model price, product groups, varieties, markets in India, and row_id uniqueness.
Identify dimension and fact columns in dimensional data modeling by classifying source data into descriptive (dimension) and measure (fact) columns, then map them to dimension and fact tables.
Group descriptive columns into five dimension tables—date, state, market, product, and variety—using surrogate keys for unique loading and history. Prepare a fact table design for measures in the next lesson.
Design the fact_daily_pricing table by linking business message columns to dimension surrogate keys for meaningful analytics in Delta Lake. Distinguish logical and physical data models for this dimensional design.
Translate a logical data model into a physical data model by mapping dimension and fact tables to the gold layer in a Delta Lakehouse, defining data types and surrogate keys.
Create reporting dimension and fact tables in the Delta Lakehouse using the provided create table scripts under the gold schema in the catalog pricing_analytics.
Develop spark sql code to populate the reporting dimension and fact tables from structured data, mapping unique records to surrogate IDs, adding auditing columns, and preserving history in dimensions.
Develop spark sql to populate the reporting dim state gold table by selecting distinct state names from the silver layer and using stage tables for new or changed records.
Generate surrogate keys for the state dimension by applying row_number to unique state names from the staging table, then insert with current timestamps while preventing duplicates in daily loads.
Load and maintain the reporting dim state table with change data capture (cdc) using silver and gold layers, left outer joins, staging tables, and max state id logic for records.
Load the gold dimension table for state data via staging tables, delta lakehouse process runs, and surrogate keys, handling nulls with nvl and using current timestamps for lakehouse dates.
Populate all dimension tables in the gold layer using the same sql to load dim market, dim product, and dim variety via stage one to stage three, generating surrogate keys.
Populate a date dimension table using Python's pandas to generate a calendar date range, convert to a Spark DataFrame, and insert into the gold reporting dim date table in Databricks.
Populate the reporting fact daily pricing table by 1-to-1 mapping of numerical data and surrogate IDs from dimension tables, using date surrogate keys and daily loading.
Learn slowly changing dimensions for dimension tables, focusing on SCD type 1 and 2 processing, surrogate keys, and handling source changes in product name and group.
Learn to implement SCD type one on a product dimension by creating a new dimension table with like, and using merge to apply stage two changes into the gold table.
Test and implement SCD type 1 processing by updating the silver layer and validating stage one through three logic, including surrogate ID derivation and merge updates.
Explore SCD type two processing to keep history in the dimension table, using start date, end date, and a latest record flag with new surrogate IDs.
Implement SCD type 2 in engineering workflow by updating processing to generate surrogate IDs for product name changes and merging into type 2 dimension table with start and end dates.
Execute SCD type 2 processing by updating the silver layer table, creating stage tables and surrogate IDs, and performing incremental merges into the dimension table.
Implement SCD type 2 across stage one to stage three, updating the silver layer and using end_date is null to keep only the latest record with a surrogate product ID.
Schedule a Databricks job to load reporting dimension tables first, then fact tables, using notebooks and a shared cluster, while exploring real-time stream processing with spark structured streaming.
By Completing this course you will be equipped with below Data Engineer Roles & Responsibilities in the real time project
• Designing and Configuring Unity Catalogue for Better Access Control & Connecting to External Data Stores
• Designing and Developing Databricks(PySpark) Notebooks to Ingest the data from Web(HTTP) Services
• Designing and Developing Databricks(PySpark) Notebooks to Ingest the data from SQL Databases
• Designing and Developing Databricks(PySpark) Notebooks to Ingest the data from API source Systems
• Designing and Developing Spark SQL External and Managed Tables
• Developed Databricks Spark SQL Reusable Notebooks To Create and populate Delta Lake Tables
• Developed Databricks SQL Code to populate Reporting Dimension tables
• Developed Databricks SQL Code to populate Reporting SCD Type 2 Dimension tables
• Developed Databricks SQL Code to populate Reporting Fact Table
• Designing and Developing Databricks(PySpark ) Notebooks to Process and Flatten Semi Structured JSON Data using EXPLODE function
• Designing and Developing Databricks(PySpark ) Notebooks to Integrate(JOIN) Data and load into Datalake Gold Layer
• Designing and Developing Databricks(PySpark) Notebooks to Process Semi Structured JSON Data in DataLake Silver Layer
• Designing and Developing Databricks(SQL) Notebooks to Integrate Data and load into Datalake Gold Layer
• Developed Databricks Jobs for Scheduling the Data Ingestion and Transformation Notebooks
• Designing and Configuring Delta Live Tables in all layers for seamless Data Integration
• Setup Azure Monitor and Log Analytics for Automated Monitoring of Job Runs and Stored Extended Log Details
• Setup Azure Key Vault and Configure Key Vault Backed Secret Scopes in Databricks Workspace
• Configuring GitHub Repository and creating Git Repo Folders in Databricks Workspace
• Designing and Configuring CI/CD Pipelines to release the code into multiple environment
• Identifying performance bottle necks and perform the performance tuning using ZORDER BY , BROADCAST JOIN , ADAPTIVE QUERY EXECUTION , DATA SALTING and LIQUID CLUSTERING