0
0
MongoDBquery~5 mins

Authentication mechanisms in MongoDB - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ASCRAM
Bx.509 certificate
CLDAP
DKerberos
What does x.509 authentication in MongoDB rely on?
ASSL/TLS certificates
BUsername only
CPassword hashing
DIP address
Why should authentication be enabled in MongoDB?
ATo speed up queries
BTo disable network access
CTo allow anonymous access
DTo protect data by verifying users
Which of these is NOT a MongoDB authentication mechanism?
ASCRAM
BOAuth
CLDAP
Dx.509 certificate
In SCRAM, what is the purpose of salting the password?
ATo make password storage faster
BTo prevent password reuse
CTo protect against rainbow table attacks
DTo encrypt the password
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.