✦ Want a lab built just for you? ✦
Request a Lab ↗

Building a Medallion Data Lakehouse for Gaming Analytics with Dataproc Serverless

About this lab

You are a data engineer at a fast-growing mobile gaming company called PixelQuest Studios. The company's flagship game generates millions of player events daily, including session logs, in-app purchases, level completions, and player profiles. Currently, this raw data lands as JSON files in Google Cloud Storage with no structure or quality controls, making it nearly impossible for the analytics team to build reliable dashboards or track key metrics like daily active users, revenue per player, or level completion rates.

Your mission is to build a medallion data lakehouse using PySpark on Dataproc Serverless. You will create a three-layer architecture: a Bronze layer for raw ingested data, a Silver layer for cleaned and standardized records, and a Gold layer for aggregated analytics-ready tables. You will submit PySpark batch jobs to Dataproc Serverless, store all layers as partitioned Parquet in GCS, and load the Gold layer into BigQuery so the analytics team can run queries and build dashboards.

Lab details

  • Level: Intermediate
  • Cloud: GCP
  • Domain: Data Engineering
  • Duration: 90 minutes

What you will learn

  • Set up a multi-zone GCS bucket structure for a medallion data lakehouse
  • Write PySpark jobs to clean, deduplicate, and standardize raw gaming data
  • Submit PySpark batch jobs to Dataproc Serverless from the GCP Console
  • Build Gold-layer aggregations for player engagement and revenue metrics
  • Load processed Parquet data into BigQuery for analytics queries
  • Validate data quality across all three lakehouse layers

Concepts covered

  • Medallion Architecture
  • Data Lakehouse
  • PySpark Transformations
  • Dataproc Serverless Batch Jobs
  • Data Quality
  • Partitioned Parquet
  • GCS Data Lake

Technologies used

  • Dataproc Serverless
  • PySpark
  • Google Cloud Storage
  • BigQuery
  • Cloud Console

Prerequisites

  • Basic Python knowledge
  • Familiarity with SQL queries
  • GCP account with billing enabled
  • Basic understanding of data pipelines

Topics

  • GCP
  • Dataproc
  • PySpark
  • Medallion
  • Lakehouse
  • BigQuery
  • GCS
  • Gaming
  • Batch Processing
  • Data Pipeline