DOP-C02 Rate-based rule Practice Question
A company uses AWS WAF to protect a web application behind an Application Load Balancer. The security team notices an increase in false positives blocking legitimate traffic. Which action should be taken to reduce false positives while maintaining security?
⚠ Common exam trap
Candidates often think that changing rule action to 'Count' is a good compromise, but it only logs and does not block, thus reducing security. The correct approach is to adjust the threshold.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Adjust the rate-based rule threshold to a higher value.
Adjusting the rate-based rule threshold to a higher value allows more legitimate traffic while still blocking excessive requests. Option A: Removing the rule would weaken security. Option B: AWS Shield Advanced is a DDoS protection service, not a replacement for fine-tuning WAF rules. Option D: Changing action to 'Count' logs requests but does not block them, reducing security.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Remove the rate-based rule that is causing false positives.
Why it's wrong here
Removing the rate-based rule entirely would be a security regression, as it would disable all velocity-based protection against abusive request patterns such as credential stuffing, web scraping, or distributed denial-of-service at the application layer. AWS WAF rate-based rules are the targeted control for limiting how many requests one IP can send within a defined window, and their absence leaves your application relying solely on other rules that do not account for volume. You should not delete the rule; instead, adjust its limit to a value that accommodates your legitimate traffic baseline.
- ✗
Replace AWS WAF with AWS Shield Advanced.
Why it's wrong here
AWS Shield Advanced is a fully managed DDoS protection service that operates at the transport and network layers (L3/L4) and augments, rather than replaces, AWS WAF's application-layer (L7) inspection capabilities. Even with Shield Advanced enabled, you would still need AWS WAF rate-based rules or similar L7 controls to stop HTTP-level floods, credential stuffing, and bot traffic that appear as high request rates to your web application. Furthermore, Shield Advanced does not offer rate-limit threshold tuning like a WAF rule, so it cannot solve a false-positive problem caused by a permissive per-IP aggregate request limit.
- ✓
Adjust the rate-based rule threshold to a higher value.
Why this is correct
Increasing the rate-based rule's threshold is the appropriate response because the rule currently flags legitimate traffic when it should only block genuinely anomalous request floods. AWS WAF rate-based rules count requests that match a rule's conditions from a single source IP over a 1- or 5-minute evaluation window; if your legitimate users share an office IP or traverse a NAT gateway, their aggregate requests can exceed a threshold set too close to peak traffic. By raising the threshold above your historical maximum legitimate request volume per IP, you preserve protection against distributed or bot-driven floods while eliminating false positives from normal usage spikes.
- ✗
Change the rule action from 'Block' to 'Count'.
Why it's wrong here
Switching the rule action from Block to Count is a debugging mechanism, not a fix, because Count mode instructs AWS WAF to add the request to metrics and sampled requests but still allows the request to pass through to the application. While this would let you confirm whether the rule is matching legitimate traffic, it strips the WAF of its ability to actively mitigate a high-speed attack, leaving the application exposed. The correct course is to tune the threshold upward so the rule both retains blocking capability and stops flagging typical traffic.
Go deeper
Related to this question
About these practice questions
One of 1,298 original DOP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
You might also like
Similar DOP-C02 questions
- A DevOps engineer is tasked with auditing all AWS API calls made in the account for compliance purposes. The engineer ne…
- A company is designing a secure CI/CD pipeline using AWS CodePipeline, CodeBuild, and CodeDeploy. The pipeline must depl…
- Refer to the exhibit. An IAM policy is attached to a user. The user requests an object from the 'example-bucket' bucket,…
- A company has a VPC with public and private subnets. An EC2 instance in the private subnet needs to download patches fro…
- A DevOps engineer needs to securely store and automatically rotate database credentials for a MySQL RDS instance. The cr…
Written by Johnson Ajibi, MSc IT Security
Security Systems Architect · founder of Courseiva
This DOP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DOP-C02 exam.