Skip to content
Skills
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
Home
/
Data Engineer
/
Medium
/
When to cache in Spark
medium
10 pts · first answer counts
spark
performance
When to cache in Spark
In which case does calling df.cache() help most?
Choose one answer
A.
A DataFrame read once and written once
B.
A DataFrame that is expensive to compute and is reused by several actions in the same job
C.
A DataFrame larger than total cluster memory that is used once
D.
Before every single transformation, to be safe
Submit answer
Report a problem
← When a daily Airflow run starts
repartition vs coalesce →