0
0
MongoDBquery~20 mins

Why MongoDB security matters - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
MongoDB Security Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why is securing MongoDB important?
Which of the following is the main reason why securing MongoDB databases is critical?
ATo prevent unauthorized access that could lead to data theft or loss
BTo improve the speed of database queries
CTo reduce the size of the database files
DTo allow anyone to read data without restrictions
Attempts:
2 left
💡 Hint
Think about what happens if someone who shouldn't access the data gets in.
query_result
intermediate
2:00remaining
Effect of no authentication on MongoDB access
If a MongoDB instance has authentication disabled, what will be the result when a user tries to connect?
AThe user can connect and access all data without providing credentials
BThe user will be blocked and receive an authentication error
CThe database will automatically encrypt all data
DThe user can only read data but cannot write
Attempts:
2 left
💡 Hint
Think about what happens when no password or user check is required.
📝 Syntax
advanced
2:00remaining
Identify the correct command to enable authentication in MongoDB configuration
Which of the following configuration snippets correctly enables authentication in MongoDB's config file?
MongoDB
security:
  authorization: enabled
A
security:
  enableAuthorization: yes
B
security:
  authentication: true
C
security:
  auth: on
D
security:
  authorization: enabled
Attempts:
2 left
💡 Hint
Look for the exact keyword MongoDB uses for enabling authorization.
optimization
advanced
2:00remaining
Best practice to secure MongoDB exposed to the internet
Which option is the best practice to secure a MongoDB server that must be accessible over the internet?
AStore all data in plain text for faster retrieval
BDisable authentication to allow easy access and speed up connections
CEnable authentication, use strong passwords, and restrict IP access with firewalls
DAllow all IP addresses to connect without restrictions
Attempts:
2 left
💡 Hint
Think about layers of protection beyond just passwords.
🔧 Debug
expert
2:00remaining
Why does this MongoDB connection fail with authentication enabled?
Given the MongoDB server has authentication enabled, why does this connection attempt fail? Code: ``` mongo --host localhost --port 27017 ``` Options:
ABecause the port number 27017 is incorrect
BBecause the connection command does not include username and password for authentication
CBecause the host 'localhost' is misspelled
DBecause the MongoDB server is not running
Attempts:
2 left
💡 Hint
Think about what authentication enabled means for connecting clients.