When trying to connect to Mongo DB via Compass, I am getting "connection <monitor> to closed"

I am using the following connection string mongodb+srv://m001-student:m001-mongodb-basics@cluster0.fppkvta.mongodb.net/test

Hello @Maryana_Holubinska ,

Welcome to The MongoDB Community Forums! :wave:

Please go through below documentation and make sure that your Atlas Cluster satisfies all the required prerequisites. The most common reason for such error is not adding your IP address to your Atlas Project’s IP access list.