Quiz: Authentication and Authorization with MongoDB
Test your understanding of user authentication, password hashing with bcrypt, JWT-based authorization, protected routes, and role-based access control in MERN applications.
We'll cover the following...
We'll cover the following...
Quiz
1.
Why is a user’s password hashed before being stored in MongoDB?
A.
Hashing is one-way, so the stored value cannot be reversed back into the original password
B.
Hashing compresses the password to save storage space
C.
Hashing encrypts the password so it can be decrypted at login
D.
MongoDB requires all string fields to be hashed
1 / 15