In Apache Spark, which process is responsible for coordinating the execution of jobs and scheduling tasks on executors?
Dbsparkdev Architecture Category
Question · Easy
Wedding seating, as a LEFT JOIN
Short
Which of the following is a narrow transformation in Spark?
Chapter 1: Spark Architecture and Execution
1.1 Spark Benefits, Modules, and DataFrame/Dataset Concepts
Study guide
Which Spark action triggers the execution of transformations and returns data to the driver?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
What does lazy evaluation mean in Spark?
What does this PySpark code do? df.select('name', 'age').filter('age > 18').show()
Dbsparkdev Dataframe Api Category
Which PySpark code renames a column named 'FirstName' to 'first_name'?
1.2 Driver, Executors, and Cluster Managers
Which method adds a new column to a DataFrame based on a computed expression?
Given df has columns id, name, age, which code returns only the id and age columns cast to Long and Integer respectively?
Question · Medium
Which method removes duplicate rows across all columns in a DataFrame?
Which F.* function replaces null values with a specified default?
1.3 Execution Hierarchy: Applications, Jobs, Stages, and Tasks
Which PySpark code filters rows where name is not null?
Which action returns the first n rows of a DataFrame as a list of Row objects on the driver?
Which Spark function converts a string column to uppercase?
Given df.groupBy('dept').agg(F.avg('salary').alias('avg_salary')), what does this compute?
Dbsparkdev Aggregations Category
1.4 Lazy Evaluation, Transformations vs Actions, and Resilient Lineage
Which PySpark expression counts distinct values of a column?
Which approximate aggregation uses HyperLogLog for fast distinct counts on huge datasets?
Which join type returns only rows with matching keys in both DataFrames?
Which join returns rows from the left DataFrame that have no match in the right?
Chapter 2: Shuffles, Memory and Persistence
2.1 Narrow vs Wide Dependencies and the Shuffle Mechanism
Which hint forces Spark to broadcast a small DataFrame to all executors, avoiding shuffle during a join?
Which Spark component optimizes logical query plans into physical execution plans?
Which setting enables Adaptive Query Execution (AQE) in Spark?
Which method reads a Parquet file into a DataFrame?
Dbsparkdev Io Category
2.2 Memory Management, Fault Tolerance, and Garbage Collection
Which DataFrame write mode replaces existing data at the target path?
Which code writes a DataFrame partitioned by 'year' and 'month'?
Which is the correct way to define a custom schema for spark.read.csv?
Why is explicit schema preferred over schema inference on large CSV files?
2.3 Caching, Persistence, and StorageLevels
Which option instructs spark.read.csv to treat the first line as headers?
Which Window specification computes a 7-day rolling average?
Dbsparkdev Window Functions Category
Question · Hard
Which window function assigns a unique sequential number within each partition?
Which window function returns the value of a column from the previous row within a partition?
Chapter 3: Spark SQL Sessions, Tables and Views
3.1 SparkSession, Catalogs, Databases, and Namespaces
Which PySpark code creates a temporary view for Spark SQL queries?
Dbsparkdev Spark Sql Category
Which runs an SQL query on a registered view?
Which is the correct difference between repartition and coalesce?
Dbsparkdev Performance Category
What does df.cache() do?
3.2 Managed vs External Tables and CTAS
Which StorageLevel serializes data in memory (less memory, more CPU to deserialize)?
What is the purpose of df.unpersist()?
Which UDF approach has the BEST performance in PySpark?
Dbsparkdev Pandas Api Category
Loading more…