To protect a mission-critical web application from 'SQL Injection' and 'Cross-Site Scripting' (XSS) attacks in a CI/CD pipeline, where should AWS WAF rules be applied for the earliest detection?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Applied to an Application Load Balancer or CloudFront distribution, with testing integrated in the staging stage of CodePipeline

WAF is best deployed at the entry point (ALB/CloudFront) and should be verified as part of the pipeline's integration tests....

📋Part of AWS Certified DevOps Engineer – Professional (DOP-C02) · AWS Certification Practice
Real Exam ScenarioScenario Based

To protect a mission-critical web application from 'SQL Injection' and 'Cross-Site Scripting' (XSS) attacks in a CI/CD pipeline, where should AWS WAF rules be applied for the earliest detection?

✓ Correct Answer & ExplanationScenario Based

Correct Answer

Applied to an Application Load Balancer or CloudFront distribution, with testing integrated in the staging stage of CodePipeline

Why This Answer Is Correct

WAF is best deployed at the entry point (ALB/CloudFront) and should be verified as part of the pipeline's integration tests.

📚 What This Question Tests

This question evaluates your knowledge of Scenario Based — a core concept tested in AWS Certified DevOps Engineer – Professional (DOP-C02). Understanding Scenario Based is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.