Hands-On Engineering Labs

PySpark Data Engineering Labs

Apply PySpark concepts to practical engineering problems. Review skeleton code scripts, analyze test inputs, and explore step-by-step solutions.

0 Real-World LabsAutomated Test SuitesStep-by-Step Solutions
Interview: DataFramesEasy

Employee Data Filtering

Est: 10 mins

Learn how to import a CSV file into a Spark DataFrame and filter rows matching a specific threshold condition.

Interview: DataFramesEasy

Customer Data Cleaning

Est: 10 mins

Clean a dirty customers dataset by handling null email columns and deduplicating customer profiles.

Interview: DataFramesEasy

Product Price Analysis

Est: 10 mins

Perform basic column additions and math operations to calculate retail prices with tax.

Interview: DataFramesEasy

Department Salary Report

Est: 10 mins

Aggregate employee tables to generate department average and total salary summaries.

Interview: DataFramesEasy

Top Paid Employees

Est: 10 mins

Sort employee tables by income to retrieve the top 3 highest-earning workers.

Interview: DataFramesEasy

Customer Age Categories

Est: 10 mins

Classify customers into age groups using conditional logic statements.

Interview: DataFramesEasy

Basic DataFrame Joins

Est: 10 mins

Join relational employee profiles with department metadata mapping.

Interview: DataFramesEasy

Convert CSV to Parquet

Est: 10 mins

Read CSV transaction lists, filter bad records, and write the output as optimized Parquet.

Interview: DataFramesEasy

Sales Summary Report

Est: 10 mins

Compute total revenue, units sold, and peak order sizes using general summary statistics.

Interview: DataFramesEasy

Employee Bonus Calculator

Est: 10 mins

Apply bonus calculations to employee salaries and rename columns for clear reporting.

Interview: DataFramesMedium

Customer Order Analytics

Est: 15 mins

Join customer profiles with order histories and run multi-column groupings.

Interview: Window FunctionsMedium

Employee Ranking Dashboard

Est: 15 mins

Use Window functions to calculate salary rankings within departments.

Interview: DataFramesMedium

Monthly Sales Report

Est: 15 mins

Parse timestamp strings to extract year-month groups for chronological reporting.

Interview: Window FunctionsMedium

Detect Duplicate Transactions

Est: 15 mins

Identify duplicate transactions occurring within the same minute for the same account.

Interview: Window FunctionsMedium

Customer Purchase Trends

Est: 15 mins

Compare consecutive purchase values over time using lag functions.

Interview: PerformanceHard

Optimize a Slow Spark Job

Est: 20 mins

Analyze logical query plans, use caching to prevent redundant execution, and partition data.

Interview: PerformanceHard

Handle Data Skew

Est: 20 mins

Address data skew by salting join keys and using broadcast joins.

Interview: PerformanceHard

Incremental ETL Pipeline

Est: 20 mins

Build an incremental ETL pipeline using merge and upsert logic.

Interview: StreamingHard

Streaming Order Processing

Est: 20 mins

Read streaming order feeds and filter fraudulent purchases in real time.

Interview: PerformanceHard

Large-Scale Customer Analytics

Est: 20 mins

Optimize partitions and reduce shuffle steps in large-scale customer aggregations.