Easy1 markMultiple Choice
Domain 2.3: Security ControlsAPI GatewayWAFSecurity

AWS SAP-C02 · Question 39 · Domain 2.3: Security Controls

A company is designing a serverless application using Amazon API Gateway and AWS Lambda. They need to protect the API from SQL injection and cross-site scripting (XSS) attacks. Which solution requires the LEAST operational overhead?

Answer options:

A.

Implement input validation logic within the Lambda function code.

B.

Deploy AWS WAF and associate a Web ACL with the API Gateway.

C.

Use Amazon GuardDuty to detect and block malicious requests.

D.

Place the API Gateway behind an Application Load Balancer and configure security groups.

How to approach this question

Identify the AWS service for Layer 7 web application protection.

Full Answer

B.Deploy AWS WAF and associate a Web ACL with the API Gateway.✓ Correct
Deploy AWS WAF and associate a Web ACL with the API Gateway.
AWS WAF is a web application firewall that helps protect web applications or APIs against common web exploits like SQL injection and XSS. It integrates directly with API Gateway.

Common mistakes

Relying on custom code validation instead of a managed WAF.

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

75 questions · hints · full answers · grading

More questions from this exam