Security Basics
Enable auth, restrict network access and never expose the port.
Example
# mongod --auth
# bindIp: 127.0.0.1
# use TLS in production
# never commit connection stringsExercise
Enable auth.
mongod --Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.