Mitigating Dictionary Attacks on an External-Facing Portal
Short answer
B Enforce password complexity requirements so portal credentials fall outside the attacker's dictionary wordlist.
Question
Key Takeaways
It tests the CompTIA attack-to-control mapping for password guessing, and the trap is picking attempt-rate throttling (lockout) or a general backstop (MFA) instead of the control aimed at wordlist guessing.
This CS0-003 question tests mapping a password attack type to the right control, and the answer is B, password complexity, which removes credentials from the attacker's dictionary wordlist.
Common mistake: Choosing D, lockout policy: it limits failed attempts and looks directly responsive, but CompTIA maps lockout to brute-force attacks, it enables lockout-based denial of service on a public portal, and spraying stays under the threshold.
Expert Analysis
The tempting choice: lockout policy A dictionary attack presents as a burst of failed logins against a portal account, so an account lockout after a handful of failures looks like the surgical fix: it is fast to deploy, needs no user enrollment, and visibly throttles the traffic just detected. That is why option D draws most of the debate. But lockout only caps guesses per time window; it never changes whether a guess can succeed.
Where option D stops being correct CompTIA's own Security+ study material draws the line explicitly: account lockouts help protect against brute-force attacks, while complex passwords thwart dictionary attacks. The question deliberately says "dictionary," so it is testing that mapping rather than general attempt-rate throttling. On an external-facing portal, a lockout policy also hands the attacker a denial-of-service lever — scripted attempts can lock out real customers — and password spraying (a single guess per account across thousands of accounts) stays under the threshold entirely.
Why option B is the answer A dictionary attack succeeds only when an entry from the attacker's wordlist matches the password. Option B — password complexity: sufficient length, mixed character classes, and rejection of common words — pushes portal credentials outside any wordlist, so every guess fails by construction; that is the control tied to this attack type. Option A (multifactor authentication) is a valuable backstop that neutralizes a successful guess, but it does not stop the password guessing itself, which is what the question asks to mitigate. Option C (web application firewall) filters web-layer attacks such as injection and is not the control associated with credential guessing.
Official Reference
https://www.comptia.org/certifications/security
This link opens the official vendor documentation in a new tab.
Exam Strategy
Read the attack subtype first and treat it as the key: dictionary maps to password complexity, brute force maps to lockout and rate limiting, credential replay maps to MFA. When two options both plausibly reduce risk, ask which one addresses the attack mechanism named in the stem rather than which is the most security-desirable overall. Also watch for controls that create a side effect on an external-facing service — an attacker-triggered lockout is a denial-of-service vector, which is a common reason an otherwise reasonable option is wrong.
Frequently Asked Questions
Why isn't account lockout the best answer for a dictionary attack?
Doesn't MFA make password guessing irrelevant?
How does password complexity stop an attack already in progress?
Community Votes
47% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 21 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 21
-
52895e9 👍 9 Answered BYour first layer of protection against dictionary attacks would be password complexity. Second layer would be multifactor authentication.
-
newenglandgirl1078 👍 6 Answered BText is from COMPTIA Security + Study Guide - Account Lockouts help protect against brute force attacks. - Complex Passwords thwart dictionary attacks.
-
Justheretolook 👍 3 Answered DThe correct answer is: D. Lockout policy Explanation: A dictionary attack involves repeatedly trying different passwords from a predefined list. The most effective mitigation against this specific type of attack is to implement an account lockout policy, which: • Temporarily locks the account after a certain number of failed login attempts. • Thwarts brute-force or dictionary attacks by limiting how many attempts can be made.
-
Popeyes_Chicken 👍 3 Answered BThey're definitely looking for password complexity here with the key term dictionary attack. Dictionary attacks thrive off of weak passwords.
-
speed69 👍 2 Answered Aits A, since the attacker would also need the other factor. Password complexity wouldn't fix the issue since its a dictionary attack. when you use complicated passwords people start to use the waterfall password, or other simple methods. Lockout policy would be good but the attacker could get lucky and still gain access within the lockout limit. MFA is the best solution compared to all the other options above.
Show 16 more comments
-
0xdexter 👍 2 Answered DThe answer is D and here's why: even if you implemented complex passwords it could be leaked on the dark web, therefore it's not B. and its not A because MFA can be bypassed.
-
JayWeston 👍 2Would you want a lookout policy on an external webpage. Your account is just going to be locked out 24/7.
-
f90ecff 👍 2 Answered DLockout policy = immediate, targeted defense against dictionary and brute-force attacks
-
SAMIcho 👍 2 Answered DThe best option to mitigate dictionary attacks is: D. Lockout policy ✅
-
mrhustle 👍 1 Answered DThe best option to mitigate dictionary attacks against a company's external-facing portal is: D. Lockout policy Here's why: A dictionary attack involves an attacker systematically trying a list of common words or phrases as passwords. A lockout policy, which temporarily disables an account after a certain number of failed login attempts, directly counters this by preventing the attacker from making a large number of guesses in a short period. This makes the attack slow and ineffective, as the attacker would need to wait for the
-
BlackSkullz 👍 1 Answered DLockout policies are specifically created to counter dictionary attacks. It locks the account for a certain amount of time after so many failed attempts, which would make it extremely time consuming and impractical for the attacker to target. MFA and complex passwords are also good measures but they wouldn't directly address the constant bombardment of login attempts. A WAF might be of assistance as well but it's questionable since most brute force attacks come in the form of legitimate login attempts
-
tailogdavid1987 👍 1 Answered AA dictionary attack succeeds when a guessed password is accepted. MFA requires a second factor the attacker does not have, so a successful password guess still fails to grant access. That removes the impact of the attack.
-
bes_i 👍 1 Answered AMultifactor Authentication (MFA) Even if an attacker guesses or cracks the password, they still cannot authenticate without the second factor (token, SMS code, authenticator app, hardware key, etc.)
-
ahmedalkibsy 👍 1 Answered A(MFA) is the most robust solution for mitigating dictionary attacks, as it adds an extra layer of security that is not dependent on the strength of the password alone.
-
Wolf541 👍 1 Answered AI agree with speed I think the answer is A because even if they guess the password they would need another form of authentication to login to the account.
-
NobleSub 👍 1 Answered BI'm saying B. The questions states there are indicators of dictionary attacks. To best protect against dictionary attacks would be Password complexity.
-
PatrickH 👍 1 Answered DA, B and D are decent strategies therefore bad question however in 2026 ie today MFA is the recommended strategy
-
JayWeston 👍 1If the password is leaked then a lookout policy is not going to help.
-
Susan4041 👍 1 Answered AB would not mitigate the issue only A
-
PatrickH 👍 1Sorry meant to say A
-
Rider2053 👍 1 Answered DLockout policy
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.