ANS-C01 practice question 33 of 35
A company has an internal web-based application that employees use. The company hosts the application over a VPN in the company's on-premises…
Full set: 291 questionsAWS WAF is a web application firewall that protects web applications from common exploits like SQL injection. However, WAF cannot be directly associated with a Network Load Balancer (NLB) because NLBs operate at the transport layer (Layer 4) and do not inspect application-layer traffic. To use WAF, the NLB must be replaced with an Application Load Balancer (ALB), which operates at the application layer (Layer 7). The solution requires creating a WAF web ACL with rules to block SQL injection attacks and then associating this web ACL with the newly created ALB.
B. Creating a CloudFront distribution is unnecessary for an internal application accessed over a VPN and adds complexity.
D. AWS WAF cannot be associated with a Network Load Balancer, as NLBs operate at Layer 4.
F. While WAF can be associated with CloudFront, using an ALB is a more direct and appropriate solution for this internal architecture.
1. AWS WAF Developer Guide. (2023). Associating a web ACL with an AWS resource. Amazon Web Services. Retrieved from https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-associating.html (This page lists supported resources: Application Load Balancer, Amazon CloudFront, Amazon API Gateway, AWS AppSync, and Amazon Cognito user pool. NLB is not listed).
2. AWS WAF Developer Guide. (2023). Rule statements - SQL injection attack rule statement. Amazon Web Services. Retrieved from https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-use-case-sql-injection.html (This section describes the managed rule group for SQL injection).
3. Elastic Load Balancing User Guide. (2023). What is an Application Load Balancer?. Amazon Web Services. Retrieved from https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html (States that ALBs operate at the application layer, Layer 7).
4. Elastic Load Balancing User Guide. (2023). What is a Network Load Balancer?. Amazon Web Services. Retrieved from https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html (States that NLBs operate at the transport layer, Layer 4).
Keep practicing
Take the free ANS-C01 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ANS-C01 practice questions
- Question 1A company is planning to migrate to AWS and use multiple VPCs in multiple AWS Regions. A …
- Question 2A company wants to improve visibility into its AWS environment. The AWS environment consi…
- Question 3Your company runs an application for the US market in the us-east-1 AWS region. This appl…
- Question 4An IoT company sells hardware sensor modules that periodically send out temperature, humi…
- Question 5A company is deploying a non-web application on an AWS load balancer. All targets are ser…
- Question 6A company has created three VPCs: a production VPC, a nonproduction VPC, and a shared ser…
