Secure File Handling

Final Quiz

Connecting to LMS... Progress: in progress

Assessment

1. Why should applications treat uploaded filenames as untrusted?
2. What is path traversal?
3. Why are extension checks insufficient by themselves?
4. What is a safer storage-name pattern for uploaded files?
5. Why should upload size limits be enforced?
6. Why store sensitive uploads outside the web root where appropriate?
7. What should happen before a user downloads a protected file?
8. What is a signed URL commonly used for?
9. Why should Content-Disposition be considered for downloads?
10. Why can archive files be risky to process?
11. Why should temporary files be handled carefully?
12. What should file-handling logs avoid?
13. Why is least privilege important for file storage?
14. Why should exported files be reviewed for excessive data exposure?
15. Which statement best summarizes secure file handling?