exam questions

Exam SY0-501 All Questions

View all questions & answers for the SY0-501 exam

Exam SY0-501 topic 1 question 935 discussion

Actual exam question from CompTIA's SY0-501
Question #: 935
Topic #: 1
[All SY0-501 Questions]

An attacker is attempting to harvest user credentials on a client's website. A security analyst notices multiple attempts of random usernames and passwords.
When the analyst types in a random username and password, the logon screen displays the following message:

Which of the following should the analyst recommend be enabled?

  • A. Input validation
  • B. Obfuscation
  • C. Error handling
  • D. Username lockout
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
gr23
1 year, 5 months ago
Error handling. The website is giving out information after an error has occurred that the threat actor can use to refine their attacks.
upvoted 1 times
...
eddy72
1 year, 5 months ago
Selected Answer: D
Username lockout: This is the most effective measure to thwart credential stuffing attacks. Here's how it works: Threshold: After a certain number of failed login attempts (typically 3-5) within a specified timeframe, the account is locked. Duration: The lockout period can vary, often lasting 15-30 minutes or longer. Reset: Users can typically reset their password or contact support to unlock their account.
upvoted 1 times
...
BigPoopsLeague
1 year, 10 months ago
According to the CompTIA book, the answer should be C: "Improper error handling: When software is not designed to properly handle errors, the result might be release of message and diagnostic information that is sensitive to the inner workings of the systems. This data can disclose details to an end user and allow an attacker to gain sufficient information to advance an attack."
upvoted 2 times
...
milktea810182
2 years, 1 month ago
Selected Answer: B
the answer is B.
upvoted 1 times
...
TheGreatCornholio
3 years, 1 month ago
Error handling isn't something you "enable" lol
upvoted 1 times
...
TheGreatCornholio
3 years, 1 month ago
Why on earth would it be "error handling". This just assumes that the developer for some reason throws some exception if there's no match for a username or password, what a silly assumption, as this logic is generally done in the body of a method (but could be done either way). A very general code example would be: private Boolean isValidUser(String user, String password){ if(dao.verifyUser(user) && dao.verifyPassword(password){ return true; } else{ addMessage("Your credentials were not correct"); return false; } How is it possible that Comptia is taken seriously by anybody in this field?
upvoted 1 times
Vulcan6x9
1 year, 11 months ago
True, it should be D according to me as A and B doesn't make any sense in this scenario
upvoted 1 times
...
...
StickyMac
4 years, 1 month ago
and I can't determine if its D or C
upvoted 2 times
...
StickyMac
4 years, 1 month ago
is it Improper error handling or just error handling?
upvoted 2 times
...
jeff420
4 years, 1 month ago
is username lockout the same as account lockout? "Account lockout keeps the account secure by preventing anyone or anything from guessing the username and password." so if that is the case then i would go with D.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...