CAS-004 Security Architecture Practice Question
A security architect is designing a defense-in-depth strategy for a web application. Which combination of controls provides overlapping protection against SQL injection attacks?
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
✓
Input validation and parameterized queries
Defense-in-depth layers multiple controls. Input validation prevents malicious input from reaching the application, while parameterized queries ensure that SQL statements are safe even if validation fails. WAFs can detect and block injection attempts at the network layer.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Encryption and hashing
Why it's wrong here
Encryption and hashing protect data confidentiality, not injection attacks.
- ✓
Input validation and parameterized queries
Why this is correct
Input validation prevents malicious input, and parameterized queries prevent injection in database calls; together they provide overlapping protection.
- ✗
Intrusion detection system (IDS) and antivirus
Why it's wrong here
IDS may detect but not prevent; antivirus is not relevant to SQL injection.
- ✗
Web application firewall (WAF) and network segmentation
Why it's wrong here
Network segmentation does not directly protect against SQL injection.
Go deeper
Related to this question
About these practice questions
One of 968 original CAS-005 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CAS-005 practice question is part of Courseiva's free CompTIA 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 CAS-005 exam.