Question 1
Topic: Section 1: Apache Spark Architecture and Components
Skill tested: Trace DataFrame transformations, actions, jobs, stages, and tasks in Spark execution.
A batch application reads a large Parquet dataset, filters rows, selects two columns, groups by one selected column, and writes the aggregated result. The filter and projection can be evaluated from Parquet metadata and pushed into the scan. The group-by key is not already partitioned, and the write is an action. An engineer is reviewing the Spark UI and wants to explain the execution hierarchy without assuming that each API call creates a separate job. Which description is most accurate?
DataFrame transformations are generally lazy; the write action causes Spark to execute the required lineage. Operations such as filters and projections can be pipelined when they do not require data exchange. Grouping by a key normally requires a shuffle, which introduces a stage boundary. Spark schedules tasks for partitions, not individual rows. The other descriptions incorrectly treat each transformation as a job, assume eager source execution, or characterize a shuffle-dependent aggregation as narrow.