Courseiva
Cloud Technology and ServicesmediumMultiple ChoiceObjective-mapped

CLF-C02 Cloud Technology and Services Practice Question

A company runs a web application behind an Application Load Balancer (ALB). The security team wants to protect the application from common web exploits such as SQL injection and cross-site scripting (XSS). They need a managed service that allows them to create custom rules to filter malicious HTTP traffic and integrates directly with the ALB and Amazon CloudFront. Which AWS service should the security team configure?

⚠ Common exam trap

Watch out — candidates often confuse AWS WAF with AWS Shield Advanced, thinking both provide application-layer filtering, but Shield Advanced only provides DDoS mitigation and does not inspect HTTP payloads for SQL injection or XSS.

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

AWS WAF

AWS WAF is a managed web application firewall that protects against common web exploits like SQL injection and cross-site scripting (XSS). It integrates directly with Application Load Balancers (ALB) and Amazon CloudFront, and allows you to create custom rules to filter malicious HTTP traffic based on conditions such as IP addresses, HTTP headers, and request body patterns.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • AWS WAF

    Why this is correct

    AWS WAF is the correct choice because it is a web application firewall that operates at Layer 7 of the OSI model, inspecting HTTP(S) request content, headers, and body for malicious payloads. It natively integrates with Application Load Balancers and CloudFront, and you can deploy managed rule groups or custom rules to block SQL injection and cross-site scripting (XSS) before the request reaches your application.

  • AWS Shield Advanced

    Why it's wrong here

    AWS Shield Advanced is incorrect for this use case because it provides managed distributed denial-of-service (DDoS) protection that operates at the network and transport layers (Layers 3 and 4), primarily absorbing volumetric attacks such as SYN floods and UDP reflection attacks. It does not inspect the application-layer payload of individual HTTP requests and therefore cannot systematically identify or block SQL injection or XSS patterns. For those web exploit protections, you need a WAF rather than a DDoS mitigation service.

    When this WOULD be correct

    A company wants to protect its web application from DDoS attacks and needs 24/7 access to a DDoS response team. They also require financial protection against scaling costs due to DDoS attacks. In that scenario, AWS Shield Advanced would be the correct answer.

  • AWS Firewall Manager

    Why it's wrong here

    Incorrect. AWS Firewall Manager is a centralized management service that helps enforce firewall rules across accounts and resources, but it does not perform web application filtering itself. It can manage AWS WAF rules, but the service that actually inspects traffic is WAF.

    When this WOULD be correct

    A company has multiple AWS accounts and wants to centrally deploy and manage AWS WAF rules across all accounts and resources (e.g., ALBs, CloudFront distributions) from a single administrative account. The security team needs to enforce a common set of web ACL rules for compliance, and they require a managed service to automate rule deployment and policy compliance across the organization.

  • AWS Network Firewall

    Why it's wrong here

    Incorrect. AWS Network Firewall provides stateful firewall and intrusion prevention for VPC network traffic, but it operates at the network layer (OSI layers 3-4) and does not inspect application-layer HTTP requests for SQL injection or XSS.

    When this WOULD be correct

    A company needs to filter outbound traffic from a VPC to the internet, enforce stateful inspection, or block malicious IPs at the network layer. The question would specify 'network-level filtering' or 'VPC traffic inspection'.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The CLF-C02 exam frequently reuses these exact scenarios with slightly different constraints.

AWS WAFCorrect answer

Why this is correct

AWS WAF is the correct choice because it is a web application firewall that operates at Layer 7 of the OSI model, inspecting HTTP(S) request content, headers, and body for malicious payloads. It natively integrates with Application Load Balancers and CloudFront, and you can deploy managed rule groups or custom rules to block SQL injection and cross-site scripting (XSS) before the request reaches your application.

AWS Shield AdvancedWrong answer — click to see why

Why this is wrong here

AWS Shield Advanced provides DDoS protection, not custom rule-based filtering for SQL injection or XSS. It does not offer the ability to create custom rules to filter malicious HTTP traffic.

★ When this WOULD be the correct answer

A company wants to protect its web application from DDoS attacks and needs 24/7 access to a DDoS response team. They also require financial protection against scaling costs due to DDoS attacks. In that scenario, AWS Shield Advanced would be the correct answer.

Why candidates choose this

Candidates may confuse Shield Advanced with WAF because both are security services, and Shield Advanced includes WAF at no extra cost, leading them to think it provides the same custom rule capabilities.

AWS Firewall ManagerWrong answer — click to see why

Why this is wrong here

AWS Firewall Manager is a policy management service that centrally configures and manages firewall rules across accounts and resources, but it does not itself provide the web application filtering rules (e.g., SQL injection, XSS) required by the question. The question asks for a service that allows creation of custom rules to filter malicious HTTP traffic, which is the function of AWS WAF, not Firewall Manager.

★ When this WOULD be the correct answer

A company has multiple AWS accounts and wants to centrally deploy and manage AWS WAF rules across all accounts and resources (e.g., ALBs, CloudFront distributions) from a single administrative account. The security team needs to enforce a common set of web ACL rules for compliance, and they require a managed service to automate rule deployment and policy compliance across the organization.

Why candidates choose this

Candidates may confuse Firewall Manager as a service that provides firewall capabilities (like WAF rules) because its name includes 'Firewall' and it can manage WAF policies, but they overlook that Firewall Manager is a policy orchestration service, not the service that actually inspects and filters HTTP traffic.

AWS Network FirewallWrong answer — click to see why

Why this is wrong here

AWS Network Firewall is a managed firewall for VPC network traffic, not for web application layer attacks like SQL injection or XSS. It does not integrate directly with ALB or CloudFront for HTTP filtering.

★ When this WOULD be the correct answer

A company needs to filter outbound traffic from a VPC to the internet, enforce stateful inspection, or block malicious IPs at the network layer. The question would specify 'network-level filtering' or 'VPC traffic inspection'.

Why candidates choose this

Candidates may confuse 'firewall' with 'web application firewall' and assume Network Firewall can handle HTTP-level threats, not realizing it operates at layers 3-4, not layer 7.

Analysis generated from the official CLF-C02blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Visual reference

Source Router + ACL permit 10.0.0.0/8 deny any Server 10.0.0.5 ✓ 192.168.1.1 ✗ dropped ACLs evaluate top-down; first match wins — implicit deny all at end

About these practice questions

This CLF-C02 question is part of Courseiva's 988-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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CLF-C02 practice question is part of Courseiva's free Amazon Web Services 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 CLF-C02 exam.