Real questions from top companies in Spark/Big Data Β· medium
What work is done by the executor memory in Spark?
When and how do you use Broadcast Join?
Write a Python script to find the count of each word in a text file using Spark.
Write the PySpark code to find the second highest salary in each department.
Accumulators - use as shared variable for write-only operations
Broadcast Joins and Shuffle Merge Joins?
Broadcast join - how it optimizes joins
Can you explain the concept of mappers in Spark, and how are they used in data transformations?
Code a simple PySpark job to read a JSON file, filter records, and write output in Parquet format.
Compare Spark's lineage recovery with Hadoop's block replication mechanism.
Daily tasks of a Data Engineer?
Data-Related Issues Encountered - handling skewed data
Describe how you would use PySpark to aggregate and summarize large transaction datasets.
Discuss performance tuning concepts such as shuffle, skew, and caching.
Discuss techniques such as partitioning, broadcast joins, and caching to enhance Spark job performance.
How do you handle out-of-memory errors in Spark jobs?
How do you handle very large datasets in Spark to ensure scalability and efficiency?
Provide specific examples of challenges faced with PySpark and SQL and solutions implemented.
Split a DataFrame such that even numbers appear in one column and odd numbers in another
Steps to mount storage in Databricks.
Type or paste your answer to any of these questions and our AI Coach scores it, highlights gaps, and rewrites it at FAANG quality. Free to try.