DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Node.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Node.js
What's the main practical advantage of streaming a large file instead of using fs.readFileSync to load it entirely into memory first?
A
Streaming is always faster in raw CPU time
B
Memory usage stays roughly constant regardless of file size, instead of scaling with the full file size
C
readFileSync can't read files over 1MB
D
There's no real advantage
Check Answer