In terms of security when it comes to MongoDB, there are numerous security features to help protect your data. Role-based access control helps you enforce the principle of least privilege by ensuring only certain users can perform specific actions on specific resources that you define. TLS/SSL ensures communication in cluster and between database and client is secure. Encryption at rest is available should you need to encrypt your database data on disk. Enterprise and Atlas customers using MongoDB 4.2 can use Client-Side Field Level Encryption to ensure developer defined sensitive data is encrypted in memory and never decrypted on the server.
If you have any further questions, please let me know. I really recommend you take our Security course and read up on our material in the MongoDB documentation. I’m sure you will find features that address your specific security concerns.