You can use the db.collection.createIndex() method for creating Indexes in MongoDB.

BY Best Interview Question ON 03 Feb 2019