exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 135 discussion

Actual exam question from Cisco's 350-901
Question #: 135
Topic #: 1
[All 350-901 Questions]

There is a requirement to securely store unique usernames and passwords. Given a valid username, it is also required to validate that the password provided is correct.
Which action accomplishes this task?

  • A. Encrypt the username, hash the password, and store these values.
  • B. Hash the username, hash the password, and store these values.
  • C. Encrypt the username, encrypt the password, and store these values.
  • D. Hash the username, encrypt the password, and store these values.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
NetGirl
Highly Voted 6 months, 4 weeks ago
Selected Answer: A
A is correct. Because username must be unique: Fact #1: If you hash the username, it'll become irreversible. Fact #2: It is possible for two different string to produce the same hash. Which means when you hash the username, you cannot be 100% sure it's unique anymore. With encryption however you'll be able to reverse the username stored in db, and compare it with the username. https://learn.microsoft.com/en-us/dotnet/api/system.string.gethashcode?view=net-6.0#definition
upvoted 14 times
...
Teringzooi
Most Recent 7 months ago
Selected Answer: B
Correct answer: B https://www.maketecheasier.com/password-hashing-encryption/
upvoted 2 times
...
QuiShong
10 months, 2 weeks ago
Selected Answer: B
I'd go with B. You probably want to hash the username and salt+hash the password to protect the password and make it harder to figure out the username (especially if they're email addresses).
upvoted 3 times
unknown_398
7 months, 2 weeks ago
article explains how hashing is more secure: https://www.maketecheasier.com/password-hashing-encryption/
upvoted 1 times
...
...
bboycoi
11 months, 1 week ago
I chose D: Hash username == Unique, encryption is a must for password
upvoted 3 times
QuiShong
10 months, 2 weeks ago
You don't want to encrypt the password. Encryption is reversible. You always want to hash the password.
upvoted 3 times
...
martin_k1
10 months, 1 week ago
Wrong.
upvoted 2 times
...
Safinok
7 months ago
Wrong, and how you will take DevNet Pro when you say encrypt the password? This such comments should never has been approved or existed.
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago