Recall & Review
beginner
What is the purpose of authentication in MongoDB?
Authentication in MongoDB verifies the identity of users trying to access the database to ensure only authorized users can connect and perform actions.
Click to reveal answer
beginner
Name two common authentication mechanisms supported by MongoDB.
MongoDB supports SCRAM (Salted Challenge Response Authentication Mechanism) and x.509 certificate authentication as common methods.
Click to reveal answer
intermediate
How does SCRAM authentication work in MongoDB?
SCRAM uses a username and password. The password is salted and hashed. The server and client exchange challenges to verify the password without sending it directly.
Click to reveal answer
intermediate
What is x.509 certificate authentication in MongoDB?
x.509 authentication uses SSL/TLS certificates to verify client identity. The client presents a certificate signed by a trusted authority to connect securely.
Click to reveal answer
beginner
Why is enabling authentication important in MongoDB?
Without authentication, anyone can access the database, risking data theft or damage. Authentication protects data by allowing only verified users to connect.
Click to reveal answer
Which authentication mechanism uses username and password with salted hashing in MongoDB?
✗ Incorrect
SCRAM uses username and password with salted hashing to authenticate users.
What does x.509 authentication in MongoDB rely on?
✗ Incorrect
x.509 authentication uses SSL/TLS certificates to verify client identity.
Why should authentication be enabled in MongoDB?
✗ Incorrect
Authentication protects data by allowing only verified users to access the database.
Which of these is NOT a MongoDB authentication mechanism?
✗ Incorrect
OAuth is not a native MongoDB authentication mechanism.
In SCRAM, what is the purpose of salting the password?
✗ Incorrect
Salting adds random data to passwords to protect against rainbow table attacks.
Explain how SCRAM authentication works in MongoDB and why it is secure.
Think about how the password is protected during login.
You got /4 concepts.
Describe the role of x.509 certificates in MongoDB authentication.
Consider how certificates prove who you are.
You got /4 concepts.