CCSP Cloud Application Security Practice Question
A SaaS application allows users to upload profile pictures. The development team wants to prevent upload of malicious files that could compromise the server. Which control is most effective?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Implement server-side antivirus scanning on all uploaded files before saving.
Server-side antivirus scanning detects and prevents malicious files from being stored, protecting the server. Option A is wrong because a CDN only caches and serves static content; it does not inspect file content for malware. Option B is wrong because a maximum file size limit does not address malicious content; a small file can still be harmful. Option D is wrong because file extension validation can be easily bypassed by renaming a malicious file with a valid extension.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Store files in a CDN that only serves static content.
Why it's wrong here
CDN may still serve malicious files if not scanned.
- ✗
Set a maximum file size limit to 2 MB.
Why it's wrong here
Does not prevent malicious content.
- ✓
Implement server-side antivirus scanning on all uploaded files before saving.
Why this is correct
Scans for known malware and can block dangerous files.
- ✗
Restrict file uploads to only image file types by checking the file extension.
Why it's wrong here
Extensions can be spoofed; e.g., a .exe renamed to .jpg.
Go deeper
Related to this question
About these practice questions
This CCSP question is part of Courseiva's 964-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CCSP practice question is part of Courseiva's free ISC2 certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCSP exam.