Your application allows users to upload and share documents. You need to implement a solution to scan uploaded documents for malicious content. What considerations and strategies would you employ to ensure the security of the uploaded files?
- Utilize antivirus software to scan files on the server.
- Implement a content filtering system with regular expression checks.
- Use machine learning-based content analysis to detect malicious content.
- Skip content scanning to improve performance.
Employing machine learning-based content analysis is an effective way to detect malicious content in uploaded files. It can adapt and improve over time, providing better security. The other options are less robust and may not adequately protect against malicious uploads.
Loading...
Related Quiz
- You are building a game where a player must answer a series of questions. How would you structure the control flow to handle the player’s responses and determine the next action or question based on the response?
- How does JavaScript’s prototypal inheritance differ from classical inheritance models?
- You are tasked with evolving the schema of a critical, high-traffic database while minimizing downtime and data inconsistency. What strategies would you employ to safely apply schema migrations?
- To perform an action once a Promise is settled, regardless of its outcome, you can use the .finally() method, which is called on the ________ of a Promise.
- How can you prevent replay attacks when using OAuth 2.0?