Historically mongodb uses AGPL. A while ago they changed the license to their own SSPL, which does not satisfy the OSI open source nor the FSF free software definitions, in order to prevent cloud providers from offering managed mongodb offerings which would compete with mongodb atlas.
It does not by my reading. It violates freedom 0 - "The freedom to run the program as you wish, for any purpose."[0]. You cannot run the program for the purpose of offering a cloud version.
AWS DocumentDB is mostly compatible with MongoDB, but isn't actually Mongo. When we migrated from Mongo to Document there were quite a few queries that failed to run, and we weren't even using complex features. Some indexes also failed to work in some queries.