Courseiva
mediumMultiple SelectObjective-mapped

CAS-004 Practice Question: A security architect is evaluating web…

A security architect is evaluating web application firewall (WAF) features to protect against common attacks. Which TWO of the following attacks can a WAF most effectively prevent?

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

Cross-site scripting (XSS)

SQL injection and XSS are application-layer attacks that a WAF can detect and block based on signatures or heuristics. CSRF requires tokens, and session hijacking is often 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.

  • Session hijacking

    Why it's wrong here

    Session hijacking involves stealing session cookies; WAFs cannot prevent cookie theft.

  • Cross-site scripting (XSS)

    Why this is correct

    WAFs can detect and block reflected/stored XSS.

  • SQL injection

    Why this is correct

    WAFs can filter malicious SQL patterns.

  • Distributed denial-of-service (DDoS)

    Why it's wrong here

    DDoS mitigation often requires dedicated DDoS protection services.

  • Cross-site request forgery (CSRF)

    Why it's wrong here

    CSRF is best mitigated by anti-CSRF tokens; WAFs are not effective.

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 →

How Courseiva writes practice questions · Editorial policy

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.