Recall & Review
beginner
What does storing files on disk mean in Express?
It means saving uploaded files directly to the server's hard drive or storage device. This keeps files persistent and accessible even after the server restarts.
Click to reveal answer
beginner
What is storing files in memory in Express?
It means keeping uploaded files temporarily in the server's RAM. Files are fast to access but lost when the server stops or restarts.
Click to reveal answer
beginner
Name one advantage of storing files on disk.
Files stay saved even if the server restarts, so data is not lost.
Click to reveal answer
beginner
Name one advantage of storing files in memory.
Accessing files is very fast because RAM is quicker than disk storage.
Click to reveal answer
beginner
What is a risk of storing files in memory?
If the server crashes or restarts, all files in memory are lost because RAM is temporary.
Click to reveal answer
Which storage method keeps files after server restarts?
✗ Incorrect
Files saved on disk remain after restarts; memory storage is temporary.
What is a benefit of storing files in memory?
✗ Incorrect
Memory storage allows faster file access because RAM is quicker than disk.
Which is a downside of storing files on disk?
✗ Incorrect
Disk storage is slower to access compared to memory storage.
If you want to keep files only temporarily during a request, which storage is best?
✗ Incorrect
Memory storage is good for temporary files during a request.
What happens to files stored in memory if the server crashes?
✗ Incorrect
Files in memory are lost if the server crashes because RAM is volatile.
Explain the differences between storing files on disk and in memory in Express.
Think about speed and persistence.
You got /4 concepts.
When would you choose to store files in memory instead of on disk in an Express app?
Consider temporary file use cases.
You got /4 concepts.