For my DEV and TEST I have both a CM server and a CD server. I have one SQL instance for DEV and another one for TEST. DEV's CM and CD point to the DEV's SQL instance and TEST's CM and CD point to the TEST's SQL instance.
Will there be any problem if I use MongoDB in the same manner? I want to use only one instance for DEV and one for TEST, where both CM and CD of DEV point to the DEV's MongoDB and both CM and CD of TEST will point to the TEST's MongoDB.
For Example:
DEV CM and CD connection string:
<add name="tracking.live" connectionString="mongodb://UserName:Password@mongodbServerDEV/tracking_live" />
TEST CM and CD connection string:
<add name="tracking.live" connectionString="mongodb://UserName:Password@mongodbServerTEST/tracking_live" />
Your CM and CD environment need to point to the same Mongo environment. So yes, it is no problem.