Let’s Get Certified
Module 17 / 17 · Azure network security services

Stage and verify a web application firewall policy

Select WAF placement, mode, rules and association scope for a web rollout.

Stage and verify a web application firewall policy

Work through the decision

A regional passenger portal is moving behind Application Gateway. A separate global portal enters through Front Door. The regional owner wants evidence of legitimate requests affected by a new managed rule. How should the policy be tested?

Check your reasoning

Select the WAF offering and tier appropriate to the entry point. Associate a policy with the relevant gateway, listener, path or Front Door security policy and domains as supported. Begin with detection for a representative test window, capture rule IDs and affected legitimate transactions, and review the current managed rule set and any custom rules.

Watch the source lesson at 2:40:03

Compare the choices

Detection mode
Evaluate and log matches without blocking solely because of WAF detection. Use this evidence to assess normal application behavior before enforcement.
Prevention mode
Enforce applicable WAF rule actions on requests within the policy scope. Validate mode, rule action, priority and association before assuming a block.
Policy association
Attach the policy to the supported gateway or Front Door scope that actually receives the request. Confirm the hostname and path are in scope.
Scoped exclusion
Narrow a justified exception to the affected attribute and rules where supported. Retest the legitimate request and verify continued coverage for neighboring traffic.

Test the decision

Use the smallest justified exclusion or adjustment and rerun the normal transaction suite. After verifying the result, choose prevention where enforcement is intended and check the same requests again. An unassociated policy protects no entry point. Validate each hostname and path independently.

Practice the guide skills

  1. List application endpoints and decide which WAF features each needs. Watch 2:40:03
  2. Place the policy at the regional gateway or global edge according to the incoming request path. Watch 2:40:10 · Continue at 2:40:37
  3. Interpret detection telemetry before deciding whether a rule is ready for prevention. Watch 2:40:52
  4. Check which Front Door tier supports the intended managed and custom protections. Watch 2:40:29 · Continue at 2:42:15
  5. Choose an Application Gateway managed ruleset and a narrow custom rule for an application-specific requirement. Watch 2:40:10 · Continue at 2:42:15
  6. Specify mode, rule sets and the smallest justified exclusion using a known valid request. Watch 2:43:40
  7. Identify the listener, gateway or Front Door security-policy association that makes the policy effective. Watch 2:43:48 · Continue at 2:44:01

Official objectives for this lesson

Related lesson · Choose a signal and route an alert

Knowledge check

Stage and verify a web application firewall policy quiz

Answer 3 questions. Check each answer for an explanation.