Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
When is it most beneficial to persist a DataFrame df using the MEMORY_AND_DISK storage level instead of MEMORY_ONLY?
df
MEMORY_AND_DISK
MEMORY_ONLY
A
When all of the computed data in DataFrame df can fit into memory.
B
When the memory is full and it’s faster to recompute all the data in DataFrame df rather than read it from disk.
C
When it’s faster to recompute all the data in DataFrame df that cannot fit into memory based on its logical plan rather than read it from disk.
D
When it’s faster to read all the computed data in DataFrame df that cannot fit into memory from disk rather than recompute it based on its logical plan.
E
The storage level MENORY_ONLY will always be more advantageous because it’s faster to read data from memory than it is to read data from disk.