Whenever you're ready, walk me through how you'd approach this.
Explain Spark internals and how transformations and actions work under the hood, including what you would tune to improve performance.
Cover the driver, executors, jobs, stages, tasks, DAG construction, lazy evaluation, narrow and wide transformations, shuffle behavior, and fault recovery. Use a practical example to explain how you would diagnose and improve a slow Spark pipeline, including relevant Spark UI metrics, partitioning, caching, serialization, joins, data skew, and resource configuration.