🔥 3-day streak
Databricks Certified Data Engineer Associate104 / 150
Question 104 of 150

A data engineer needs to load historical order data stored as Parquet files in an S3 directory that is partitioned by year and month (e.g., /orders/year=2023/month=05/). The team's dashboard queries almost always filter on a specific year and month. When writing the batch read into a DataFrame, what should the engineer do to ensure Spark can leverage partition pruning and avoid scanning the entire dataset?

Reviewed for accuracy · Report an issueNext question