Question

Difficulty: EasyThreat Protection and Web Application Firewall (WAF)

A SysOps administrator is tasked with protecting a regional Amazon API Gateway endpoint from SQL injection attacks using AWS WAF. Which actions must the administrator perform to achieve this security objective? (Select TWO.)

  1. Create a regional Web Access Control List (Web ACL) and add a rule statement that inspects for SQL injection patterns.Answer
  2. Associate the regional Web ACL with the specific Amazon API Gateway stage.Answer
  3. C
    Configure an inbound Network Access Control List (NACL) rule on the subnet to block SQL injection while restricting outbound traffic to ports 80 and 443 only.
  4. D
    Create an IAM role allowing API Gateway to invoke AWS WAF, ensuring the administrator's IAM policy has assume role permissions but omitting the pass role permission.
  5. E
    Configure the API Gateway to route traffic to a subnet that has had its Internet Gateway route removed from the subnet's route table.

Answer

Create a regional Web Access Control List (Web ACL) with a rule statement that inspects for SQL injection patterns, and associate this Web ACL with the specific Amazon API Gateway stage.
To protect a regional Amazon API Gateway stage, the SysOps administrator must create a regional Web Access Control List (Web ACL) in AWS WAF that contains a rule statement to inspect request payloads for SQL injection patterns, and then associate that Web ACL directly with the API Gateway stage. AWS WAF functions at layer 7 to inspect and filter incoming traffic based on configured rules.

Step-by-Step Solution

1
Create the AWS WAF Web ACL
A regional Web ACL is created containing a SQL injection match rule statement.
AWS WAF requires a Web ACL to define the inspection rules, and it must be created in the regional scope to be compatible with regional API Gateway endpoints.
2
Associate Web ACL with API Gateway
The Web ACL is bound to the target API Gateway stage.
AWS WAF protection only takes effect once the Web ACL is associated with the deployment stage of the API Gateway.

Key Concept

AWS WAF protects API Gateway stages by using regional Web ACLs containing rule statements that inspect HTTP/S request components for SQL injection attacks.
Estimated Time:1m 0s
Rate this question