spark Data Engineering Labs

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

Interview Focus: 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 Focus: DataFramesEasy
Customer Data Cleaning
Est: 10 mins

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

Interview Focus: DataFramesEasy
Product Price Analysis
Est: 10 mins

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

Interview Focus: DataFramesEasy
Department Salary Report
Est: 10 mins

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

Interview Focus: DataFramesEasy
Top Paid Employees
Est: 10 mins

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

Interview Focus: DataFramesEasy
Customer Age Categories
Est: 10 mins

Classify customers into age groups using conditional logic statements.

Interview Focus: DataFramesEasy
Basic DataFrame Joins
Est: 10 mins

Join relational employee profiles with department metadata mapping.

Interview Focus: DataFramesEasy
Convert CSV to Parquet
Est: 10 mins

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

Interview Focus: DataFramesEasy
Sales Summary Report
Est: 10 mins

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

Interview Focus: DataFramesEasy
Employee Bonus Calculator
Est: 10 mins

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

Interview Focus: DataFramesMedium
Customer Order Analytics
Est: 15 mins

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

Interview Focus: Window FunctionsMedium
Employee Ranking Dashboard
Est: 15 mins

Use Window functions to calculate salary rankings within departments.

Interview Focus: DataFramesMedium
Monthly Sales Report
Est: 15 mins

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

Interview Focus: Window FunctionsMedium
Detect Duplicate Transactions
Est: 15 mins

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

Interview Focus: Window FunctionsMedium
Customer Purchase Trends
Est: 15 mins

Compare consecutive purchase values over time using lag functions.

Interview Focus: PerformanceHard
Optimize a Slow Spark Job
Est: 20 mins

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

Interview Focus: PerformanceHard
Handle Data Skew
Est: 20 mins

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

Interview Focus: PerformanceHard
Incremental ETL Pipeline
Est: 20 mins

Build an incremental ETL pipeline using merge and upsert logic.

Interview Focus: StreamingHard
Streaming Order Processing
Est: 20 mins

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

Interview Focus: PerformanceHard
Large-Scale Customer Analytics
Est: 20 mins

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