
Data Engineering for Business Insights
In this lecture, Basil explained data engineering as the process of extracting valuable business insights from large volumes of data stored across various sources, including databases, S3 buckets, and third-party APIs. He emphasized the importance of organizing and processing this data to provide actionable information for teams like sales, marketing, and customer support. Basil also introduced the concepts of "data at rest" and "live data," highlighting the need for real-time data processing in applications like personalized product recommendations.
Python in Data Engineering Overview
The instructor discussed the role of Python in data engineering, highlighting its versatility in processing various data formats and its extensive libraries that facilitate data transformation and cleanup tasks. They emphasized that data engineering involves developing small, focused Python programs rather than large, monolithic applications, which allows for modular processing across different data layers (bronze, silver, gold). The instructor also explained that data engineers often work with multiple data sources, including databases, S3 buckets, and data lakes, requiring different processing steps to manage and transform the data effectively.
Managing Python Versions with PyEnv
Basil explained how to install Python on different operating systems and discussed the challenges of managing multiple Python versions on a single laptop. They introduced PyEnv, a package manager for Python, as a solution to simplify the process of installing, switching, and managing different Python versions. Basil provided installation instructions for PyEnv on both Mac and Windows systems, emphasizing the importance of using the correct commands for each operating system.
Pyenv Python Version Management
Basil demonstrated how to use Pyenv to manage different Python versions on a laptop. He showed how to install, uninstall, and list available Python versions using Pyenv commands. Basil also explained how to set a default Python version globally or for a specific user. He created a simple Python program and demonstrated that the correct Python version would be used automatically when running the program, thanks to Pyenv's default version setting.
Python Version Management with Pyenv
Basil demonstrated how to change the default Python version on a laptop using the pyenv command, explaining both global and local settings. While the global command wasn't working for Basil, a Student confirmed it worked for them, leading to a brief troubleshooting discussion. The conversation ended with Basil successfully changing the Python version using the local command.
Python Version Management Best Practices
The discussion focused on managing Python versions and modules on a developer laptop. Basil explained that using pienv is the recommended approach for installing and managing different Python versions, as it avoids complications when working with multiple projects developed in different versions. They also discussed Python modules, explaining that developers often need to install additional modules to enable specific functionality, such as database access or file processing. The challenge of managing multiple applications with different dependencies led to a discussion on creating isolated Python environments to package applications with their required dependencies, providing a more convenient and organized way to work on different projects.
Python Virtual Environments Overview
Basil explained how to manage Python environments using virtual environments, which allow developers to create separate environments for different projects. He demonstrated creating and activating virtual environments using the venv module, and showed how to install modules specific to each environment. Basil also discussed the benefits of using virtual environments to avoid conflicts between different project dependencies.
Python Virtual Environment Setup
Basil explained how to create and manage Python virtual environments, demonstrating the process of installing modules locally within a virtual environment rather than globally on the system. He showed how to verify module installation by using the pip freeze command within the activated environment, and explained that modules installed globally can be checked by running the same command without activation.
Python Development Environment Setup
Basil continued the data engineering session by discussing the setup of a local Python development environment, focusing on the use of IDEs like VS Code. He explained the benefits of using an IDE for writing code, syntax checking, and integration with tools like Git for version control. Basil also mentioned upcoming topics, including virtual environments, selecting Python versions, and using Jupyter Notebooks. He clarified that they would be using virtual environments to manage different Python projects and modules.
VS Code Installation and Basics
Basil demonstrated how to install and use Visual Studio Code (VS Code) on different operating systems, including Windows, Linux, and Mac. He explained the process of downloading and installing VS Code from the Microsoft website, as well as how to open and navigate the interface. Basil also showed how to create folders and files within VS Code, and highlighted the benefits of using extensions to enhance the coding experience, such as syntax highlighting and auto-completion features.
VS Code Python Environment Management
Basil discussed how to manage Python environments using VS Code, focusing on selecting Python versions and creating virtual environments for projects. He explained the importance of using pyenv to install and manage multiple Python versions, and demonstrated how to set up a virtual environment for a new project. Basil also showed how to select a Python interpreter in VS Code, highlighting its ability to automatically detect installed versions.
VS Code Virtual Environments Demo
Basil demonstrated how to create and manage virtual environments in VS Code, explaining that each project should have its own dedicated environment. He showed how to activate a virtual environment using the "source" command and install Python modules locally within the virtual environment.
Git Integration with VS Code
Basil explained the process of setting up Git integration with VS Code for developers. He covered how to initialize a local Git repository, configure Git with name and email, and use Git commands like git add and git commit for tracking code changes. Basil also demonstrated installing the necessary VS Code extensions and Git Bash, and he showed how to use the VS Code interface for Git operations.
Initialize a local git repository with git init in your project folder, creating a dot git folder and configuring your name and email for commits.
Git Workflow and VS Code Demo
Basil demonstrated the developer workflow using Git, explaining how to make code changes, stage files, and commit them using both the command line. He emphasized the importance of providing clear commit messages and using a .gitignore file to specify which files should be ignored by Git.
Git Workflow and VS Code Demo
Basil demonstrated the developer workflow using Git, explaining how to make code changes, stage files, and commit them using Visual Studio Code (VS Code). Basil also showed how VS Code can be used to visualize commit history, compare file changes, and manage Git operations more efficiently.
Essential VS Code Extensions
The instructor discussed several VS Code extensions that students should install for the training, including Git, Python, Gemini AI, Docker, Google Cloud, Jupyter, Pandas, and SQL tools. He explained how these extensions enhance coding efficiency, such as enabling AI assistance, syntax highlighting, and support for specific programming languages and services. The instructor demonstrated the installation process for each extension and encouraged students to install them to improve their coding experience.
Jupyter Notebook Benefits for Developers
Basil discussed the benefits of Jupyter Notebook for developers, explaining how it allows interactive code development, documentation, and troubleshooting in one environment. He used a hypothetical data engineering scenario involving CSV file processing to illustrate how Jupyter Notebook can help developers manage variables, troubleshoot issues, and write documentation more efficiently than traditional Python programming.
Jupyter Notebooks in VS Code
Basil demonstrated how to use Jupyter Notebooks within VS Code, explaining how to create, save, and execute code cells, as well as how to use markdown cells for documentation. He showed how to select a Python kernel for execution and emphasized the notebook's utility for troubleshooting, particularly through the ability to inspect variable values at any point.
Jupyter Notebook Benefits and Uses
Basil explained the benefits of Jupyter Notebook as a development tool, highlighting its ability to help developers prototype and build programs stage by stage, particularly for data processing tasks. He clarified that Jupyter is an IDE, not just an editor, and emphasized its utility in managing large datasets and allowing for interactive debugging and documentation. Basil also mentioned that while AI assistants have become more prevalent, Jupyter remains useful for complex data processing and can be integrated with AI workflows. The session concluded with Basil preparing to demonstrate a practical example using Jupyter Notebook.
Python Program for Order Analysis
Basil discussed his plan to create a Python program using Jupyter Notebook to calculate the number of delivered orders from a CSV file. He explained the steps involved, including importing the CSV file into a Pandas DataFrame, filtering out non-delivered orders, and counting the delivered orders. Basil also demonstrated how to download and prepare the CSV file for analysis.
Pandas Library Installation and Usage
Basil demonstrated how to install and use the Pandas library in a Jupyter Notebook to read a CSV file and create a data frame. He showed how to filter records based on the order status and count the number of delivered orders. The process was successful, and Basil verified the results by checking the number of records in the filtered data frame.
Jupyter to Python Conversion Tutorial
Basil demonstrated how to convert a Jupyter Notebook into a standalone Python program, showing how to import pandas and process CSV files. He explained that Jupyter Notebooks are useful for developing Python programs in a step-by-step manner, making the development process more convenient and allowing for easier collaboration through Git repositories. Basil clarified that Jupyter serves as a digital lab for developers to write and test Python code before moving it to production.
Google Cloud Training Overview
Basil explained the basics of cloud computing, focusing on Google Cloud as the platform for their training. He discussed how cloud providers offer scalable solutions for storing and processing large amounts of data, using Google Cloud's services like BigQuery and GCS buckets. Basil emphasized that while cloud computing can handle complex data processing tasks efficiently, it requires setting up the right infrastructure, which can be challenging without cloud services. He also mentioned that they would use Google Cloud to build their data infrastructure during the training, and would learn about different services as needed.
Google Cloud Organizational Structure Overview
Basil explained the organizational structure of Google Cloud, including projects, folders, and organizations. He described how to create and organize these elements to manage resources effectively and prevent clutter. Basil emphasized the importance of proper organization to assign permissions and track changes easily. He also demonstrated a hypothetical example of how a company like Amazon could structure their Google Cloud account to reflect their different departments and projects.
Google Cloud Resource Management Overview
Basil explained how Google Cloud organizes resources through projects, allowing teams to manage resources separately and assign permissions at different levels, from individual projects to folders. He emphasized the importance of creating a structured organizational setup in Google Cloud, including associating projects with billing accounts, and mentioned that Google provides free credits for new accounts.
Google Cloud for E-commerce Data
Basil discussed the importance of cloud computing, particularly Google Cloud services, for managing data engineering in e-commerce. He explained the concept of projects in Google Cloud and the flexibility offered by organizations for team management and permission settings. Basil outlined a plan to upload a CSV file containing order data to a Google Cloud Storage (GCS) bucket and then import it into a BigQuery table. He demonstrated the creation of a GCS bucket using the Google Cloud Console, emphasizing the importance of unique bucket names and selecting a multi-region location for data redundancy.
Google Cloud Data Infrastructure Overview
Basil demonstrated how to create a Google Cloud Storage (GCS) bucket and upload a CSV file to it, explaining its use as a data lake service. He then introduced BigQuery as a data warehouse service, capable of handling large datasets and complex data processing through SQL queries or Python programs. Basil emphasized that BigQuery is often the centerpiece of a company's data infrastructure, surrounded by various processing units, and explained the process of creating a BigQuery table, including naming conventions and the need to enable Google services for your account.
BigQuery Table Management Overview
Basil demonstrated how to create and manage BigQuery tables and datasets in Google Cloud Platform. He explained the difference between projects, datasets, and tables, and showed how to import data from Google Cloud Storage into a BigQuery table. Basil also discussed the importance of data partitioning, which he plans to cover in a later session.
BigQuery Table Creation Demonstration
Basil demonstrated how to create a BigQuery table by manually specifying the schema, including data types and nullability for each field. He explained that all fields in the CSV file were strings, but initially set them as datetime to match the data types in the source. After encountering an error, he changed all fields to strings for a successful table creation. Basil emphasized that this was a quick data dump, and data cleanup would be addressed later. He also mentioned that the table was successfully created with 99,442 records and discussed the importance of following naming conventions for tables.
Understanding BigQuery and Data Storage
Basil clarified the distinction between data lakes and data warehouses, explaining that BigQuery is a data warehouse that stores structured data in a managed service by Google, while a data lake like GCS bucket stores raw data in its native format. He also discussed the cost structure of BigQuery, which charges based on both data storage and query transactions, and compared it to other cloud data services like Redshift and Snowflake, noting that Snowflake offers more cost control through self-managed machines. The conversation ended with Basil explaining BigQuery table naming conventions and demonstrating how to execute SQL queries against the tables.
Understanding BigQuery Pricing Models
Basil explained how Google's BigQuery service works, focusing on its pricing model and query execution. He described how BigQuery charges based on the amount of data processed per query, with costs ranging from $6.25 per terabyte for compute to $0.03 per gigabyte for storage. Basil emphasized the importance of checking query costs before running them, as a single query could potentially cost hundreds of dollars. He also mentioned that Google offers alternative pricing models, such as reserved slots, which could be discussed in more detail later.
Programmatic Access to Google Cloud
Basil explained the concept of programmatic access to Google Cloud services, detailing how API endpoints allow users to automate tasks through command-line tools, programming languages, or infrastructure automation tools like Terraform. He emphasized that while browser-based interactions with Google Cloud are intuitive, using programmatic access enables more efficient automation and integration with various tools and technologies. Basil also introduced the gcloud command-line tool, officially provided by Google, which simplifies making API calls to automate tasks such as creating VMs, buckets, and BigQuery tables.
Google Cloud CLI Installation Guide
Basil led a session on installing and configuring the Google Cloud CLI, providing instructions for both Windows and Mac users. He explained how to authenticate the CLI using a Google Cloud account and demonstrated the installation process on a Mac. The group discussed the use of Terraform for provisioning services, with a listener suggesting its widespread use in organizations. Basil clarified that while Terraform is not part of the current training, it would be beneficial for engineers to have knowledge of it. The session concluded with plans to cover Terraform at a high level in future discussions.
Google Cloud CLI Authentication Setup
Basil explained the process of configuring Google Cloud CLI authentication, distinguishing between browser-based password authentication and CLI token-based authentication. He demonstrated running the gcloud init command to set up authentication, which involves logging into a Google Cloud account through a browser and granting necessary permissions. Basil emphasized that this one-time configuration allows CLI tools to authenticate with Google Cloud for tasks like creating machines.
Google Cloud CLI Default Configuration
Basil discussed configuring the default project and region for Google Cloud CLI commands. He explained how to set a default project and region to simplify repeated API requests. Concluded by selecting US East 1b as the default region for their Google Cloud services.
Google Cloud Authentication and Storage
Basil explained the process of authenticating with Google Cloud using the gcloud command line interface (CLI) and outlined the next steps, which include creating a Google Cloud Storage (GCS) bucket and uploading a CSV file to it. He also provided an overview of how the gcloud CLI works, emphasizing its ability to perform various Google Cloud actions from the terminal. Basil mentioned that they would later create a BigQuery table from the CSV file uploaded to the GCS bucket.
Google Cloud Storage CLI Demonstration
Basil demonstrated how to use the Google Cloud Storage command-line interface (CLI) to manage buckets. He explained how to navigate the help documentation, execute commands like listing existing buckets and creating new ones, and provided examples of command syntax and options. Basil successfully created a new bucket named "basel-ecommerce-store-data-1" and confirmed its creation by showing it in the Google Cloud console.
Google Cloud CLI Demonstration
Basil demonstrated how to use the Google Cloud CLI to create a GCS bucket and upload a CSV file. He explained the structure of the gcloud command line interface, showing how to navigate between services and subgroups, and emphasized the self-explanatory nature of the CLI documentation. Basil then executed commands to create a bucket named "orders" and demonstrated how to upload a CSV file to the bucket.
CSV Upload to Google Cloud
Basil demonstrated how to upload a CSV file to a Google Cloud Storage bucket using the gcloud command-line tool. He explained the syntax for the command, which includes specifying the source file on the local machine and the destination path in the bucket. Basil also showed how to create a subfolder in the bucket and upload the file to that location. He emphasized the importance of adding a slash at the end of the folder name to ensure it is created as a folder rather than a file.
BigQuery Data Import Process
Basil discussed the importance of a specific path for passing data to Python programs and emphasized its relevance throughout the training. He explained the process of creating a BigQuery table and importing data using the command line, highlighting the use of the gcloud and BQ command-line tools. Basil suggested searching online for ready-made commands and using the BQ utility for managing BigQuery-related tasks, as it is more convenient for beginners.
BigQuery Table Creation Demo
Basil demonstrated how to create a BigQuery table from a CSV file using a single gcloud command, which automatically detects the schema and uploads the data. He explained that while CLI tools are useful for one-time jobs and data pipelines, infrastructure management is better handled by tools like Terraform. The discussion concluded with Basil introducing an e-commerce project that will be used throughout the training to demonstrate data processing and storage capabilities in Google Cloud, noting that the project lacks real-time data capabilities.
Brazil E-commerce Dataset Overview
Basil explained the structure of an e-commerce dataset from Brazil that will be used for a real-time project. The dataset includes customer information, order details, payment data, seller information, product categories, reviews, and geographic location data. Basil emphasized that while the data is publicly available on Kaggle, it may contain inconsistencies and requires data engineering to clean and process. He encouraged participants to explore the dataset further and learn from existing code examples provided by the community.
BigQuery Data Management Overview
Basil explained how to download and manage CSV files in BigQuery, suggesting the creation of multiple tables to store different forms of data, from raw to processed and business-ready information. He demonstrated opening a customer dataset, highlighting key customer information like unique IDs, location details, and the need for data privacy
Data Tables and Processing Overview
Basil provided an overview of various data tables, including the order table, order items, product information, and reviews, explaining their structure and the insights they provide for data engineering tasks. He emphasized the importance of data processing and cleaning to convert raw data into usable information for business purposes
Data Quality Challenges in Engineering
Basil discussed data quality issues and their importance in data engineering. He explained how invalid data, null values, and inconsistent values can occur in datasets, using examples from an e-commerce context. Basil emphasized the need to clean and preprocess data before using it for different purposes, such as analyzing customer behavior or improving application reliability. He also mentioned that dealing with these data quality issues is a crucial step before applying business logic to the data.
E-commerce Data Quality Challenges
Basil discussed data quality issues in e-commerce order records from Brazil, highlighting problems with missing delivery dates and inconsistent timestamp data. He explained that while some fields like order ID and status appear correct, other crucial fields such as delivery dates often contain null values or incorrect data. Basil emphasized that while small datasets can be manually inspected, larger datasets require automated solutions using Python or SQL to identify and correct data inconsistencies.
Data Engineering for Distributed Data Management
Basil explained the importance of data engineering in managing distributed data across various systems, including Excel, CSV files, databases, and third-party applications. He emphasized the role of data engineers in gathering, structuring, and storing data in tabular form for analysis. Basil also discussed data cleaning, processing, and combining different data sources to derive business insights, using examples like order and customer data.
Medallion Architecture on Google Cloud
Basil discussed the implementation of a medallion architecture using Google Cloud Platform services, with a focus on Google BigQuery as the central data warehouse. He explained that data processing would involve a structured pipeline approach, including ETL processing at each stage before storing data in the next stage. Basil planned to provide a more detailed diagram and overview of the services involved in the next session.
Data Lake to Data Warehouse Integration
Basil explained the process of data transfer from various sources to a data lake using Google Cloud Storage (GCS), emphasizing the need for automation and export functionalities. He discussed the possibility of directly synchronizing data with a data warehouse like Google BigQuery, but highlighted the advantage of first storing data in a data lake for cost efficiency and troubleshooting. Basil also mentioned that some companies, including his own, opt for direct integration with data warehouses.
Data Processing Layers in Data Warehouses
Basil explained the importance of data processing layers when working with data warehouses like BigQuery. He discussed the concept of creating multiple data layers, starting with a bronze layer for raw data, followed by a silver layer for cleaned data, and a gold layer for processed business-ready data. Basil emphasized that data engineers need to manage multiple tables across these layers and perform complex joins and processing to derive meaningful business insights. He used the example of a Brazilian e-commerce store to illustrate how different data tables can be combined to create a customer 360 view or other business-focused data.
Data Visualization and Processing Techniques
Basil discussed the process of visualizing data using dashboards like Looker or BigQuery, emphasizing the need for clean and user-friendly interfaces for stakeholders. He explained the transformation of data from raw to processed forms, including the use of Python programs and SQL statements to create and update tables in BigQuery. Basil also mentioned the use of GCP resources like Dataflow for automation and Spark for processing large datasets. The discussion touched on the conversion of NoSQL documents into tabular form and the importance of data processing at each stage of the data pipeline.
Modular Data Processing Programs
Basil explained the need for modularized programs to handle various data processing tasks, emphasizing that a single comprehensive program is not ideal. He outlined different data processing scenarios, including copying data, transitioning data between data lake and data warehouse, and cleaning and storing data in different layers. Basil also discussed using Python programs to address these requirements and the importance of determining the frequency of program execution. He mentioned that they would later discuss using services like Airflow and Google Dataflow to automate the entire process.
Data Processing Solutions Overview
Basil explained two approaches to data processing: a programmatic solution using Cloud Run and a SQL-based solution. He discussed the advantages and limitations of each method, noting that while the programmatic solution offers flexibility, it may not be efficient for processing very large datasets. For extremely large data processing needs, Basil suggested considering a programmatic solution combined with a cloud-native SQL solution like BigQuery.
Google Cloud Data Processing Solutions
Basil provided an overview of Google Cloud Composer, a managed service for running PySpark programs on Spark clusters, explaining its ability to process large volumes of data and its pay-per-use pricing model. He discussed the challenges of scheduling and configuring workflows for data processing, introducing both cron-based solutions and trigger-based automations using Google Cloud's internal monitoring stack and Event Arc. Basil also introduced Cloud Dataflow as a stateful pipeline-based solution for managing complex data processing workflows, emphasizing that while Google manages the infrastructure, developers are responsible for creating the pipelines and workflows.
Data Processing and Engineering Overview
The meeting focused on data processing and engineering, particularly discussing the importance of data quality and the Medallion architecture for e-commerce data. Basil explained the use of Python and SQL for tabular data processing, highlighting Python's versatility and the integration of AI tools like Gemini for coding assistance. The session emphasized modular programming, prompt engineering, and the use of libraries like pandas for data manipulation, with Basil encouraging participants to review Python basics if needed.
Pandas Introduction for Data Analysis
Basil provided an introduction to Pandas, a Python library for data manipulation and analysis. He explained that Pandas can be used to read and write tabular data from various sources like CSV, Excel, and databases, and to perform operations such as data cleaning, transformation, and storage. Basil recommended installing Pandas using pip, and he highlighted the importance of understanding Pandas' documentation and functions for troubleshooting and efficient AI-assisted development. He also briefly touched on how to select a subset of data from a table using Pandas.
Pandas Data Processing Overview
Basil provided an overview of Pandas, a data manipulation library in Python, demonstrating its capabilities for data processing, filtering, and visualization. He explained how to select and manipulate dataframes, create new columns, calculate summary statistics, and combine data from multiple tables. Basil emphasized the importance of understanding Pandas' functions and encouraged practical experience through writing programs. He also mentioned that while Pandas can handle some data processing tasks, BigQuery has advantages like being a native Google feature and potentially being easier to use for certain tasks.
SQL and Python Data Processing
Basil discussed on the basics of SQL, including its use for reading, writing, updating, and deleting data in relational databases.
SQL Queries and Gemini Introduction
Basil provided an introduction to SQL queries and their functionality, including selecting, filtering, and joining data, as well as using functions to manipulate and aggregate data. He demonstrated how to run SQL queries in BigQuery, highlighting its scalability and the need to be mindful of query costs. Basil also introduced the use of Gemini, an AI assistant, for generating and troubleshooting SQL queries. The session concluded with plans to start a project involving data migration from bronze to silver layers, with Basil emphasizing that most of the SQL work would be handled by Gemini going forward.
The Medallion Project and Traditional Warehouse Approach
The traditional medallion architecture uses a warehouse-centric approach where bronze, silver, and gold layers are all BigQuery tables or data warehouses. This approach has disadvantages including high costs due to continuous query execution, inconvenience when users only need partial data from large tables, and limited flexibility compared to modern alternatives.
The Modern Solution: The Data Lakehouse (Lake+Warehouse)
The lakehouse combines data lake and data warehouse capabilities, offering cost-effectiveness, flexibility, and convenience. In this approach, bronze and silver layers use GCS buckets (data lakes) while gold layer uses BigQuery for business-ready data. Python programs handle processing in bronze/silver layers, with SQL available in the gold layer. This maintains a single source of truth in the data lake with metadata pointers in BigQuery.
The Services to be Created at GCP
Creation of
One landing zone GCS bucket for raw CSV files
One bronze layer GCS bucket for processed data in Parquet format
Silver layer combining GCS buckets and BigQuery for cleaned data
Gold layer BigQuery datasets for business-ready data and metadata
Optional backup GCS bucket for data storage
Setting up GCP Environment
The team needs to create the necessary GCS buckets and two BigQuery datasets for storing metadata and processed data. Coordination with application teams is required to ensure data in landing zone is in easily processable format.
Bronze Layer
The bronze layer serves as the source of truth where files are stored as-is, possibly converted to Parquet format but with identical data content. It requires proper folder structure and hierarchy for easier data processing, with Python programs converting data from landing zone to bronze layer in Parquet format.
Parquet - The File Format of the Lakehouse:
Introduced Parquet as the optimal columnar storage format for data lakehouse architectures
Discussed key benefits including efficient compression, fast query performance, and schema evolution support
Covered how Parquet enables analytics workloads with reduced storage costs and improved processing speed
Upload Raw ecommerce CSVs to the Landing Zone:
Discussed the initial step of uploading raw CSV files containing ecommerce data
Established the landing zone as the entry point for data ingestion
Covered best practices for organizing and storing raw data files
Convert the CSV files to Parquet format - Setup the Environment:
Reviewed environment configuration requirements
Discussed necessary dependencies and libraries for CSV to Parquet conversion
Covered system prerequisites and setup steps
A python program that converts csv files to parquet:
Presented Python solution for file format conversion
Reviewed code structure and implementation approach
Discussed optimization techniques for handling large datasets
Execute the Program with Authentication with Google Cloud:
Covered Google Cloud authentication setup and configuration
Discussed service account credentials and access permissions
Reviewed execution steps and deployment considerations
Addressed security best practices for cloud authentication
Upload the Parquet files to Bronze Layer
Basil explained the next steps in the Bronze layer ETL pipeline, focusing on uploading Parquet files to the GCS bucket. He demonstrated a bash script using a for-loop to automate the upload process for the 9 Parquet files created from the previous day's Python program.
Orchestrating the Data Workflows
Basil emphasized the importance of modularizing tasks for future workflow automation and discussed the progress of their project involving a three-step process from the landing zone to the bronze layer in a medallion architecture. The next steps include cleaning and converting data from the bronze layer to the silver layer to address issues like null and inconsistent fields. But the immediate next step is to automate the bronze layer workflow using Cloud Composer / Apache Airflow
Orchestrating the Data Workflows - Problems to solve
Basil discussed the challenges of manually executing data workflows and highlighted several key problems that need automation solutions:
Need for cloud-based computing power
Efficient task distribution across systems
Centralized logging for managing data pipelines
Moving away from the manual processes that are currently being used
Managing complex data pipeline dependencies and scheduling
Cloud Composer (Managed Airflow at GCP) as a Solution
Basil introduced Google Cloud Composer as a managed service that simplifies the workflow automation process by handling server infrastructure, allowing data engineers to focus solely on developing and scheduling workflows. He explained how Apache Airflow can be used to develop data engineering workflows in Python, which are then stored in Google Cloud Storage (GCS) buckets. Google's managed Airflow service handles workflow execution, including task distribution across worker nodes and logging, while maintaining metadata in a database. Most people prefer managed Airflow services like Google Composer due to the complexity of managing an on-premise system.
Apache Airflow and DAGs
Basil provided a comprehensive overview of Apache Airflow, explaining that it is an open-source software maintained by the Apache Foundation, designed for data workflow orchestration. He highlighted Airflow's ability to integrate with various cloud services and its operators that simplify tasks like file processing and database interactions. The architecture includes components such as scheduler, workers, manager, and UI. Basil explained that developers need to create their own workflows (DAGs) using Python, and mentioned two types of UI available for monitoring workflows: the Airflow UI and Google's custom Composer UI, which provides infrastructure monitoring capabilities.
Are you tired of fragmented tutorials that teach you a single data engineering tool, but never show you how to combine them into a real, working system? Do you know some Python and SQL, but feel stuck when you look at job descriptions asking for "end-to-end pipeline orchestration," "scalable data processing," and "cloud-native architecture"?
If so, this is the course you've been looking for.
This is not another "tool-in-isolation" tutorial. This is a comprehensive, project-based bootcamp where you will build one single, continuous project from scratch: a production-grade Medallion "Lakehouse" on the Google Cloud Platform (GCP).
We will start with a raw, real-world e-commerce dataset and build a complete data platform, step-by-step. You will:
Architect the Lakehouse: Set up GCS buckets for your Bronze (raw) and Silver (cleaned) layers, and BigQuery for your Gold (business-ready) layer .
Build Batch Pipelines: Ingest raw CSVs and convert them to efficient Parquet format using Python and Pandas .
Orchestrate Everything: Automate your entire workflow with Apache Airflow (Cloud Composer). You'll build DAGs that wait for files, run processing, and handle dependencies .
Enable Scalable Processing: Solve the "big data" problem. You'll containerize your Python transformations with Docker and run them as scalable, serverless jobs on Google Cloud Run .
Handle Terabyte-Scale: Go even bigger by rewriting your logic in Apache Spark (PySpark) and running it on a distributed Dataproc cluster.
Create Business Value: Build a "Customer 360" view by writing SQL to join your lakehouse tables and prepare data for BI dashboards in Looker Studio.
Build for Real-Time: Go beyond batch and architect an event-driven pipeline using Eventarc that processes files the instant they arrive in GCS .
Secure Your Platform: Finally, you'll production-ize the entire platform using Cloud IAM and Service Accounts to ensure every service runs with the principle of least privilege.
Who is this course for?
This course is built for aspiring data engineers. If you are a Software Engineer, Data Analyst, BI Developer, or Python Developer who wants to make the leap into data engineering, this is your complete guide. We assume you know the basics of Python and SQL, and we will handle the rest.
By the end of this course, you won't just know about data engineering—you will have built a complete, automated, and secure data platform that you can add to your portfolio and confidently speak about in interviews.
Stop learning, and start building.
Enroll today and let's build your data engineering career