Easy1 markMultiple Choice

AWS SAP-C02 · Question 27 · Domain 1.2: Security Controls

A company has a web application deployed on Amazon EC2 instances behind an Application Load Balancer (ALB). The application uses Amazon RDS for MySQL. The security team wants to implement a Web Application Firewall (WAF) to protect against SQL injection and cross-site scripting (XSS) attacks. They also want to block requests from specific countries. Where should the Architect deploy AWS WAF?

Answer options:

A.

Attach AWS WAF directly to the Application Load Balancer (ALB).

B.

Deploy AWS WAF on the EC2 instances using the AWS Systems Manager agent.

C.

Attach AWS WAF to the Amazon RDS database to inspect incoming SQL queries.

D.

Create a VPC Network Access Control List (NACL) to block the specific countries and use AWS Shield for SQL injection protection.

How to approach this question

Identify the supported integration points for AWS WAF.

Full Answer

A.Attach AWS WAF directly to the Application Load Balancer (ALB).✓ Correct
AWS WAF is a web application firewall that helps protect web applications from common web exploits. It can be deployed on Amazon CloudFront, Application Load Balancers (ALB), Amazon API Gateway, and AWS AppSync. Attaching it to the ALB allows it to inspect all incoming traffic for SQLi, XSS, and apply geo-blocking rules.

Common mistakes

Thinking WAF can be installed on EC2 or attached to RDS.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 5

75 questions · hints · full answers · grading

More questions from this exam