0
0
Expressframework~5 mins

Storing files on disk vs memory in Express - Quick Revision & Key Differences

Choose your learning style9 modes available
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?
AStoring files in memory
BStoring files on disk
CNeither
DBoth
What is a benefit of storing files in memory?
AFaster access to files
BFiles are saved permanently
CFiles use less RAM
DFiles are encrypted automatically
Which is a downside of storing files on disk?
AFiles are lost on server restart
BFiles cannot be accessed by Express
CAccess speed is slower than memory
DFiles use too much RAM
If you want to keep files only temporarily during a request, which storage is best?
AMemory storage
BDisk storage
CDatabase storage
DCloud storage
What happens to files stored in memory if the server crashes?
AFiles remain safe on disk
BFiles are backed up automatically
CFiles are sent to the client
DFiles are lost
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.