MongoDB is a document-oriented database program. In a MongoDB document, the fields can be indexed with primary and secondary indices. Also, it provides for high availability of replica sets.