Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
A junior data engineer is utilizing the %sh magic command to execute some legacy code. A senior data engineer suggests refactoring the code instead. What could be the reason for avoiding the use of the %sh magic command?
A
%sh executes shell code exclusively on the local driver machine, leading to significant performance overhead.
B
None of these reasons accurately describe why %sh might need to be avoided.
C
%sh restarts the Python interpreter, clearing all variables declared in the notebook.
D
%sh cannot access storage to persist the output.
E
All the above reasons explain why %sh may need to be avoided.