Firebase:
Firebase is an entire ecosystem used to build web and mobile apps. It is a more complete solution when compared to MongoDB. Google Firebase offers many additional services like hosting, storage, machine learning, cloud function, and much more.
DynamoDB:
DynamoDB is a fully managed proprietary NoSQL database service that supports key-value and document data structures. It is owned by Amazon and is offered as part of the Amazon Web Services portfolio.