Apache Spark
136 practice items · needed by 3 roles
Easy 39Medium 54Hard 43
Practice questions
- Sample changes on every runhard
- Spark window with no partitionhard
- When Spark actually runseasy
- What a Spark partition iseasy
- What the Spark driver doeseasy
- Calling collect() on 500 GBeasy
- Why DataFrames beat RDDs of objectseasy
- Entry point of a Spark 3+ appeasy
- Tasks in a 64-partition stageeasy
- Where a job splits into stageseasy
- Cost of inferSchema on CSVeasy
- Selecting 3 of 200 columnseasy
- Adding a constant columneasy
- What explode() doeseasy
- union() with columns in another ordereasy
- Customers with no orderseasy
- Writing to a path that existseasy
- What master local[*] meanseasy
- Reading a pretty-printed JSON fileeasy
- Recovering a lost partitioneasy
- Finding the slow part of a jobeasy
- spark-submit in cluster modeeasy
- Removing duplicate order idseasy
- Orders lost after explodeeasy
- Filling nulls per columneasy
- Scope of a temp vieweasy
- DROP TABLE on a managed tableeasy
- What Delta Lake adds to Parqueteasy
- Fast count of unique visitorseasy
- Cut-off values in show()easy
- filter() versus where()easy
- Grouping sales by montheasy
- F.coalesce vs df.coalesceeasy
- Why give a schema for JSONeasy
- Comparing with the previous day's saleseasy
- Parsing 25/03/2026 as a dateeasy
- when() with no otherwise()easy
- avg and count with a null valueeasy
- Rows from a cross joineasy
- pandas-style code on a clustereasy
- Row count from sample(0.1)easy
- What causes a shufflemedium
- Joining with a small lookup tablemedium
- When to cache in Sparkmedium
- repartition vs coalescemedium
- Why a groupBy made 200 tasksmedium
- AQE and tiny shuffle partitionsmedium
- When Spark broadcasts on its ownmedium
- One 20 GB gzip filemedium
- Input partitions for 10 GB of Parquetmedium
- How many waves of tasksmedium
- partitionBy on user_idmedium
- Filtering on a partition columnmedium
- A UDF in the WHERE clausemedium
- A cached DataFrame bigger than memorymedium
- An iterative loop that gets slowermedium
- Latest row per customermedium
- groupByKey vs reduceByKeymedium
- Reading SortMergeJoin in explain()medium
- Bad-row counter that runs highmedium
- A 50 MB Python dict in every taskmedium
- Task not serializable errormedium
- Malformed rows in a JSON feedmedium
- Rows with null keys vanish in a joinmedium
- Structured Streaming output modesmedium
- Sorting rows inside each filemedium
- Order of values from collect_listmedium
- Joining two big tables every daymedium
- Removing idle executors safelymedium
- Capping rows per output filemedium
- One file per date foldermedium
- Faster serialization for RDDsmedium
- One database connection per partitionmedium
- Upserting a stream into a tablemedium
- Running a stream as a daily jobmedium
- First micro-batch is enormousmedium
- A batch longer than its triggermedium
- Delta MERGE for new and changed rowsmedium
- Reading yesterday's table versionmedium
- Customers who ordered, no duplicatesmedium
- Making pivot fastermedium
- Subtotals with rollupmedium
- Same timestamp, different hourmedium
- Parsing a JSON string columnmedium
- Changing each element of an arraymedium
- Union of files with a new columnmedium
- A 7-row rolling summedium
- Slow toPandas on 2 million rowsmedium
- What Spark Connect changesmedium
- Thousands of tiny Delta filesmedium
- Appending a new column to Deltamedium
- Concurrent tasks with task.cpus 2medium
- Rows missing after a != filtermedium
- Where to fit a StandardScalermedium
- Window sum when days repeatmedium
- One task takes foreverhard
- Which late event is kepthard
- A slow Python UDF in PySparkhard
- Overwrite deleted the whole tablehard
- Broadcast hint on the wrong sidehard
- JDBC read with lowerBound and upperBoundhard
- Executors on a 16-core nodehard
- Unified memory for a 10 GB heaphard
- 6,000 files from one writehard
- Container killed for exceeding memoryhard
- FetchFailedException in a stagehard
- Rows in both train and testhard
- Adding 300 columns with withColumnhard
- A window with no partitionByhard
- Invalid casts after moving to Spark 4hard
- Speculation and a database sinkhard
- startingOffsets changed but ignoredhard
- Stream-stream join running out of memoryhard
- Cached numbers after an overwritehard
- Choosing partitions for a 500 GB shufflehard
- Pruning a fact table through a joinhard
- Bad join order on Hive tableshard
- A broadcast hint on 8 GBhard
- Using monotonically_increasing_id as a keyhard
- first() gives different answershard
- Where nulls go in a sorthard
- coalesce(1) made the whole job slowhard
- Plan changed from SortMerge to Broadcasthard
- A new column missing on readhard
- applyInPandas fails on one customerhard
- Windowed counts arrive latehard
- Changing a streaming aggregation keyhard
- Half-written files in a stream outputhard
- Using spot instances for Sparkhard
- Which partition AQE treats as skewedhard
- Cost of salting a skewed joinhard
- Rows produced by cube on two columnshard
- Time travel fails after VACUUMhard
- Streaming state causing long GC pauseshard
- Branch code 007 read back as 7hard
- Shuffles after repartition on the same keyhard