PySpark Transformations Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Batch Data Ingestion

What you'll be asked

  1. Which PySpark transformation is used to filter rows from a DataFrame based on a specific condition?
  2. When performing a join operation in PySpark, what is the primary difference between an inner join and a left outer join?
  3. You have a DataFrame with a column containing arrays of strings. Which transformation should you use to create a new row for each element in those arrays?
  4. Which of the following best describes the behavior of the 'coalesce' transformation in PySpark?
  5. You are performing a join between a very large 'Fact' table and a very small 'Dimension' table. To optimize performance and avoid a massive shuffle, which technique should you use?

Answers and explanations come after you submit.